diff --git a/extensions/vscode-api-tests/src/extension.ts b/extensions/vscode-api-tests/src/extension.ts index 15a15a5960771..aa009116abc9f 100644 --- a/extensions/vscode-api-tests/src/extension.ts +++ b/extensions/vscode-api-tests/src/extension.ts @@ -13,14 +13,15 @@ // import * as vscode from 'vscode'; -import { URL } from 'url'; -import { TextEncoder, TextDecoder } from 'util'; + +declare const window: unknown; +declare const TextEncoder: any; +declare const TextDecoder: any; +declare const URL: any; const textEncoder = new TextEncoder(); const SCHEME = 'memfs'; -declare const window: unknown; - export function activate(context: vscode.ExtensionContext) { if (typeof window !== 'undefined') { // do not run under node.js const memFs = enableFs(context);