From 25537d294cb7a3e01d2329a7d07b469d734fc829 Mon Sep 17 00:00:00 2001 From: Seivan Heidari Date: Tue, 24 Dec 2019 00:04:36 +0100 Subject: Fix https://github.com/rust-analyzer/rust-analyzer/pull/2061#discussion_r348716036 Fix https://github.com/rust-analyzer/rust-analyzer/pull/2061/files/68a5ff050faf514e9d122212a66703ca8ce66ab7#r361019340 --- editors/code/src/scopes.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editors/code/src/scopes.ts') diff --git a/editors/code/src/scopes.ts b/editors/code/src/scopes.ts index 8f288d761..cb250b853 100644 --- a/editors/code/src/scopes.ts +++ b/editors/code/src/scopes.ts @@ -58,10 +58,10 @@ function loadThemeNamed(themeName: string) { return extension.packageJSON.contributes.themes .filter( (element: any) => - (element.id || element.label) === themeName + (element.id || element.label) === themeName, ) .map((element: any) => - path.join(extension.extensionPath, element.path) + path.join(extension.extensionPath, element.path), ) .concat(list); }, Array()); @@ -71,7 +71,7 @@ function loadThemeNamed(themeName: string) { const tokenColorCustomizations: [any] = [ vscode.workspace .getConfiguration('editor') - .get('tokenColorCustomizations') + .get('tokenColorCustomizations'), ]; tokenColorCustomizations @@ -100,7 +100,7 @@ function loadThemeFile(themePath: string) { function mergeRuleSettings( defaultSetting: TextMateRuleSettings | undefined, - override: TextMateRuleSettings + override: TextMateRuleSettings, ): TextMateRuleSettings { if (defaultSetting === undefined) { return override; @@ -116,7 +116,7 @@ function mergeRuleSettings( function updateRules( scope: string, - updatedSettings: TextMateRuleSettings + updatedSettings: TextMateRuleSettings, ): void { [rules.get(scope)] .map(settings => mergeRuleSettings(settings, updatedSettings)) -- cgit v1.2.3