Skip to content

Commit

Permalink
HTML language server broken in insiders. Fixes #21743
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Mar 2, 2017
1 parent adc4ebf commit 27d1dbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extensions/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@

const fs = require('fs');
const path = require('path');
const toDelete = new Set(['tsc.js', 'tsserverlibrary.js', 'typescript.js', 'typescriptServices.js']);
const toDelete = new Set(['tsc.js', 'tsserverlibrary.js', 'typescriptServices.js']);

const root = path.join(__dirname, 'node_modules', 'typescript', 'lib');
for (let name of fs.readdirSync(root)) {
if (name === 'lib.d.ts' || name.match(/^lib\..*\.d\.ts$/) || name === 'protocol.d.ts') {
continue;
}
if (name === 'typescript.js' || name === 'typescript.d.ts') {
// used by html and extension editing
continue;
}

if (toDelete.has(name) || name.match(/\.d\.ts$/)) {
try {
Expand Down

0 comments on commit 27d1dbd

Please sign in to comment.