aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/config.ts
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-07-02 19:33:26 +0100
committervsrs <[email protected]>2020-07-03 12:23:51 +0100
commit271abb7bc43f11c9b9e9c1353b162d9d267b1d21 (patch)
tree5bf0cbdcbfa09535dca9db7cc02cbc4d6153889a /editors/code/src/config.ts
parent7b79d24ad5b251c0806a07aa7769e824f3c37fec (diff)
Add tests
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r--editors/code/src/config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index a317aabcb..3257275c5 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -5,7 +5,7 @@ export type UpdatesChannel = "stable" | "nightly";
5 5
6export const NIGHTLY_TAG = "nightly"; 6export const NIGHTLY_TAG = "nightly";
7 7
8export type RunnableEnvCfg = Record<string, string> | [{ mask?: string, env: Record<string, string>; }] 8export type RunnableEnvCfg = undefined | Record<string, string> | { mask?: string, env: Record<string, string>; }[];
9 9
10export class Config { 10export class Config {
11 readonly extensionId = "matklad.rust-analyzer"; 11 readonly extensionId = "matklad.rust-analyzer";
@@ -117,7 +117,7 @@ export class Config {
117 } 117 }
118 118
119 get runnableEnv() { 119 get runnableEnv() {
120 return this.get<RunnableEnvCfg | undefined>("runnableEnv"); 120 return this.get<RunnableEnvCfg>("runnableEnv");
121 } 121 }
122 122
123 get debug() { 123 get debug() {