Fixed neovim toast notification setting

This commit is contained in:
Horace He 2017-05-22 14:15:17 -04:00
parent d90336a19f
commit 1a92c3f293
2 changed files with 3 additions and 4 deletions

View File

@ -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;
}
});
}

View File

@ -303,7 +303,7 @@ class ConfigurationClass {
neovimPath = "nvim";
disableAnnoyingNeovimComment = false;
disableAnnoyingNeovimMessage = false;
}
function overlapSetting(args: { codeName: string, default: OptionValue, codeValueMapping?: ValueMapping }) {