mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
workaround #90162
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user