Add tests

This commit is contained in:
vsrs 2020-07-02 21:33:26 +03:00
parent 7b79d24ad5
commit 271abb7bc4
4 changed files with 128 additions and 10 deletions

View file

@ -5,7 +5,7 @@ export type UpdatesChannel = "stable" | "nightly";
export const NIGHTLY_TAG = "nightly";
export type RunnableEnvCfg = Record<string, string> | [{ mask?: string, env: Record<string, string>; }]
export type RunnableEnvCfg = undefined | Record<string, string> | { mask?: string, env: Record<string, string>; }[];
export class Config {
readonly extensionId = "matklad.rust-analyzer";
@ -117,7 +117,7 @@ export class Config {
}
get runnableEnv() {
return this.get<RunnableEnvCfg | undefined>("runnableEnv");
return this.get<RunnableEnvCfg>("runnableEnv");
}
get debug() {