Improve display of JS Beta Notification (#269)

This commit is contained in:
edzkite 2020-02-03 12:20:41 -08:00 committed by GitHub
parent 483fb5b9d6
commit cce0d8d94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -49,10 +49,10 @@
"type": "object",
"title": "Kite Configuration",
"properties": {
"kite.showJSBetaNotification": {
"kite.showJavascriptBetaNotification": {
"type": "boolean",
"default": true,
"description": "Whether or not to show the JS beta notification."
"description": "Whether or not to show the JavaScript beta notification."
},
"kite.showGoBetaNotification": {
"type": "boolean",

View File

@ -33,8 +33,8 @@ const showGoBetaNotification = () => {
};
var hasSeenJSBetaNotification = false;
const showJSBetaNotification = () => {
if (config.showJSBetaNotification &&
const showJavascriptBetaNotification = () => {
if (config.showJavascriptBetaNotification &&
!hasSeenJSBetaNotification) {
vscode.window
.showInformationMessage(
@ -49,7 +49,7 @@ const showJSBetaNotification = () => {
kiteOpen("kite://home");
break;
case "Hide Forever":
config.update("showJSBetaNotification", false, true);
config.update("showJavascriptBetaNotification", false, true);
break;
}
}
@ -66,7 +66,7 @@ const showNotification = (filename) => {
case ".js":
case ".jsx":
case ".vue":
showJSBetaNotification();
showJavascriptBetaNotification();
break;
}
};