-
Notifications
You must be signed in to change notification settings - Fork 1
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
Highlighting bug extension types #25
Comments
Can you please also provide the text version for testing? |
My apologies! Here:
Turns out there's a mix of tabs and spaces! Changing tabs to spaces seems to resolve the issue. |
I was able to reproduce on this code: Interesting, this is some bug in the semantic highlighting, locations are not computed correctly. Thanks for reporting! |
Just to make sure, did you see my comment about tabs vs. spaces? |
Wow, good catch! We need to suggest to always have spaces, not tabs. @aabounegm is it possible to have this automatically turned on/suggested within |
Yes, it should be possible to override the settings by adding the following to {
"configurationDefaults": {
"[rzk]": {
"editor.insertSpaces": true
}
}
} But I think the user's own settings will take precendence. I need to test it first. We can also define our own formatter that would simply replace tabs with spaces for now, but that also depends on the users enabling it. |
We can probably at least warn if the user has tabs in the file? |
Yes, that should also be possible. I will need to find the most appropriate provider (or just use the existing semantic highlighting one) to get access to the document content, but it should be simple. |
I think this is no longer an issue with semantic highlighting and #71. |
While refactoring code today, I noticed some strange highlighting. Here is a screenshot, see the selected code:
The text was updated successfully, but these errors were encountered: