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

Reddit: Language injection still acts as one language #2

Open
RedCMD opened this issue Oct 2, 2024 · 0 comments
Open

Reddit: Language injection still acts as one language #2

RedCMD opened this issue Oct 2, 2024 · 0 comments

Comments

@RedCMD
Copy link

RedCMD commented Oct 2, 2024

I assume this is the correct repo for this reddit post?

This is a really annoying problem to solve
other than syntax highlighting and bracket matching
VSCode provides no builtin way to globally define a certain portion of a file as a different language (embedding)

every extension needs to completely compute everything themselves
or nicely ask other extensions owners to provide a lot of api access

microsoft/vscode#1751
https://code.visualstudio.com/api/language-extensions/embedded-languages
microsoft/vscode#198025

prob the only easy thing to do is mark the injected language as embedded
which will enable language-configuration.json features like bracket matching etc
https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#embedded-languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant