Switch impure functional style to pure imperative

This commit is contained in:
Aleksey Kladov
2019-12-31 03:33:00 +01:00
parent cfb0865929
commit f984ef2652
4 changed files with 66 additions and 94 deletions

View File

@@ -1,5 +1,4 @@
import * as vscode from 'vscode';
import * as scopes from './scopes';
import * as scopesMapper from './scopes_mapper';
const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;
@@ -60,7 +59,6 @@ export class Config {
if (config.has('highlightingOn')) {
this.highlightingOn = config.get('highlightingOn') as boolean;
if (this.highlightingOn) {
scopes.load();
scopesMapper.load();
}
}