diff --git a/example/scripts/typescript.ts b/example/scripts/typescript.ts index 5d31fa5..262dc3c 100644 --- a/example/scripts/typescript.ts +++ b/example/scripts/typescript.ts @@ -31,6 +31,12 @@ import { create as createTypeScriptPlugins } from 'volar-service-typescript' import { type TextDocument } from 'vscode-languageserver-textdocument' import { URI } from 'vscode-uri' +globalThis.process = { + cwd() { + return '/' + } +} as NodeJS.Process + /** * Convert markdown content to a DOM node. * diff --git a/example/typescript.html b/example/typescript.html index d450d15..e18ed58 100644 --- a/example/typescript.html +++ b/example/typescript.html @@ -22,13 +22,6 @@
-