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

C#: Fix line position when opening file in VSCode #73584

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

RedworkDE
Copy link
Member

Fixes #73576

Line and column use 1 based indices in VSCode.

This leaves MonoDevelop as the only external C# editor that doesn't have the +1 for the column (every editor now has it for the line). I am can't test to confirm if this is correct, but since column 0 is the only one ever used by godot and thus it doesn't actually matter, so I left that bit alone.

@YuriSizov YuriSizov added this to the 4.0 milestone Feb 19, 2023
@YuriSizov YuriSizov merged commit 9f68d06 into godotengine:master Feb 19, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@RedworkDE RedworkDE deleted the net-vscode-line branch February 19, 2023 17:18
@raulsntos raulsntos added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:dotnet topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C#] [vscode] Code navigation position is incorrect
5 participants