GetExtension: vscode.typescript-language-features Not Found #346
-
Hi, console.log(api.extensions.allAcrossExtensionHosts);
// Result:
[
{ id: "vscode.css", ... },
{ id: "vscode.html", ... }
{ id: "vscode.typescript", ... },
{ id: "vscode.javascript", ... },
{ id: "vscode.typescript-language-features", ... },
]; const tsExtension = api.extensions.getExtension("vscode.typescript-language-features");
console.log(tsExtension); // undefined |
Beta Was this translation helpful? Give feedback.
Answered by
cemalgnlts
Feb 14, 2024
Replies: 1 comment 11 replies
-
Fixed: - const tsExtension = api.extensions.getExtension("vscode.typescript-language-features");
+ const tsExtension = api.extensions.getExtension("vscode.typescript-language-features", true); But I didn't get the result I expected. I tried to imitate this extension: I got this error: await tsExtension.activate(); // Cannot activate foreign extension. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I started to prepare the sample repo and suddenly it occurred to me to enable TS Server Log like in the demo and examine the logs. I saw that the code gave an error in the logs, the
module
was not defined. After seeing this error, I converted it to ESM format:Now my plugin is working thanks a lot.