about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2023-01-25 09:17:49 +0100
committerLukas Wirth <lukastw97@gmail.com>2023-01-25 09:17:49 +0100
commite6ad8a2edcbe5e9614f71308d43f6fb0cbf7ceef (patch)
tree38de5f812ba5f1616b28fdb635d30ee4460b2fb2
parente86bac92f485ff8f17a3fe49f8f7e7a10bacfecc (diff)
downloadrust-e6ad8a2edcbe5e9614f71308d43f6fb0cbf7ceef.tar.gz
rust-e6ad8a2edcbe5e9614f71308d43f6fb0cbf7ceef.zip
fix: config substitution failing extension activation
-rw-r--r--editors/code/src/config.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index ce1142df3a8..114abf062b9 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -268,8 +268,6 @@ export function substituteVSCodeVariables<T>(resp: T): T {
             res[key] = substituteVSCodeVariables(val);
         }
         return res as T;
-    } else if (Is.func(resp)) {
-        throw new Error("Unexpected function type in substitution");
     }
     return resp;
 }