Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(vscode-plugin): also prompt to save untitled when adding to user dict
Matthew Espinoc36d64208653
diff --git a/packages/vscode-plugin/src/extension.ts b/packages/vscode-plugin/src/extension.tsindex bd9beed4b..41f06a185 100644--- a/packages/vscode-plugin/src/extension.ts+++ b/packages/vscode-plugin/src/extension.ts@@ -29,12 +29,12 @@ const clientOptions: LanguageClientOptions = {},executeCommand(command, args, next) {if (- command === 'HarperAddToFileDict' &&+ ['HarperAddToUserDict', 'HarperAddToFileDict'].includes(command) &&args.find((a) => typeof a === 'string' && a.startsWith('untitled:'))) {window.showInformationMessage(- 'Save the file to add words to its file dictionary.',+ 'Save the file to add words to the dictionary.','Save File','Dismiss',)