cspell-dictionary 6.28.0 → 6.29.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.
Files changed (127) hide show
  1. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/CachingDictionary.d.ts +3 -3
  2. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/CachingDictionary.js +9 -9
  3. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/FlagWordsDictionary.d.ts +1 -1
  4. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/FlagWordsDictionary.js +11 -11
  5. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/IgnoreWordsDictionary.d.ts +1 -1
  6. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/IgnoreWordsDictionary.js +5 -5
  7. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionaryCollection.d.ts +1 -1
  8. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionaryCollection.js +12 -12
  9. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionaryFromTrie.d.ts +1 -1
  10. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionaryFromTrie.js +16 -16
  11. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionaryMethods.d.ts +1 -1
  12. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionaryMethods.js +5 -5
  13. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SuggestDictionary.d.ts +2 -2
  14. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SuggestDictionary.js +9 -9
  15. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Terms/index.d.ts +1 -1
  16. package/dist/cjs/SpellingDictionary/Typos/index.d.ts +4 -0
  17. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/index.js +7 -7
  18. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/typos.d.ts +1 -1
  19. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/typosParser.d.ts +1 -1
  20. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/typosParser.js +6 -6
  21. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/util.d.ts +1 -1
  22. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/TyposDictionary.d.ts +2 -2
  23. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/TyposDictionary.js +10 -10
  24. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/createInlineSpellingDictionary.d.ts +1 -1
  25. package/dist/cjs/SpellingDictionary/createInlineSpellingDictionary.js +25 -0
  26. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/createSpellingDictionary.d.ts +2 -2
  27. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/createSpellingDictionary.js +9 -9
  28. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/index.d.ts +10 -10
  29. package/dist/{SpellingDictionary → cjs/SpellingDictionary}/index.js +20 -20
  30. package/dist/{index.d.ts → cjs/index.d.ts} +2 -2
  31. package/dist/{index.js → cjs/index.js} +11 -11
  32. package/dist/{util → cjs/util}/clean.d.ts +1 -1
  33. package/dist/{util → cjs/util}/repMap.js +4 -4
  34. package/dist/{util → cjs/util}/textMappers.js +2 -2
  35. package/dist/esm/SpellingDictionary/CachingDictionary.d.mts +30 -0
  36. package/dist/esm/SpellingDictionary/CachingDictionary.mjs +45 -0
  37. package/dist/esm/SpellingDictionary/FlagWordsDictionary.d.mts +11 -0
  38. package/dist/esm/SpellingDictionary/FlagWordsDictionary.mjs +134 -0
  39. package/dist/esm/SpellingDictionary/IgnoreWordsDictionary.d.mts +11 -0
  40. package/dist/esm/SpellingDictionary/IgnoreWordsDictionary.mjs +96 -0
  41. package/dist/esm/SpellingDictionary/SpellingDictionary.d.mts +150 -0
  42. package/dist/esm/SpellingDictionary/SpellingDictionary.mjs +4 -0
  43. package/dist/esm/SpellingDictionary/SpellingDictionaryCollection.d.mts +16 -0
  44. package/dist/esm/SpellingDictionary/SpellingDictionaryCollection.mjs +111 -0
  45. package/dist/esm/SpellingDictionary/SpellingDictionaryFromTrie.d.mts +50 -0
  46. package/dist/esm/SpellingDictionary/SpellingDictionaryFromTrie.mjs +172 -0
  47. package/dist/esm/SpellingDictionary/SpellingDictionaryMethods.d.mts +26 -0
  48. package/dist/esm/SpellingDictionary/SpellingDictionaryMethods.mjs +96 -0
  49. package/dist/esm/SpellingDictionary/SuggestDictionary.d.mts +20 -0
  50. package/dist/esm/SpellingDictionary/SuggestDictionary.mjs +97 -0
  51. package/dist/esm/SpellingDictionary/Terms/index.d.mts +2 -0
  52. package/dist/esm/SpellingDictionary/Terms/index.mjs +1 -0
  53. package/dist/esm/SpellingDictionary/Terms/terms.d.mts +12 -0
  54. package/dist/esm/SpellingDictionary/Terms/terms.mjs +1 -0
  55. package/dist/esm/SpellingDictionary/Typos/index.d.mts +4 -0
  56. package/dist/esm/SpellingDictionary/Typos/index.mjs +2 -0
  57. package/dist/esm/SpellingDictionary/Typos/typos.d.mts +18 -0
  58. package/dist/esm/SpellingDictionary/Typos/typos.mjs +1 -0
  59. package/dist/esm/SpellingDictionary/Typos/typosParser.d.mts +34 -0
  60. package/dist/esm/SpellingDictionary/Typos/typosParser.mjs +131 -0
  61. package/dist/esm/SpellingDictionary/Typos/util.d.mts +31 -0
  62. package/dist/esm/SpellingDictionary/Typos/util.mjs +105 -0
  63. package/dist/esm/SpellingDictionary/TyposDictionary.d.mts +21 -0
  64. package/dist/esm/SpellingDictionary/TyposDictionary.mjs +129 -0
  65. package/dist/esm/SpellingDictionary/createInlineSpellingDictionary.d.mts +3 -0
  66. package/dist/esm/SpellingDictionary/createInlineSpellingDictionary.mjs +20 -0
  67. package/dist/esm/SpellingDictionary/createSpellingDictionary.d.mts +23 -0
  68. package/dist/esm/SpellingDictionary/createSpellingDictionary.mjs +68 -0
  69. package/dist/esm/SpellingDictionary/defaults.d.mts +3 -0
  70. package/dist/esm/SpellingDictionary/defaults.mjs +2 -0
  71. package/dist/esm/SpellingDictionary/index.d.mts +11 -0
  72. package/dist/esm/SpellingDictionary/index.mjs +9 -0
  73. package/dist/esm/index.d.mts +3 -0
  74. package/dist/esm/index.mjs +1 -0
  75. package/dist/esm/util/AutoCache.d.mts +25 -0
  76. package/dist/esm/util/AutoCache.mjs +67 -0
  77. package/dist/esm/util/AutoResolve.d.mts +21 -0
  78. package/dist/esm/util/AutoResolve.mjs +52 -0
  79. package/dist/esm/util/IterableLike.d.mts +4 -0
  80. package/dist/esm/util/IterableLike.mjs +1 -0
  81. package/dist/esm/util/clean.d.mts +7 -0
  82. package/dist/esm/util/clean.mjs +13 -0
  83. package/dist/esm/util/regexHelper.d.mts +7 -0
  84. package/dist/esm/util/regexHelper.mjs +8 -0
  85. package/dist/esm/util/repMap.d.mts +27 -0
  86. package/dist/esm/util/repMap.mjs +152 -0
  87. package/dist/esm/util/simpleCache.d.mts +46 -0
  88. package/dist/esm/util/simpleCache.mjs +135 -0
  89. package/dist/esm/util/text.d.mts +10 -0
  90. package/dist/esm/util/text.mjs +46 -0
  91. package/dist/esm/util/textMappers.d.mts +3 -0
  92. package/dist/esm/util/textMappers.mjs +15 -0
  93. package/dist/esm/util/types.d.mts +7 -0
  94. package/dist/esm/util/types.mjs +1 -0
  95. package/dist/esm/util/util.d.mts +2 -0
  96. package/dist/esm/util/util.mjs +3 -0
  97. package/package.json +27 -18
  98. package/dist/SpellingDictionary/Typos/index.d.ts +0 -4
  99. package/dist/SpellingDictionary/createInlineSpellingDictionary.js +0 -25
  100. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionary.d.ts +0 -0
  101. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/SpellingDictionary.js +0 -0
  102. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Terms/index.js +0 -0
  103. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Terms/terms.d.ts +0 -0
  104. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Terms/terms.js +0 -0
  105. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/typos.js +0 -0
  106. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/Typos/util.js +0 -0
  107. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/defaults.d.ts +0 -0
  108. /package/dist/{SpellingDictionary → cjs/SpellingDictionary}/defaults.js +0 -0
  109. /package/dist/{util → cjs/util}/AutoCache.d.ts +0 -0
  110. /package/dist/{util → cjs/util}/AutoCache.js +0 -0
  111. /package/dist/{util → cjs/util}/AutoResolve.d.ts +0 -0
  112. /package/dist/{util → cjs/util}/AutoResolve.js +0 -0
  113. /package/dist/{util → cjs/util}/IterableLike.d.ts +0 -0
  114. /package/dist/{util → cjs/util}/IterableLike.js +0 -0
  115. /package/dist/{util → cjs/util}/clean.js +0 -0
  116. /package/dist/{util → cjs/util}/regexHelper.d.ts +0 -0
  117. /package/dist/{util → cjs/util}/regexHelper.js +0 -0
  118. /package/dist/{util → cjs/util}/repMap.d.ts +0 -0
  119. /package/dist/{util → cjs/util}/simpleCache.d.ts +0 -0
  120. /package/dist/{util → cjs/util}/simpleCache.js +0 -0
  121. /package/dist/{util → cjs/util}/text.d.ts +0 -0
  122. /package/dist/{util → cjs/util}/text.js +0 -0
  123. /package/dist/{util → cjs/util}/textMappers.d.ts +0 -0
  124. /package/dist/{util → cjs/util}/types.d.ts +0 -0
  125. /package/dist/{util → cjs/util}/types.js +0 -0
  126. /package/dist/{util → cjs/util}/util.d.ts +0 -0
  127. /package/dist/{util → cjs/util}/util.js +0 -0
