Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

Fix 1734 (#1761)

Daniel Silverstonebdefce17d2cf
diff --git a/harper-ls/src/backend.rs b/harper-ls/src/backend.rs
index 1ee25a093..b2242d98c 100644
--- a/harper-ls/src/backend.rs
+++ b/harper-ls/src/backend.rs
@@ -209,7 +209,7 @@ impl Backend {
);
let mut global_dictionary =
- global_dictionary.context("Unable to load the global dictionary.")?;
+ global_dictionary.context("Unable to load the user dictionary.")?;
global_dictionary.add_dictionary(Arc::new(
file_dictionary.context("Unable to load the file dictionary.")?,
));
diff --git a/harper-ls/src/diagnostics.rs b/harper-ls/src/diagnostics.rs
index 3cafaa80f..780f1dea6 100644
--- a/harper-ls/src/diagnostics.rs
+++ b/harper-ls/src/diagnostics.rs
@@ -91,7 +91,7 @@ pub fn lint_to_code_actions<'a>(
let orig = lint.span.get_content_string(source);
results.push(CodeActionOrCommand::Command(Command::new(
- format!("Add \"{orig}\" to the global dictionary."),
+ format!("Add \"{orig}\" to the user dictionary."),
"HarperAddToUserDict".to_string(),
Some(vec![orig.clone().into(), uri.to_string().into()]),
)));
diff --git a/packages/vscode-plugin/package.json b/packages/vscode-plugin/package.json
index 7d227b1a9..9ee60586d 100644
--- a/packages/vscode-plugin/package.json
+++ b/packages/vscode-plugin/package.json
@@ -145,7 +145,7 @@
"harper.userDictPath": {
"scope": "resource",
"type": "string",
- "description": "Optional path to a global dictionary file to use."
+ "description": "Optional path to a user dictionary file to use."
},
"harper.workspaceDictPath": {
"scope": "resource",
diff --git a/packages/web/src/routes/docs/integrations/language-server/+page.md b/packages/web/src/routes/docs/integrations/language-server/+page.md
index 44cd1dadc..2cba2151b 100644
--- a/packages/web/src/routes/docs/integrations/language-server/+page.md
+++ b/packages/web/src/routes/docs/integrations/language-server/+page.md
@@ -80,7 +80,7 @@ If none of the previous installation methods are available to you, we also provi
### User Dictionary
-Each user of `harper-ls` has their own dictionary, which by default, is located at the following paths on each operating system:
+Each user of `harper-ls` has their own dictionary, created on-demand the first time that a word is added to it, which by default, is located at the following paths on each operating system:
| Operating System | Location |
| :--------------- | --------------------------------------------------------------------------------------: |
@@ -124,7 +124,7 @@ We _do_ take pull requests or issues for adding words to the static dictionary.
| ---------------------- | ---------------------------------------------------------- | ---------------------------------------------- |
| Quick Fixes | Suggests fixes for the selected error | `Replace with: "contained"` |
| `HarperIgnoreLint` | Ignores the selected error for the duration of the session | `Ignore Harper error.` |
-| `HarperAddToUserDict` | Adds the selected word to the user dictionary | `Add "containes" to the global dictionary.` |
+| `HarperAddToUserDict` | Adds the selected word to the user dictionary | `Add "containes" to the user dictionary.` |
| `HarperAddToWSDict` | Adds the selected word to the workspace dictionary | `Add "containes" to the workspace dictionary.` |
| `HarperAddToFileDict` | Adds the selected word to a file-local dictionary | `Add "containes" to the file dictionary.` |