-
Notifications
You must be signed in to change notification settings - Fork 799
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
Semantic highlighting protocol extension #513
Comments
@kittaakos Just to make sure I understand what's going on, would you mind showing the JSON notification of a) opening a new file and b) making a change to one line? Let's just say the URI of the file is A: User opens the following TypeScript file in a LSP client. export class Sample {
protected test = 0;
} B: User changes export class Sample {
protected test = "value";
} |
Great idea, it's always bugged me that different editors have different syntax highlighting semantics. |
This would be great! |
Dups #18 |
Note: The description was copied as is from microsoft/vscode-languageserver-node#368 (comment)
I have started to work on a semantic highlighting extension of the LSP.
The semantic highlighting information is pushed from the server to the client as a notification. This notification contains the lines and the ranges where the coloring has the be applied and the desired coloring details are given as TextMate scopes.
In the reference implementation of the client, I was trying to map the TextMate scopes into the appropriate theme I can use as a decoration in the
TextEditor
decoration. How can one map the TextMate scopes into themes (and eventuallyTextEditorDecorationType
) with the current VS Code API?Any suggestions and feedback are welcome. Thanks!
Related issues:
Microsoft/language-server-protocol
)Microsoft/language-server-protocol
)Microsoft/vscode
)Microsoft/language-server-protocol
)The corresponding PR with the proposed changes is here: microsoft/vscode-languageserver-node#367
The text was updated successfully, but these errors were encountered: