Vscode wasn't running the linter automatically so ran npm run fix - wonder if it's related to tslint being deprecated.

This commit is contained in:
Seivan Heidari 2019-11-09 17:23:30 +01:00
parent 529b227d42
commit 83a33fbbea
6 changed files with 110 additions and 106 deletions

View file

@ -46,14 +46,14 @@ export class Config {
public userConfigChanged() {
const config = vscode.workspace.getConfiguration('rust-analyzer');
Server.highlighter.removeHighlights();
if (config.has('highlightingOn')) {
this.highlightingOn = config.get('highlightingOn') as boolean;
if (this.highlightingOn) {
scopes.load();
scopesMapper.load();
scopesMapper.load();
}
}
@ -63,7 +63,6 @@ export class Config {
) as boolean;
}
if (config.has('enableEnhancedTyping')) {
this.enableEnhancedTyping = config.get(
'enableEnhancedTyping'