mirror of
https://github.com/kiteco/vscode-plugin.git
synced 2024-09-11 16:08:10 +03:00
Improve display of JS Beta Notification (#269)
This commit is contained in:
parent
483fb5b9d6
commit
cce0d8d94e
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user