提交 efab5dd9 编写于 作者: E Erich Gamma

Delete javascript migration helper #4149

上级 a942a04f
{
"name": "javascript-migration",
"displayName": "Helper extension for migrating to Salsa",
"description": "Informs users about the JS Salsa upgrade",
"version": "0.0.1",
"publisher": "vscode",
"engines": {
"vscode": "*"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact"
],
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:javascript-migration ./src/tsconfig.json"
},
"devDependencies": {
"typescript": "^1.7.5",
"vscode": "^0.11.0"
},
"dependencies": {
}
}
\ No newline at end of file
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import * as vscode from 'vscode';
import * as cp from 'child_process';
export function activate(context: vscode.ExtensionContext) {
const releaseNotesShown = 'javascript.releasenotesshown';
if (!context.globalState.get(releaseNotesShown)) {
// cheating with nls, this is a temporary extenion only, that doesn't need be localized
vscode.window.showInformationMessage(
'Our JavaScript support has been enhanced, would you like to view the Release Notes?',
'No',
'Yes'
).then(selection => {
switch (selection) {
case 'Yes':
open('http://go.microsoft.com/fwlink/?LinkId=733559');
case 'No':
context.globalState.update(releaseNotesShown, true);
break;
}
});
}
}
function open(url: string) {
var cmd: string;
switch (process.platform) {
case 'darwin':
cmd = 'open';
break;
case 'win32':
cmd = 'start';
break;
default:
cmd = 'xdg-open';
}
return cp.exec(cmd + ' ' + url);
}
export function deactivate() {
}
\ No newline at end of file
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path='../../../../extensions/lib.core.d.ts'/>
/// <reference path='../../../../extensions/declares.d.ts'/>
\ No newline at end of file
{
"compilerOptions": {
"noLib": true,
"target": "es5",
"module": "commonjs",
"sourceMap": false,
"outDir": "out"
},
"exclude": [
"node_modules"
]
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册