-
Notifications
You must be signed in to change notification settings - Fork 183
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 (#…
…1585) * Replace document_highlight_scopes setting with better default scopes * Use region scopes for documentHighlight and remove border for fill style * Add back markup scopes for diagnostic severities 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 spec, the default kind `Text` is used now in case the highlight kind is omitted in the response.
- Loading branch information
Showing
7 changed files
with
77 additions
and
65 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
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