Add tslint and prettier to ci

This commit is contained in:
Daniel McNab 2018-10-08 22:36:47 +01:00
parent f4ad36e972
commit 3a405b65d6
5 changed files with 621 additions and 401 deletions

View file

@ -3,21 +3,21 @@ import * as vscode from 'vscode';
import { Server } from './server';
export class Config {
public highlightingOn = true;
public highlightingOn = true;
constructor() {
vscode.workspace.onDidChangeConfiguration((_) => this.userConfigChanged());
this.userConfigChanged();
constructor() {
vscode.workspace.onDidChangeConfiguration((_) => this.userConfigChanged());
this.userConfigChanged();
}
public userConfigChanged() {
const config = vscode.workspace.getConfiguration('ra-lsp');
if (config.has('highlightingOn')) {
this.highlightingOn = config.get('highlightingOn') as boolean;
}
public userConfigChanged() {
const config = vscode.workspace.getConfiguration('ra-lsp');
if (config.has('highlightingOn')) {
this.highlightingOn = config.get('highlightingOn') as boolean;
}
if (!this.highlightingOn && Server) {
Server.highlighter.removeHighlights();
}
if (!this.highlightingOn && Server) {
Server.highlighter.removeHighlights();
}
}
}