mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Set NODE_PATH when forking TS server
The ensures that we can resolve require('typescript') inside of plugins correctly
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const toDelete = new Set(['tsc.js', 'tsserverlibrary.js', 'typescriptServices.js']);
|
||||
const toDelete = new Set(['tsc.js', 'typescriptServices.js']);
|
||||
|
||||
const root = path.join(__dirname, 'node_modules', 'typescript', 'lib');
|
||||
for (let name of fs.readdirSync(root)) {
|
||||
|
||||
Reference in New Issue
Block a user