From 26d34cc4439174af45d493a14c41631121fa2ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Ochagav=C3=ADa?= Date: Wed, 10 Oct 2018 16:49:32 +0200 Subject: Remove error publishing through publishDecorations --- crates/ra_editor/src/lib.rs | 1 - editors/code/src/highlighting.ts | 7 ------- 2 files changed, 8 deletions(-) diff --git a/crates/ra_editor/src/lib.rs b/crates/ra_editor/src/lib.rs index fe0045378..15aaac172 100644 --- a/crates/ra_editor/src/lib.rs +++ b/crates/ra_editor/src/lib.rs @@ -88,7 +88,6 @@ pub fn highlight(file: &File) -> Vec { 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", diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index ceddffe0e..d440e77c7 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts @@ -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')], -- cgit v1.2.3