cspell-lib 9.3.0 → 9.3.2
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/lib/Settings/Controller/configLoader/configLoader.d.ts +1 -0
- package/dist/lib/Settings/Controller/configLoader/configLoader.js +4 -3
- package/dist/lib/Settings/Controller/configLoader/configLocations.d.ts +1 -0
- package/dist/lib/Settings/Controller/configLoader/configLocations.js +12 -1
- package/package.json +17 -17
|
@@ -94,6 +94,7 @@ export interface IConfigLoader {
|
|
|
94
94
|
readonly isTrusted: boolean;
|
|
95
95
|
setIsTrusted(isTrusted: boolean): void;
|
|
96
96
|
}
|
|
97
|
+
export declare const defaultExtensionsAll: string[];
|
|
97
98
|
export declare class ConfigLoader implements IConfigLoader {
|
|
98
99
|
#private;
|
|
99
100
|
readonly fs: VFileSystem;
|
|
@@ -30,11 +30,12 @@ const setOfSupportedConfigVersions = Object.freeze(new Set(supportedCSpellConfig
|
|
|
30
30
|
export const sectionCSpell = 'cSpell';
|
|
31
31
|
export const defaultFileName = 'cspell.json';
|
|
32
32
|
let defaultConfigLoader = undefined;
|
|
33
|
-
const defaultExtensions = ['.json', '.yaml', '.yml', '.jsonc'];
|
|
34
|
-
const defaultJsExtensions = ['.js', '.cjs', '.mjs'];
|
|
33
|
+
const defaultExtensions = ['.json', '.yaml', '.yml', '.jsonc', '.toml'];
|
|
34
|
+
const defaultJsExtensions = ['.js', '.cjs', '.mjs', '.ts', '.mts'];
|
|
35
|
+
export const defaultExtensionsAll = [...defaultExtensions, ...defaultJsExtensions];
|
|
35
36
|
const trustedSearch = new Map([
|
|
36
37
|
['*', defaultExtensions],
|
|
37
|
-
['file:',
|
|
38
|
+
['file:', defaultExtensionsAll],
|
|
38
39
|
]);
|
|
39
40
|
const unTrustedSearch = new Map([['*', defaultExtensions]]);
|
|
40
41
|
export class ConfigLoader {
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
const supportedExtensions = [
|
|
1
|
+
export const supportedExtensions = [
|
|
2
|
+
'.json',
|
|
3
|
+
'.jsonc',
|
|
4
|
+
'.yaml',
|
|
5
|
+
'.yml',
|
|
6
|
+
'.mjs',
|
|
7
|
+
'.cjs',
|
|
8
|
+
'.js',
|
|
9
|
+
'.toml',
|
|
10
|
+
'.mts',
|
|
11
|
+
'.ts',
|
|
12
|
+
];
|
|
2
13
|
/**
|
|
3
14
|
* Logic of the locations:
|
|
4
15
|
* - Support backward compatibility with the VS Code Spell Checker
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "9.3.
|
|
7
|
+
"version": "9.3.2",
|
|
8
8
|
"description": "A library of useful functions used across various cspell tools.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -64,23 +64,23 @@
|
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-lib#readme",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@cspell/cspell-bundled-dicts": "9.3.
|
|
68
|
-
"@cspell/cspell-pipe": "9.3.
|
|
69
|
-
"@cspell/cspell-resolver": "9.3.
|
|
70
|
-
"@cspell/cspell-types": "9.3.
|
|
71
|
-
"@cspell/dynamic-import": "9.3.
|
|
72
|
-
"@cspell/filetypes": "9.3.
|
|
73
|
-
"@cspell/strong-weak-map": "9.3.
|
|
74
|
-
"@cspell/url": "9.3.
|
|
67
|
+
"@cspell/cspell-bundled-dicts": "9.3.2",
|
|
68
|
+
"@cspell/cspell-pipe": "9.3.2",
|
|
69
|
+
"@cspell/cspell-resolver": "9.3.2",
|
|
70
|
+
"@cspell/cspell-types": "9.3.2",
|
|
71
|
+
"@cspell/dynamic-import": "9.3.2",
|
|
72
|
+
"@cspell/filetypes": "9.3.2",
|
|
73
|
+
"@cspell/strong-weak-map": "9.3.2",
|
|
74
|
+
"@cspell/url": "9.3.2",
|
|
75
75
|
"clear-module": "^4.1.2",
|
|
76
|
-
"cspell-config-lib": "9.3.
|
|
77
|
-
"cspell-dictionary": "9.3.
|
|
78
|
-
"cspell-glob": "9.3.
|
|
79
|
-
"cspell-grammar": "9.3.
|
|
80
|
-
"cspell-io": "9.3.
|
|
81
|
-
"cspell-trie-lib": "9.3.
|
|
76
|
+
"cspell-config-lib": "9.3.2",
|
|
77
|
+
"cspell-dictionary": "9.3.2",
|
|
78
|
+
"cspell-glob": "9.3.2",
|
|
79
|
+
"cspell-grammar": "9.3.2",
|
|
80
|
+
"cspell-io": "9.3.2",
|
|
81
|
+
"cspell-trie-lib": "9.3.2",
|
|
82
82
|
"env-paths": "^3.0.0",
|
|
83
|
-
"gensequence": "^
|
|
83
|
+
"gensequence": "^8.0.8",
|
|
84
84
|
"import-fresh": "^3.3.1",
|
|
85
85
|
"resolve-from": "^5.0.0",
|
|
86
86
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"lorem-ipsum": "^2.0.8",
|
|
108
108
|
"perf-insight": "^2.0.1"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "595bde79b4a5abf3256b71129995ec3601454b02"
|
|
111
111
|
}
|