Loading TSDK Files from the TS Extension. #147
Unanswered
cemalgnlts
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I think that solved my problem: - const tsdk = await loadTsdkByUrl(initOptions.typescript.tsdkUrl, "en");
+ import ts from "typescript";
- getServicePlugins: () => [createTypeScriptServicePlugin(tsdk.typescript)],
+ getServicePlugins: () => [createTypeScriptServicePlugin(ts)],
- tsdk.typescript.ScriptSnapshot.fromString(text);
+ const snapshot = ts.ScriptSnapshot.fromString(text); But I see such a error: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Instead of uploading TS files via CDN, can we use the files of the TS Language extension that are already on the Web?
Beta Was this translation helpful? Give feedback.
All reactions