提交 721f880c 编写于 作者: M Matt Bierner 提交者: GitHub

Use Shared TypeScript to Compile VSCode Colorizer Tests (#25858)

**Bug**
Colorizer-tests currently installs an old version of typescript

**Fix**
Switch to using the standard typescript that all other extensions use. Also switch over to using the shared `vscode.d.ts` file
上级 e8b01da7
...@@ -8,14 +8,12 @@ ...@@ -8,14 +8,12 @@
"vscode": "*" "vscode": "*"
}, },
"scripts": { "scripts": {
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-colorize-tests ./tsconfig.json", "vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-colorize-tests ./tsconfig.json",
"postinstall": "node ./node_modules/vscode/bin/install" "postinstall": "node ./node_modules/vscode/bin/install"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^2.2.38", "@types/mocha": "^2.2.38",
"@types/node": "^7.0.4", "@types/node": "^7.0.4",
"typescript": "^1.6.2",
"vscode": "1.0.1" "vscode": "1.0.1"
} }
} }
\ No newline at end of file
...@@ -38,7 +38,7 @@ function assertUnchangedTokens(testFixurePath: string, done) { ...@@ -38,7 +38,7 @@ function assertUnchangedTokens(testFixurePath: string, done) {
}, done); }, done);
} }
suite("colorization", () => { suite('colorization', () => {
let extensionsFolder = normalize(join(__dirname, '../../')); let extensionsFolder = normalize(join(__dirname, '../../'));
let extensions = fs.readdirSync(extensionsFolder); let extensions = fs.readdirSync(extensionsFolder);
extensions.forEach(extension => { extensions.forEach(extension => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册