mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
Remove error publishing through publishDecorations
This commit is contained in:
parent
3c41087bf8
commit
26d34cc443
2 changed files with 0 additions and 8 deletions
|
@ -88,7 +88,6 @@ pub fn highlight(file: &File) -> Vec<HighlightedRange> {
|
||||||
let mut res = Vec::new();
|
let mut res = Vec::new();
|
||||||
for node in file.syntax().descendants() {
|
for node in file.syntax().descendants() {
|
||||||
let tag = match node.kind() {
|
let tag = match node.kind() {
|
||||||
ERROR => "error",
|
|
||||||
COMMENT | DOC_COMMENT => "comment",
|
COMMENT | DOC_COMMENT => "comment",
|
||||||
STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => "string",
|
STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => "string",
|
||||||
ATTR => "attribute",
|
ATTR => "attribute",
|
||||||
|
|
|
@ -20,13 +20,6 @@ export class Highlighter {
|
||||||
[string, vscode.TextEditorDecorationType]
|
[string, vscode.TextEditorDecorationType]
|
||||||
> = [
|
> = [
|
||||||
['background', decor('#3F3F3F')],
|
['background', decor('#3F3F3F')],
|
||||||
[
|
|
||||||
'error',
|
|
||||||
vscode.window.createTextEditorDecorationType({
|
|
||||||
borderColor: 'red',
|
|
||||||
borderStyle: 'none none dashed none'
|
|
||||||
})
|
|
||||||
],
|
|
||||||
['comment', decor('#7F9F7F')],
|
['comment', decor('#7F9F7F')],
|
||||||
['string', decor('#CC9393')],
|
['string', decor('#CC9393')],
|
||||||
['keyword', decor('#F0DFAF')],
|
['keyword', decor('#F0DFAF')],
|
||||||
|
|
Loading…
Reference in a new issue