cspell-lib 6.1.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/spellCheckFile.js +2 -2
- package/package.json +8 -8
package/dist/spellCheckFile.js
CHANGED
|
@@ -59,8 +59,8 @@ async function spellCheckDocument(document, options, settings) {
|
|
|
59
59
|
}
|
|
60
60
|
exports.spellCheckDocument = spellCheckDocument;
|
|
61
61
|
async function spellCheckFullDocument(document, options, settings) {
|
|
62
|
-
const { uri, text: content } = document;
|
|
63
|
-
const doc = (0, TextDocument_1.createTextDocument)({ uri, content });
|
|
62
|
+
const { uri, text: content, languageId, locale } = document;
|
|
63
|
+
const doc = (0, TextDocument_1.createTextDocument)({ uri, content, languageId, locale });
|
|
64
64
|
const docValOptions = options;
|
|
65
65
|
const docValidator = new textValidation_1.DocumentValidator(doc, docValOptions, settings);
|
|
66
66
|
await docValidator.prepare();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-lib",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "A library of useful functions used across various cspell tools.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@cspell/cspell-bundled-dicts": "^6.1.
|
|
52
|
-
"@cspell/cspell-pipe": "^6.1.
|
|
53
|
-
"@cspell/cspell-types": "^6.1.
|
|
51
|
+
"@cspell/cspell-bundled-dicts": "^6.1.1",
|
|
52
|
+
"@cspell/cspell-pipe": "^6.1.1",
|
|
53
|
+
"@cspell/cspell-types": "^6.1.1",
|
|
54
54
|
"clear-module": "^4.1.2",
|
|
55
55
|
"comment-json": "^4.2.2",
|
|
56
56
|
"configstore": "^5.0.1",
|
|
57
57
|
"cosmiconfig": "^7.0.1",
|
|
58
|
-
"cspell-glob": "^6.1.
|
|
59
|
-
"cspell-io": "^6.1.
|
|
60
|
-
"cspell-trie-lib": "^6.1.
|
|
58
|
+
"cspell-glob": "^6.1.1",
|
|
59
|
+
"cspell-io": "^6.1.1",
|
|
60
|
+
"cspell-trie-lib": "^6.1.1",
|
|
61
61
|
"fast-equals": "^3.0.3",
|
|
62
62
|
"find-up": "^5.0.0",
|
|
63
63
|
"fs-extra": "^10.1.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"rollup-plugin-dts": "^4.2.2",
|
|
93
93
|
"ts-jest": "^28.0.3"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "e871153bfebefa19b13754b431ce5e49a63da298"
|
|
96
96
|
}
|