Closed vthaker-alti closed 2 months ago
Hi @vthaker-alti,
Interesting discovery! At a first glance I can't reproduce the problem:
Our TextMate grammar, which is the source for the syntax highlighting, also doesn't handle the SELECT
keyword in a special way either.
Do you have other SQL highlighting extensions installed? Can you share the your full list of active extensions (use code --list-extensions
to get it)?
@dbanck Thank you for your response. You are correct, I installed an extension iuyoy.highlight-string-code
ages ago that was causing the issue.
After disabling it the issue went away. I uninstalled the extension now. Thanks for the tip.
Closing the issue as it was a user error.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Extension Version
v2.31.0
VS Code Version
Version: 1.91.0 Commit: ea1445cc7016315d0f5728f8e8b12a45dc0a7286 Date: 2024-07-01T18:52:41.959Z Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.5.0-41-generic
Operating System
Linux 9cc62ba41e90 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 GNU/Linux
Terraform Version
Terraform v1.7.5 on linux_amd64
Steps to Reproduce
SELECT
followed by a spaceNote: It doesn't matter if you have any word after
SELECT
and space.Expected Behavior
The LS should treat it as a normal string
Actual Behavior
The LS does not treat it as a normal string and breaks syntax highlighting after it
Terraform Configuration
Project Structure
Gist
No response
Anything Else?
No response
Workarounds
Although not ideal, as a workaround we can use a temp local variable for the word
SELECT
to preserve the highlightingReferences
No response
Help Wanted
Community Note