diff options
author | Seivan Heidari <[email protected]> | 2019-10-24 16:56:59 +0100 |
---|---|---|
committer | Seivan Heidari <[email protected]> | 2019-10-24 16:56:59 +0100 |
commit | 8e63644d6645b3e62ec92199a460cccde91c5482 (patch) | |
tree | ca9f252bfa3b272f210cbedecb67226b32771648 | |
parent | 3e8616cf6df5ba6e5dceba8b834dc63c20bac4d4 (diff) |
Only loading `tokenColorCustomizations` once.
-rw-r--r-- | editors/code/src/scopes.ts | 8 |
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 | ||