Proof of concept theming and 'tokenColorCustomizations' support.

This commit is contained in:
Seivan Heidari 2019-10-24 17:25:23 +02:00
parent 95cf5c86fa
commit 3e8616cf6d
6 changed files with 231 additions and 35 deletions

View file

@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import * as scopes from './scopes';
import { Server } from './server';
const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;
@ -46,7 +46,11 @@ export class Config {
public userConfigChanged() {
const config = vscode.workspace.getConfiguration('rust-analyzer');
Server.highlighter.removeHighlights();
scopes.load()
if (config.has('highlightingOn')) {
this.highlightingOn = config.get('highlightingOn') as boolean;
}