Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Number Jumping Issue with Copilot Inline Chat in VS Code #237238

Open
venkatkarnati1 opened this issue Jan 3, 2025 · 3 comments
Open

Line Number Jumping Issue with Copilot Inline Chat in VS Code #237238

venkatkarnati1 opened this issue Jan 3, 2025 · 3 comments
Assignees
Labels
info-needed Issue requires more information from poster inline-chat

Comments

@venkatkarnati1
Copy link

Does this issue occur when all extensions are disabled?: Yes/No

  • Copilot Chat Extension Version: 0.23.2
  • VS Code Version: 1.96.2 (User Setup)
  • OS Version: MS Windows 10 Enterprise
  • Logs:

Steps to Reproduce:

  1. Opened Copilot inline chat in a Java file at line Fix $msCompile regex to match Microsoft C++ Compiler messages #8474 and fed below prompt.

"/fix SonarQube scan detected issue: [java:S1143] - [Remove this throw statement from this finally block.] in the code at line number 8474. Implement better coding practice to address this issue."

  1. Post submitting the prompt, inline chat window jumped to line debug coffeescript? #5963 and suggesting code changes in line debug coffeescript? #5963.

Expected Result: Post prompt submission, Copilot Inline Chat window must stay in line #8474 and suggest code change.

Actual Result: Post prompt submission, Copilot Inline Chat window jumped to line #5963 and suggested code change in line #5963.

@kieferrm
Copy link
Member

kieferrm commented Jan 3, 2025

@venkatkarnati1 any chance you can share the java file with us?

@venkatkarnati1
Copy link
Author

@venkatkarnati1 any chance you can share the java file with us?

sorry. i can't share the file as the file is in client environment.
The scenario is that the file has lot of Sonarqube issues and tried to fix last issue (bottom of file) in file using Copilot inline chat.

@jrieken jrieken added info-needed Issue requires more information from poster inline-chat labels Jan 6, 2025
@jrieken
Copy link
Member

jrieken commented Jan 6, 2025

Copilot Inline Chat window jumped to line #5963 and suggested code change in line #5963.

Do I understand correctly that it jumped to the nearest/first line that was changed by /fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster inline-chat
Projects
None yet
Development

No branches or pull requests

3 participants