@@ -0,0 +1,135 @@
1
+ export class SimpleWeakCache {
2
+ constructor(size) {
3
+ this.size = size;
4
+ this.L0 = new WeakMap();
5
+ this.L1 = new WeakMap();
6
+ this.L2 = new WeakMap();
7
+ this.sizeL0 = 0;
8
+ }
9
+ has(key) {
10
+ for (const c of this.caches()) {
11
+ if (c.has(key))
12
+ return true;
13
+ }
14
+ return false;
15
+ }
16
+ get(key) {
17
+ for (const c of this.caches()) {
18
+ const entry = c.get(key);
19
+ if (entry) {
20
+ if (c !== this.L0) {
21
+ this._set(key, entry);
22
+ }
23
+ return entry.v;
24
+ }
25
+ }
26
+ return undefined;
27
+ }
28
+ set(key, value) {
29
+ this._set(key, { v: value });
30
+ }
31
+ _set(key, entry) {
32
+ if (this.L0.has(key)) {
33
+ this.L0.set(key, entry);
34
+ return this;
35
+ }
36
+ if (this.sizeL0 >= this.size) {
37
+ this.rotate();
38
+ }
39
+ this.sizeL0 += 1;
40
+ this.L0.set(key, entry);
41
+ }
42
+ caches() {
43
+ return [this.L0, this.L1, this.L2];
44
+ }
45
+ rotate() {
46
+ this.L2 = this.L1;
47
+ this.L1 = this.L0;
48
+ this.L0 = new WeakMap();
49
+ this.sizeL0 = 0;
50
+ }
51
+ }
52
+ export class AutoWeakCache extends SimpleWeakCache {
53
+ constructor(factory, size) {
54
+ super(size);
55
+ this.factory = factory;
56
+ }
57
+ get(key) {
58
+ const v = super.get(key);
59
+ if (v !== undefined)
60
+ return v;
61
+ const val = this.factory(key);
62
+ this.set(key, val);
63
+ return val;
64
+ }
65
+ }
66
+ /**
67
+ * This will cache between `size` and 3 x `size` items.
68
+ * It has three stashes, L0, L1, and L2. Each can contain `size` items.
69
+ * When L0 is full, its items are given to L1 and L1's are given to L2, and L2 is empties.
70
+ *
71
+ * The stashes are searched in order, L0...L2. If an item is found in L1, or L2, it is
72
+ * promoted to L0.
73
+ */
74
+ export class SimpleCache {
75
+ constructor(size) {
76
+ this.size = size;
77
+ this.L0 = new Map();
78
+ this.L1 = new Map();
79
+ this.L2 = new Map();
80
+ }
81
+ has(key) {
82
+ for (const c of this.caches()) {
83
+ if (c.has(key))
84
+ return true;
85
+ }
86
+ return false;
87
+ }
88
+ get(key) {
89
+ for (const c of this.caches()) {
90
+ const entry = c.get(key);
91
+ if (entry) {
92
+ if (c !== this.L0) {
93
+ this._set(key, entry);
94
+ }
95
+ return entry.v;
96
+ }
97
+ }
98
+ return undefined;
99
+ }
100
+ set(key, value) {
101
+ this._set(key, { v: value });
102
+ }
103
+ _set(key, entry) {
104
+ if (this.L0.has(key)) {
105
+ this.L0.set(key, entry);
106
+ return this;
107
+ }
108
+ if (this.L0.size >= this.size) {
109
+ this.rotate();
110
+ }
111
+ this.L0.set(key, entry);
112
+ }
113
+ caches() {
114
+ return [this.L0, this.L1, this.L2];
115
+ }
116
+ rotate() {
117
+ this.L2 = this.L1;
118
+ this.L1 = this.L0;
119
+ this.L0 = new Map();
120
+ }
121
+ }
122
+ export class AutoCache extends SimpleCache {
123
+ constructor(factory, size) {
124
+ super(size);
125
+ this.factory = factory;
126
+ }
127
+ get(key) {
128
+ const v = super.get(key);
129
+ if (v !== undefined)
130
+ return v;
131
+ const val = this.factory(key);
132
+ this.set(key, val);
133
+ return val;
134
+ }
135
+ }
@@ -0,0 +1,10 @@
1
+ export declare function isUpperCase(word: string): boolean;
2
+ export declare function isLowerCase(word: string): boolean;
3
+ export declare function isFirstCharacterUpper(word: string): boolean;
4
+ export declare function isFirstCharacterLower(word: string): boolean;
5
+ export declare function ucFirst(word: string): string;
6
+ export declare function lcFirst(word: string): string;
7
+ export declare function matchCase(example: string, word: string): string;
8
+ export declare function removeAccents(text: string): string;
9
+ export declare function removeUnboundAccents(text: string): string;
10
+ //# sourceMappingURL=text.d.mts.map
@@ -0,0 +1,46 @@
1
+ const regExFirstUpper = /^\p{Lu}\p{M}?\p{Ll}+$/u;
2
+ const regExAllUpper = /^(?:\p{Lu}\p{M}?)+$/u;
3
+ const regExAllLower = /^(?:\p{Ll}\p{M}?)+$/u;
4
+ const regExAccents = /\p{M}/gu;
5
+ export function isUpperCase(word) {
6
+ return !!word.match(regExAllUpper);
7
+ }
8
+ export function isLowerCase(word) {
9
+ return !!word.match(regExAllLower);
10
+ }
11
+ export function isFirstCharacterUpper(word) {
12
+ return isUpperCase(word.slice(0, 1));
13
+ }
14
+ export function isFirstCharacterLower(word) {
15
+ return isLowerCase(word.slice(0, 1));
16
+ }
17
+ export function ucFirst(word) {
18
+ return word.slice(0, 1).toUpperCase() + word.slice(1);
19
+ }
20
+ export function lcFirst(word) {
21
+ return word.slice(0, 1).toLowerCase() + word.slice(1);
22
+ }
23
+ export function matchCase(example, word) {
24
+ if (example.match(regExFirstUpper)) {
25
+ return word.slice(0, 1).toUpperCase() + word.slice(1).toLowerCase();
26
+ }
27
+ if (example.match(regExAllLower)) {
28
+ return word.toLowerCase();
29
+ }
30
+ if (example.match(regExAllUpper)) {
31
+ return word.toUpperCase();
32
+ }
33
+ if (isFirstCharacterUpper(example)) {
34
+ return ucFirst(word);
35
+ }
36
+ if (isFirstCharacterLower(example)) {
37
+ return lcFirst(word);
38
+ }
39
+ return word;
40
+ }
41
+ export function removeAccents(text) {
42
+ return text.normalize('NFD').replace(regExAccents, '');
43
+ }
44
+ export function removeUnboundAccents(text) {
45
+ return text.replace(regExAccents, '');
46
+ }
@@ -0,0 +1,3 @@
1
+ export declare function mapperNormalizeNFC(words: Iterable<string>): Iterable<string>;
2
+ export declare function mapperRemoveCaseAndAccents(words: Iterable<string>): Iterable<string>;
3
+ //# sourceMappingURL=textMappers.d.mts.map
@@ -0,0 +1,15 @@
1
+ import { removeAccents } from './text.mjs';
2
+ export function* mapperNormalizeNFC(words) {
3
+ for (const word of words) {
4
+ yield word.normalize('NFC');
5
+ }
6
+ }
7
+ export function* mapperRemoveCaseAndAccents(words) {
8
+ for (const word of words) {
9
+ const lc = word.toLowerCase();
10
+ yield lc;
11
+ const woAccents = removeAccents(lc);
12
+ if (lc !== woAccents)
13
+ yield woAccents;
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Like Required, but keeps the Optional.
3
+ */
4
+ export type RemoveUndefined<T> = {
5
+ [P in keyof T]: Exclude<T[P], undefined>;
6
+ };
7
+ //# sourceMappingURL=types.d.mts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function isDefined<T>(v: T | undefined): v is T;
2
+ //# sourceMappingURL=util.d.mts.map
@@ -0,0 +1,3 @@
1
+ export function isDefined(v) {
2
+ return v !== undefined;
3
+ }
package/package.json CHANGED
@@ -1,25 +1,39 @@
1
1
  {
2
2
  "name": "cspell-dictionary",
3
- "version": "6.28.0",
3
+ "version": "6.29.1",
4
4
  "description": "A spelling dictionary library useful for checking words and getting suggestions.",
5
- "main": "dist/index.js",
6
- "typings": "dist/index.d.ts",
5
+ "type": "commonjs",
6
+ "main": "dist/cjs/index.js",
7
+ "types": "dist/cjs/index.d.ts",
8
+ "module": "dist/esm/index.mjs",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/esm/index.mjs",
12
+ "require": "./dist/cjs/index.js"
13
+ }
14
+ },
7
15
  "files": [
8
16
  "dist",
17
+ "!dist/esm/**/*.js",
18
+ "!dist/esm/**/*.ts",
9
19
  "!**/*.tsbuildInfo",
10
20
  "!**/__mocks__",
21
+ "!**/test/**",
11
22
  "!**/*.test.*",
12
23
  "!**/*.spec.*",
13
24
  "!**/*.map"
14
25
  ],
15
26
  "scripts": {
16
- "build": "tsc -p .",
17
- "watch": "tsc -p . -w",
18
- "clean": "shx rm -rf dist temp coverage .tsbuildinfo",
27
+ "clean": "shx rm -rf dist coverage .tsbuildinfo",
28
+ "build": "tsc -b . && ts2mjs dist/esm",
29
+ "build:esm": "tsc -p tsconfig.esm.json",
19
30
  "clean-build": "pnpm run clean && pnpm run build",
20
- "coverage": "jest --coverage",
21
- "test-watch": "jest --watch",
22
- "test": "jest"
31
+ "coverage": "pnpm coverage:vitest && pnpm coverage:fix",
32
+ "coverage:vitest": "vitest run --coverage",
33
+ "coverage:fix": "nyc report --temp-dir \"$(pwd)/coverage\" --reporter lcov --report-dir \"$(pwd)/coverage\" --cwd ../..",
34
+ "test:watch": "vitest",
35
+ "test": "vitest run",
36
+ "watch": "tsc -b . -w"
23
37
  },
24
38
  "repository": {
25
39
  "type": "git",
@@ -37,17 +51,12 @@
37
51
  "engines": {
38
52
  "node": ">=14"
39
53
  },
40
- "devDependencies": {
41
- "@types/jest": "^29.4.0",
42
- "jest": "^29.4.3",
43
- "ts-jest": "^29.0.5"
44
- },
45
54
  "dependencies": {
46
- "@cspell/cspell-pipe": "6.28.0",
47
- "@cspell/cspell-types": "6.28.0",
48
- "cspell-trie-lib": "6.28.0",
55
+ "@cspell/cspell-pipe": "6.29.1",
56
+ "@cspell/cspell-types": "6.29.1",
57
+ "cspell-trie-lib": "6.29.1",
49
58
  "fast-equals": "^4.0.3",
50
59
  "gensequence": "^5.0.2"
51
60
  },
52
- "gitHead": "1c314413e76908e5fbf61fd2555726112b177c0e"
61
+ "gitHead": "e524c611f3529b22a7e8ae3449a5c9a01332d44f"
53
62
  }
@@ -1,4 +0,0 @@
1
- export type { TypoEntry, TyposDef } from './typos';
2
- export { parseTyposFile, parseTyposLine, processEntriesToTyposDef } from './typosParser';
3
- export { createTyposDef, extractAllSuggestions } from './util';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createInlineSpellingDictionary = void 0;
4
- const AutoResolve_1 = require("../util/AutoResolve");
5
- const util_1 = require("../util/util");
6
- const createSpellingDictionary_1 = require("./createSpellingDictionary");
7
- const FlagWordsDictionary_1 = require("./FlagWordsDictionary");
8
- const IgnoreWordsDictionary_1 = require("./IgnoreWordsDictionary");
9
- const SpellingDictionaryCollection_1 = require("./SpellingDictionaryCollection");
10
- const SuggestDictionary_1 = require("./SuggestDictionary");
11
- const cache = (0, AutoResolve_1.createAutoResolveWeakCache)();
12
- function createInlineSpellingDictionary(inlineDict, source) {
13
- return cache.get(inlineDict, () => {
14
- const { words, flagWords, ignoreWords, suggestWords, name } = inlineDict;
15
- const dictSources = [
16
- words && (0, createSpellingDictionary_1.createSpellingDictionary)(words, name + '-words', source, inlineDict),
17
- flagWords && (0, FlagWordsDictionary_1.createFlagWordsDictionary)(flagWords, name + '-flag-words', source),
18
- ignoreWords && (0, IgnoreWordsDictionary_1.createIgnoreWordsDictionary)(ignoreWords, name + '-ignore-words', source),
19
- suggestWords && (0, SuggestDictionary_1.createSuggestDictionary)(suggestWords, name + '-suggest', source),
20
- ].filter(util_1.isDefined);
21
- return (0, SpellingDictionaryCollection_1.createCollection)(dictSources, name, source);
22
- });
23
- }
24
- exports.createInlineSpellingDictionary = createInlineSpellingDictionary;
25
- //# sourceMappingURL=createInlineSpellingDictionary.js.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes