]> git.lizzy.rs Git - rust.git/commitdiff
Remove error publishing through publishDecorations
authorAdolfo Ochagavía <aochagavia92@gmail.com>
Wed, 10 Oct 2018 14:49:32 +0000 (16:49 +0200)
committerAdolfo Ochagavía <aochagavia92@gmail.com>
Wed, 10 Oct 2018 14:49:32 +0000 (16:49 +0200)
crates/ra_editor/src/lib.rs
editors/code/src/highlighting.ts

index fe00453780b4335008fe93ff9e4051efefddfc80..15aaac1721a1e01b37b687c2d640d5b797814418 100644 (file)
@@ -88,7 +88,6 @@ pub fn highlight(file: &File) -> Vec<HighlightedRange> {
     let mut res = Vec::new();
     for node in file.syntax().descendants() {
         let tag = match node.kind() {
-            ERROR => "error",
             COMMENT | DOC_COMMENT => "comment",
             STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => "string",
             ATTR => "attribute",
index ceddffe0ebf7582a2f39e6ca0f708bdeb5ed18bb..d440e77c7f7e3c35ba931604eb96d596cf964f22 100644 (file)
@@ -20,13 +20,6 @@ export class Highlighter {
             [string, vscode.TextEditorDecorationType]
         > = [
             ['background', decor('#3F3F3F')],
-            [
-                'error',
-                vscode.window.createTextEditorDecorationType({
-                    borderColor: 'red',
-                    borderStyle: 'none none dashed none'
-                })
-            ],
             ['comment', decor('#7F9F7F')],
             ['string', decor('#CC9393')],
             ['keyword', decor('#F0DFAF')],