Skip to content

Commit

Permalink
Fixed neovim toast notification setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee committed May 22, 2017
1 parent a75bc4d commit a6adbf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,12 @@ export async function getAndUpdateModeHandler(): Promise<ModeHandler> {

let curHandler = modeHandlerToEditorIdentity[activeEditorId.toString()];
if (!curHandler) {
if (!Configuration.disableAnnoyingNeovimComment) {

if (!Configuration.disableAnnoyingNeovimMessage) {
vscode.window.showInformationMessage("We have now added neovim integration for Ex-commands.\
Enable it with vim.enableNeovim in settings", "Never show again").then((result) => {
if (result === "Never show again") {
vscode.workspace.getConfiguration("vim").update("disableAnnoyingNeovimMessage", true, true);
Configuration.disableAnnoyingNeovimComment = true;
Configuration.disableAnnoyingNeovimMessage = true;
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class ConfigurationClass {
* shows everytime you press one of them. This flag disables that.
*/
disableAnnoyingGcMessage = false;
disableAnnoyingNeovimComment = false;
disableAnnoyingNeovimMessage = false;
}

function overlapSetting(args: { codeName: string, default: OptionValue, codeValueMapping?: ValueMapping }) {
Expand Down

0 comments on commit a6adbf9

Please sign in to comment.