-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace document_highlight_scopes setting with better default scopes
This removes the user setting for the scopes used to color highlighted regions of the textDocument/documentHighlight request. Users (or color scheme authors) can configure their desired style via rules in the color scheme instead. To easily allow fine-tuned colors, the more specific scopes `markup.highlight.{text|read|write}.lsp` were added to the corresponding DocumentHighlightKinds. Additionally, the `Unknown` kind was removed, because it doesn't exist in the specification. Complying with the specs, the default kind `Text` is used now in case the highlight kind is omitted in the response.
- Loading branch information
Showing
5 changed files
with
78 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ class InsertTextFormat: | |
|
||
|
||
class DocumentHighlightKind: | ||
Unknown = 0 | ||
Text = 1 | ||
Read = 2 | ||
Write = 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters