File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const URI_SCHEME = "rust-analyzer-diagnostics-view";
1515export class TextDocumentProvider implements vscode . TextDocumentContentProvider {
1616 private _onDidChange = new vscode . EventEmitter < vscode . Uri > ( ) ;
1717
18- public constructor ( private readonly ctx : Ctx ) { }
18+ public constructor ( private readonly ctx : Ctx ) { }
1919
2020 get onDidChange ( ) : vscode . Event < vscode . Uri > {
2121 return this . _onDidChange . event ;
@@ -67,7 +67,7 @@ interface AnserStyle {
6767export class AnsiDecorationProvider implements vscode . Disposable {
6868 private _decorationTypes = new Map < AnserStyle , TextEditorDecorationType > ( ) ;
6969
70- public constructor ( private readonly ctx : Ctx ) { }
70+ public constructor ( private readonly ctx : Ctx ) { }
7171
7272 dispose ( ) : void {
7373 for ( const decorationType of this . _decorationTypes . values ( ) ) {
@@ -207,11 +207,6 @@ export class AnsiDecorationProvider implements vscode.Disposable {
207207 }
208208 }
209209
210- const themeColor = AnsiDecorationProvider . _anserToThemeColor [ color ] ;
211- if ( themeColor ) {
212- return new ThemeColor ( "terminal." + themeColor ) ;
213- }
214-
215- return undefined ;
210+ return AnsiDecorationProvider . _anserToThemeColor [ color ] ;
216211 }
217212}
You can’t perform that action at this time.
0 commit comments