mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
@@ -7,17 +7,23 @@
|
||||
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('The JavaScript infrastructure has changed, please read the change notes.', 'Change Notes').then(selection => {
|
||||
if (selection) {
|
||||
open('http://go.microsoft.com/fwlink/?LinkId=733559');
|
||||
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;
|
||||
}
|
||||
context.globalState.update(releaseNotesShown, true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user