aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/scopes.ts
diff options
context:
space:
mode:
authorSeivan Heidari <[email protected]>2019-10-24 16:56:59 +0100
committerSeivan Heidari <[email protected]>2019-10-24 16:56:59 +0100
commit8e63644d6645b3e62ec92199a460cccde91c5482 (patch)
treeca9f252bfa3b272f210cbedecb67226b32771648 /editors/code/src/scopes.ts
parent3e8616cf6df5ba6e5dceba8b834dc63c20bac4d4 (diff)
Only loading `tokenColorCustomizations` once.
Diffstat (limited to 'editors/code/src/scopes.ts')
-rw-r--r--editors/code/src/scopes.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/scopes.ts b/editors/code/src/scopes.ts
index 19d309828..c38f6bb50 100644
--- a/editors/code/src/scopes.ts
+++ b/editors/code/src/scopes.ts
@@ -63,10 +63,10 @@ function loadThemeNamed(themeName: string) {
63 } 63 }
64 } 64 }
65 65
66 const customization: any = vscode.workspace.getConfiguration('editor').get('tokenColorCustomizations'); 66 }
67 if (customization && customization.textMateRules) { 67 const customization: any = vscode.workspace.getConfiguration('editor').get('tokenColorCustomizations');
68 loadColors(customization.textMateRules) 68 if (customization && customization.textMateRules) {
69 } 69 loadColors(customization.textMateRules)
70 } 70 }
71} 71}
72 72