Skip to content

Commit 8bf338f

Browse files
committed
Auto merge of rust-lang#14023 - Veykril:config-sub-fix, r=Veykril
fix: config substitution failing extension activation Closes rust-lang/rust-analyzer#14022 Not sure how a function can appear there, but there is also no reason for us to care about it anyways.
2 parents e86bac9 + e6ad8a2 commit 8bf338f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

editors/code/src/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ export function substituteVSCodeVariables<T>(resp: T): T {
268268
res[key] = substituteVSCodeVariables(val);
269269
}
270270
return res as T;
271-
} else if (Is.func(resp)) {
272-
throw new Error("Unexpected function type in substitution");
273271
}
274272
return resp;
275273
}

0 commit comments

Comments
 (0)