cspell-lib 7.0.2 → 7.2.0
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/esm/Cache/{cspell.cache.d.mts → cspell.cache.d.ts} +1 -1
- package/dist/esm/Cache/{cspell.cache.mjs → cspell.cache.js} +1 -0
- package/dist/esm/Cache/index.d.ts +2 -0
- package/dist/esm/Cache/index.js +2 -0
- package/dist/esm/Document/{Document.d.mts → Document.d.ts} +2 -2
- package/dist/esm/Document/Document.js +2 -0
- package/dist/esm/Document/{index.d.mts → index.d.ts} +4 -4
- package/dist/esm/Document/index.js +3 -0
- package/dist/esm/Document/{isBinaryDoc.d.mts → isBinaryDoc.d.ts} +3 -3
- package/dist/esm/Document/{isBinaryDoc.mjs → isBinaryDoc.js} +4 -3
- package/dist/esm/Document/{normalizeLanguageIds.d.mts → normalizeLanguageIds.d.ts} +1 -1
- package/dist/esm/Document/{normalizeLanguageIds.mjs → normalizeLanguageIds.js} +1 -0
- package/dist/esm/Document/{resolveDocument.d.mts → resolveDocument.d.ts} +3 -3
- package/dist/esm/Document/{resolveDocument.mjs → resolveDocument.js} +4 -3
- package/dist/esm/FeatureFlags/{FeatureFlags.d.mts → FeatureFlags.d.ts} +1 -1
- package/dist/esm/FeatureFlags/{FeatureFlags.mjs → FeatureFlags.js} +1 -0
- package/dist/esm/FeatureFlags/index.d.ts +2 -0
- package/dist/esm/FeatureFlags/index.js +2 -0
- package/dist/esm/{LanguageIds.d.mts → LanguageIds.d.ts} +1 -1
- package/dist/esm/{LanguageIds.mjs → LanguageIds.js} +2 -1
- package/dist/esm/Models/{CSpellSettingsInternalDef.d.mts → CSpellSettingsInternalDef.d.ts} +2 -2
- package/dist/esm/Models/{CSpellSettingsInternalDef.mjs → CSpellSettingsInternalDef.js} +2 -1
- package/dist/esm/Models/{PatternRegExp.d.mts → PatternRegExp.d.ts} +1 -1
- package/dist/esm/Models/{PatternRegExp.mjs → PatternRegExp.js} +1 -0
- package/dist/esm/Models/{Suggestion.d.mts → Suggestion.d.ts} +1 -1
- package/dist/esm/Models/Suggestion.js +2 -0
- package/dist/esm/Models/{TextDocument.d.mts → TextDocument.d.ts} +2 -2
- package/dist/esm/Models/{TextDocument.mjs → TextDocument.js} +3 -2
- package/dist/esm/Models/ValidationIssue.d.ts +7 -0
- package/dist/esm/Models/ValidationIssue.js +2 -0
- package/dist/esm/Models/{ValidationResult.d.mts → ValidationResult.d.ts} +1 -1
- package/dist/esm/Models/ValidationResult.js +2 -0
- package/dist/esm/Settings/{CSpellSettingsServer.d.mts → CSpellSettingsServer.d.ts} +3 -3
- package/dist/esm/Settings/{CSpellSettingsServer.mjs → CSpellSettingsServer.js} +7 -6
- package/dist/esm/Settings/Controller/{ImportError.d.mts → ImportError.d.ts} +1 -1
- package/dist/esm/Settings/Controller/{ImportError.mjs → ImportError.js} +2 -1
- package/dist/esm/Settings/Controller/{SettingsController.d.mts → SettingsController.d.ts} +1 -1
- package/dist/esm/Settings/Controller/{SettingsController.mjs → SettingsController.js} +1 -0
- package/dist/esm/Settings/Controller/configLoader/{PnPSettings.d.mts → PnPSettings.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{PnPSettings.mjs → PnPSettings.js} +2 -1
- package/dist/esm/Settings/Controller/configLoader/{configLoader.d.mts → configLoader.d.ts} +7 -7
- package/dist/esm/Settings/Controller/configLoader/{configLoader.mjs → configLoader.js} +14 -13
- package/dist/esm/Settings/Controller/configLoader/defaultSettings.d.ts +3 -0
- package/dist/esm/Settings/Controller/configLoader/{defaultSettings.mjs → defaultSettings.js} +3 -2
- package/dist/esm/Settings/Controller/configLoader/{extractImportErrors.d.mts → extractImportErrors.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{extractImportErrors.mjs → extractImportErrors.js} +1 -0
- package/dist/esm/Settings/Controller/configLoader/{index.d.mts → index.d.ts} +5 -5
- package/dist/esm/Settings/Controller/configLoader/index.js +5 -0
- package/dist/esm/Settings/Controller/configLoader/{normalizeRawSettings.d.mts → normalizeRawSettings.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{normalizeRawSettings.mjs → normalizeRawSettings.js} +5 -4
- package/dist/esm/Settings/Controller/configLoader/{readSettings.d.mts → readSettings.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{readSettings.mjs → readSettings.js} +2 -1
- package/dist/esm/Settings/Controller/configLoader/{readSettingsFiles.d.mts → readSettingsFiles.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{readSettingsFiles.mjs → readSettingsFiles.js} +4 -3
- package/dist/esm/Settings/Controller/configLoader/{toGlobDef.d.mts → toGlobDef.d.ts} +1 -1
- package/dist/esm/Settings/Controller/configLoader/{toGlobDef.mjs → toGlobDef.js} +1 -0
- package/dist/esm/Settings/Controller/configLoader/{types.d.mts → types.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/types.js +2 -0
- package/dist/esm/Settings/Controller/index.d.ts +2 -0
- package/dist/esm/Settings/Controller/index.js +2 -0
- package/dist/esm/Settings/Controller/{pnpLoader.d.mts → pnpLoader.d.ts} +2 -2
- package/dist/esm/Settings/Controller/{pnpLoader.mjs → pnpLoader.js} +3 -2
- package/dist/esm/Settings/{DefaultSettings.d.mts → DefaultSettings.d.ts} +2 -2
- package/dist/esm/Settings/{DefaultSettings.mjs → DefaultSettings.js} +8 -7
- package/dist/esm/Settings/{DictionaryReferenceCollection.d.mts → DictionaryReferenceCollection.d.ts} +1 -1
- package/dist/esm/Settings/{DictionaryReferenceCollection.mjs → DictionaryReferenceCollection.js} +1 -0
- package/dist/esm/Settings/{DictionarySettings.d.mts → DictionarySettings.d.ts} +3 -3
- package/dist/esm/Settings/{DictionarySettings.mjs → DictionarySettings.js} +6 -5
- package/dist/esm/Settings/{GlobalSettings.d.mts → GlobalSettings.d.ts} +1 -1
- package/dist/esm/Settings/{GlobalSettings.mjs → GlobalSettings.js} +4 -3
- package/dist/esm/Settings/{InDocSettings.d.mts → InDocSettings.d.ts} +2 -2
- package/dist/esm/Settings/{InDocSettings.mjs → InDocSettings.js} +5 -4
- package/dist/esm/Settings/{LanguageSettings.d.mts → LanguageSettings.d.ts} +1 -1
- package/dist/esm/Settings/{LanguageSettings.mjs → LanguageSettings.js} +4 -3
- package/dist/esm/Settings/{RegExpPatterns.d.mts → RegExpPatterns.d.ts} +1 -1
- package/dist/esm/Settings/{RegExpPatterns.mjs → RegExpPatterns.js} +1 -0
- package/dist/esm/Settings/{TextDocumentSettings.d.mts → TextDocumentSettings.d.ts} +2 -2
- package/dist/esm/Settings/{TextDocumentSettings.mjs → TextDocumentSettings.js} +4 -3
- package/dist/esm/Settings/{cfgStore.d.mts → cfgStore.d.ts} +1 -1
- package/dist/esm/Settings/{cfgStore.mjs → cfgStore.js} +1 -0
- package/dist/esm/Settings/{constants.d.mts → constants.d.ts} +1 -1
- package/dist/esm/Settings/{constants.mjs → constants.js} +1 -0
- package/dist/esm/Settings/{index.d.mts → index.d.ts} +7 -7
- package/dist/esm/Settings/{index.mjs → index.js} +6 -5
- package/dist/esm/Settings/{index.link.d.mts → index.link.d.ts} +3 -3
- package/dist/esm/Settings/index.link.js +2 -0
- package/dist/esm/Settings/{link.d.mts → link.d.ts} +1 -1
- package/dist/esm/Settings/{link.mjs → link.js} +4 -3
- package/dist/esm/Settings/{patterns.d.mts → patterns.d.ts} +1 -1
- package/dist/esm/Settings/{patterns.mjs → patterns.js} +3 -2
- package/dist/esm/SpellingDictionary/{Dictionaries.d.mts → Dictionaries.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/{Dictionaries.mjs → Dictionaries.js} +4 -3
- package/dist/esm/SpellingDictionary/DictionaryController/{DictionaryLoader.d.mts → DictionaryLoader.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/DictionaryController/{DictionaryLoader.mjs → DictionaryLoader.js} +5 -4
- package/dist/esm/SpellingDictionary/DictionaryController/{index.d.mts → index.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/DictionaryController/index.js +2 -0
- package/dist/esm/SpellingDictionary/{DictionaryLoader.d.mts → DictionaryLoader.d.ts} +4 -4
- package/dist/esm/SpellingDictionary/{DictionaryLoader.mjs → DictionaryLoader.js} +3 -2
- package/dist/esm/SpellingDictionary/{SpellingDictionary.d.mts → SpellingDictionary.d.ts} +1 -1
- package/dist/esm/SpellingDictionary/{SpellingDictionary.mjs → SpellingDictionary.js} +1 -0
- package/dist/esm/SpellingDictionary/{SpellingDictionaryError.d.mts → SpellingDictionaryError.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/{SpellingDictionaryError.mjs → SpellingDictionaryError.js} +1 -0
- package/dist/esm/SpellingDictionary/SuggestExperimental/{SuggestionCollector.d.mts → SuggestionCollector.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/SuggestExperimental/{SuggestionCollector.mjs → SuggestionCollector.js} +2 -1
- package/dist/esm/SpellingDictionary/SuggestExperimental/{entities.d.mts → entities.d.ts} +1 -1
- package/dist/esm/SpellingDictionary/SuggestExperimental/entities.js +2 -0
- package/dist/esm/SpellingDictionary/SuggestExperimental/{helpers.d.mts → helpers.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/SuggestExperimental/{helpers.mjs → helpers.js} +1 -0
- package/dist/esm/SpellingDictionary/SuggestExperimental/{suggest.d.mts → suggest.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/SuggestExperimental/{suggest.mjs → suggest.js} +2 -1
- package/dist/esm/SpellingDictionary/index.d.ts +4 -0
- package/dist/esm/SpellingDictionary/index.js +4 -0
- package/dist/esm/{clearCachedFiles.d.mts → clearCachedFiles.d.ts} +1 -1
- package/dist/esm/{clearCachedFiles.mjs → clearCachedFiles.js} +3 -2
- package/dist/esm/{exclusionHelper.d.mts → exclusionHelper.d.ts} +1 -1
- package/dist/esm/{exclusionHelper.mjs → exclusionHelper.js} +2 -1
- package/dist/esm/{getDictionary.d.mts → getDictionary.d.ts} +2 -2
- package/dist/esm/{getDictionary.mjs → getDictionary.js} +3 -2
- package/dist/esm/{index.d.mts → index.d.ts} +26 -26
- package/dist/esm/{index.mjs → index.js} +21 -20
- package/dist/esm/{spellCheckFile.d.mts → spellCheckFile.d.ts} +4 -4
- package/dist/esm/{spellCheckFile.mjs → spellCheckFile.js} +8 -7
- package/dist/esm/{static.d.mts → static.d.ts} +1 -1
- package/dist/esm/{static.mjs → static.js} +1 -0
- package/dist/esm/{suggestions.d.mts → suggestions.d.ts} +3 -3
- package/dist/esm/{suggestions.mjs → suggestions.js} +7 -6
- package/dist/esm/textValidation/{ValidateTextOptions.d.mts → ValidateTextOptions.d.ts} +1 -1
- package/dist/esm/textValidation/ValidateTextOptions.js +2 -0
- package/dist/esm/textValidation/{ValidationTypes.d.mts → ValidationTypes.d.ts} +3 -3
- package/dist/esm/textValidation/ValidationTypes.js +2 -0
- package/dist/esm/textValidation/{checkText.d.mts → checkText.d.ts} +5 -5
- package/dist/esm/textValidation/{checkText.mjs → checkText.js} +8 -7
- package/dist/esm/textValidation/{defaultConstants.d.mts → defaultConstants.d.ts} +1 -1
- package/dist/esm/textValidation/{defaultConstants.mjs → defaultConstants.js} +1 -0
- package/dist/esm/textValidation/{determineTextDocumentSettings.d.mts → determineTextDocumentSettings.d.ts} +3 -3
- package/dist/esm/textValidation/{determineTextDocumentSettings.mjs → determineTextDocumentSettings.js} +5 -4
- package/dist/esm/textValidation/{docValidator.d.mts → docValidator.d.ts} +12 -12
- package/dist/esm/textValidation/{docValidator.mjs → docValidator.js} +17 -16
- package/dist/esm/textValidation/index.d.ts +12 -0
- package/dist/esm/textValidation/index.js +5 -0
- package/dist/esm/textValidation/{isWordValid.d.mts → isWordValid.d.ts} +2 -2
- package/dist/esm/textValidation/{isWordValid.mjs → isWordValid.js} +1 -0
- package/dist/esm/textValidation/{lineValidatorFactory.d.mts → lineValidatorFactory.d.ts} +2 -2
- package/dist/esm/textValidation/{lineValidatorFactory.mjs → lineValidatorFactory.js} +8 -7
- package/dist/esm/textValidation/{parsedText.d.mts → parsedText.d.ts} +3 -3
- package/dist/esm/textValidation/{parsedText.mjs → parsedText.js} +2 -1
- package/dist/esm/textValidation/{settingsToValidateOptions.d.mts → settingsToValidateOptions.d.ts} +3 -3
- package/dist/esm/textValidation/{settingsToValidateOptions.mjs → settingsToValidateOptions.js} +1 -0
- package/dist/esm/textValidation/{textValidator.d.mts → textValidator.d.ts} +4 -4
- package/dist/esm/textValidation/{textValidator.mjs → textValidator.js} +5 -4
- package/dist/esm/textValidation/{validator.d.mts → validator.d.ts} +3 -3
- package/dist/esm/textValidation/{validator.mjs → validator.js} +7 -6
- package/dist/esm/{trace.d.mts → trace.d.ts} +2 -2
- package/dist/esm/{trace.mjs → trace.js} +6 -5
- package/dist/esm/util/{AutoResolve.d.mts → AutoResolve.d.ts} +1 -1
- package/dist/esm/util/{AutoResolve.mjs → AutoResolve.js} +1 -0
- package/dist/esm/util/{AutoResolveLRUCache.d.mts → AutoResolveLRUCache.d.ts} +1 -1
- package/dist/esm/util/{AutoResolveLRUCache.mjs → AutoResolveLRUCache.js} +2 -1
- package/dist/esm/util/{Comparable.d.mts → Comparable.d.ts} +1 -1
- package/dist/esm/util/{Comparable.mjs → Comparable.js} +1 -0
- package/dist/esm/util/{FreqCounter.d.mts → FreqCounter.d.ts} +2 -2
- package/dist/esm/util/{FreqCounter.mjs → FreqCounter.js} +1 -0
- package/dist/esm/util/{IterableLike.d.mts → IterableLike.d.ts} +1 -1
- package/dist/esm/util/IterableLike.js +2 -0
- package/dist/esm/util/{MinHeapQueue.d.mts → MinHeapQueue.d.ts} +1 -1
- package/dist/esm/util/{MinHeapQueue.mjs → MinHeapQueue.js} +1 -0
- package/dist/esm/util/{PairingHeap.d.mts → PairingHeap.d.ts} +1 -1
- package/dist/esm/util/{PairingHeap.mjs → PairingHeap.js} +1 -0
- package/dist/esm/util/{TextMap.d.mts → TextMap.d.ts} +1 -1
- package/dist/esm/util/{TextMap.mjs → TextMap.js} +1 -0
- package/dist/esm/util/{TextRange.d.mts → TextRange.d.ts} +1 -1
- package/dist/esm/util/{TextRange.mjs → TextRange.js} +1 -0
- package/dist/esm/util/{Uri.d.mts → Uri.d.ts} +1 -1
- package/dist/esm/util/{Uri.mjs → Uri.js} +1 -0
- package/dist/esm/util/{debugPerf.d.mts → debugPerf.d.ts} +1 -1
- package/dist/esm/util/{debugPerf.mjs → debugPerf.js} +2 -1
- package/dist/esm/util/{errors.d.mts → errors.d.ts} +1 -1
- package/dist/esm/util/{errors.mjs → errors.js} +1 -0
- package/dist/esm/util/{fileReader.d.mts → fileReader.d.ts} +1 -1
- package/dist/esm/util/{fileReader.mjs → fileReader.js} +2 -1
- package/dist/esm/util/{iterableIteratorLib.d.mts → iterableIteratorLib.d.ts} +2 -2
- package/dist/esm/util/{iterableIteratorLib.mjs → iterableIteratorLib.js} +1 -0
- package/dist/esm/util/{logger.d.mts → logger.d.ts} +1 -1
- package/dist/esm/util/{logger.mjs → logger.js} +1 -0
- package/dist/esm/util/{memorizeLastCall.d.mts → memorizeLastCall.d.ts} +1 -1
- package/dist/esm/util/{memorizeLastCall.mjs → memorizeLastCall.js} +2 -1
- package/dist/esm/util/{memorizerWeak.d.mts → memorizerWeak.d.ts} +1 -1
- package/dist/esm/util/{memorizerWeak.mjs → memorizerWeak.js} +1 -0
- package/dist/esm/util/{regexHelper.d.mts → regexHelper.d.ts} +1 -1
- package/dist/esm/util/{regexHelper.mjs → regexHelper.js} +1 -0
- package/dist/esm/util/{repMap.d.mts → repMap.d.ts} +1 -1
- package/dist/esm/util/{repMap.mjs → repMap.js} +2 -1
- package/dist/esm/util/{resolveFile.d.mts → resolveFile.d.ts} +1 -1
- package/dist/esm/util/{resolveFile.mjs → resolveFile.js} +16 -0
- package/dist/esm/util/{search.d.mts → search.d.ts} +1 -1
- package/dist/esm/util/{search.mjs → search.js} +1 -0
- package/dist/esm/util/{simpleCache.d.mts → simpleCache.d.ts} +1 -1
- package/dist/esm/util/{simpleCache.mjs → simpleCache.js} +1 -0
- package/dist/esm/util/{text.d.mts → text.d.ts} +3 -3
- package/dist/esm/util/{text.mjs → text.js} +6 -5
- package/dist/esm/util/{textRegex.d.mts → textRegex.d.ts} +1 -1
- package/dist/esm/util/{textRegex.mjs → textRegex.js} +1 -0
- package/dist/esm/util/{timer.d.mts → timer.d.ts} +1 -1
- package/dist/esm/util/{timer.mjs → timer.js} +1 -0
- package/dist/esm/util/{types.d.mts → types.d.ts} +1 -1
- package/dist/esm/util/{types.mjs → types.js} +1 -0
- package/dist/esm/util/{util.d.mts → util.d.ts} +2 -2
- package/dist/esm/util/{util.mjs → util.js} +1 -0
- package/dist/esm/util/{wordSplitter.d.mts → wordSplitter.d.ts} +1 -1
- package/dist/esm/util/{wordSplitter.mjs → wordSplitter.js} +4 -3
- package/dist/esm/{validator.d.mts → validator.d.ts} +3 -3
- package/dist/esm/validator.js +2 -0
- package/dist/esm/{wordListHelper.d.mts → wordListHelper.d.ts} +1 -1
- package/dist/esm/{wordListHelper.mjs → wordListHelper.js} +5 -4
- package/package.json +18 -19
- package/dist/esm/Cache/index.d.mts +0 -2
- package/dist/esm/Cache/index.mjs +0 -1
- package/dist/esm/Document/Document.mjs +0 -1
- package/dist/esm/Document/index.mjs +0 -2
- package/dist/esm/FeatureFlags/index.d.mts +0 -2
- package/dist/esm/FeatureFlags/index.mjs +0 -1
- package/dist/esm/Models/Suggestion.mjs +0 -1
- package/dist/esm/Models/ValidationIssue.d.mts +0 -7
- package/dist/esm/Models/ValidationIssue.mjs +0 -1
- package/dist/esm/Models/ValidationResult.mjs +0 -1
- package/dist/esm/Settings/Controller/configLoader/defaultSettings.d.mts +0 -3
- package/dist/esm/Settings/Controller/configLoader/index.mjs +0 -4
- package/dist/esm/Settings/Controller/configLoader/types.mjs +0 -1
- package/dist/esm/Settings/Controller/index.d.mts +0 -2
- package/dist/esm/Settings/Controller/index.mjs +0 -1
- package/dist/esm/Settings/index.link.mjs +0 -1
- package/dist/esm/SpellingDictionary/DictionaryController/index.mjs +0 -1
- package/dist/esm/SpellingDictionary/SuggestExperimental/entities.mjs +0 -1
- package/dist/esm/SpellingDictionary/index.d.mts +0 -4
- package/dist/esm/SpellingDictionary/index.mjs +0 -3
- package/dist/esm/textValidation/ValidateTextOptions.mjs +0 -1
- package/dist/esm/textValidation/ValidationTypes.mjs +0 -1
- package/dist/esm/textValidation/index.d.mts +0 -12
- package/dist/esm/textValidation/index.mjs +0 -4
- package/dist/esm/util/IterableLike.mjs +0 -1
- package/dist/esm/validator.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Uri } from '../../util/Uri.
|
|
1
|
+
import type { Uri } from '../../util/Uri.js';
|
|
2
2
|
export type LoaderResult = Uri | undefined;
|
|
3
3
|
export declare class PnpLoader {
|
|
4
4
|
readonly pnpFiles: string[];
|
|
@@ -26,4 +26,4 @@ export declare class PnpLoader {
|
|
|
26
26
|
}
|
|
27
27
|
export declare function pnpLoader(pnpFiles?: string[]): PnpLoader;
|
|
28
28
|
export declare function clearPnPGlobalCache(): Promise<undefined>;
|
|
29
|
-
//# sourceMappingURL=pnpLoader.d.
|
|
29
|
+
//# sourceMappingURL=pnpLoader.d.ts.map
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import clearModule from 'clear-module';
|
|
5
5
|
import { findUp, findUpSync } from 'find-up';
|
|
6
6
|
import importFresh from 'import-fresh';
|
|
7
|
-
import { toUri, uriToFilePath } from '../../util/Uri.
|
|
8
|
-
import { UnsupportedPnpFile } from './ImportError.
|
|
7
|
+
import { toUri, uriToFilePath } from '../../util/Uri.js';
|
|
8
|
+
import { UnsupportedPnpFile } from './ImportError.js';
|
|
9
9
|
const defaultPnpFiles = ['.pnp.cjs', '.pnp.js'];
|
|
10
10
|
const supportedSchemas = new Set(['file']);
|
|
11
11
|
const cachedRequests = new Map();
|
|
@@ -131,3 +131,4 @@ async function _cleanCache() {
|
|
|
131
131
|
function rejectToUndefined(p) {
|
|
132
132
|
return p.catch(() => undefined);
|
|
133
133
|
}
|
|
134
|
+
//# sourceMappingURL=pnpLoader.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.
|
|
1
|
+
import type { CSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
2
2
|
export declare const _defaultSettingsBasis: Readonly<CSpellSettingsInternal>;
|
|
3
3
|
export declare const _defaultSettings: Readonly<CSpellSettingsInternal>;
|
|
4
4
|
export declare function getDefaultSettings(useDefaultDictionaries?: boolean): CSpellSettingsInternal;
|
|
5
5
|
export declare function getDefaultBundledSettings(): CSpellSettingsInternal;
|
|
6
|
-
//# sourceMappingURL=DefaultSettings.d.
|
|
6
|
+
//# sourceMappingURL=DefaultSettings.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { parsers } from 'cspell-grammar';
|
|
2
2
|
import { srcDirectory } from '../../lib-cjs/index.cjs';
|
|
3
|
-
import { createCSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.
|
|
4
|
-
import { PatternRegExp } from '../Models/PatternRegExp.
|
|
5
|
-
import { resolveFile } from '../util/resolveFile.
|
|
6
|
-
import { readSettings } from './Controller/configLoader/index.
|
|
7
|
-
import { mergeSettings } from './CSpellSettingsServer.
|
|
8
|
-
import * as LanguageSettings from './LanguageSettings.
|
|
9
|
-
import * as RegPat from './RegExpPatterns.
|
|
3
|
+
import { createCSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
4
|
+
import { PatternRegExp } from '../Models/PatternRegExp.js';
|
|
5
|
+
import { resolveFile } from '../util/resolveFile.js';
|
|
6
|
+
import { readSettings } from './Controller/configLoader/index.js';
|
|
7
|
+
import { mergeSettings } from './CSpellSettingsServer.js';
|
|
8
|
+
import * as LanguageSettings from './LanguageSettings.js';
|
|
9
|
+
import * as RegPat from './RegExpPatterns.js';
|
|
10
10
|
const defaultConfigFileModuleRef = '@cspell/cspell-bundled-dicts/cspell-default.json';
|
|
11
11
|
// Do not use require.resolve because webpack will mess it up.
|
|
12
12
|
const defaultConfigFile = resolveConfigModule(defaultConfigFileModuleRef);
|
|
@@ -159,3 +159,4 @@ export function getDefaultSettings(useDefaultDictionaries = true) {
|
|
|
159
159
|
export function getDefaultBundledSettings() {
|
|
160
160
|
return getDefaultSettings();
|
|
161
161
|
}
|
|
162
|
+
//# sourceMappingURL=DefaultSettings.js.map
|
package/dist/esm/Settings/{DictionaryReferenceCollection.d.mts → DictionaryReferenceCollection.d.ts}
RENAMED
|
@@ -7,4 +7,4 @@ export interface DictionaryReferenceCollection {
|
|
|
7
7
|
dictionaryIds: DictionaryId[];
|
|
8
8
|
}
|
|
9
9
|
export declare function createDictionaryReferenceCollection(dictionaries: DictionaryReference[]): DictionaryReferenceCollection;
|
|
10
|
-
//# sourceMappingURL=DictionaryReferenceCollection.d.
|
|
10
|
+
//# sourceMappingURL=DictionaryReferenceCollection.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DictionaryDefinition } from '@cspell/cspell-types';
|
|
2
|
-
import type { CSpellSettingsInternal, DictionaryDefinitionInternal, DictionaryDefinitionInternalWithSource, DictionaryFileDefinitionInternalWithSource } from '../Models/CSpellSettingsInternalDef.
|
|
3
|
-
import type { DictionaryReferenceCollection } from './DictionaryReferenceCollection.
|
|
2
|
+
import type { CSpellSettingsInternal, DictionaryDefinitionInternal, DictionaryDefinitionInternalWithSource, DictionaryFileDefinitionInternalWithSource } from '../Models/CSpellSettingsInternalDef.js';
|
|
3
|
+
import type { DictionaryReferenceCollection } from './DictionaryReferenceCollection.js';
|
|
4
4
|
export type DefMapArrayItem = [string, DictionaryDefinitionInternal];
|
|
5
5
|
/**
|
|
6
6
|
* Combines the list of desired dictionaries with the list of dictionary
|
|
@@ -24,4 +24,4 @@ export declare function isDictionaryDefinitionWithSource(d: DictionaryDefinition
|
|
|
24
24
|
export declare function isDictionaryDefinitionInternal(def: DictionaryDefinition | DictionaryDefinitionInternal): def is DictionaryDefinitionInternal;
|
|
25
25
|
export declare function isDictionaryFileDefinitionInternalWithSource(def: DictionaryDefinition | DictionaryDefinitionInternal): def is DictionaryFileDefinitionInternalWithSource;
|
|
26
26
|
export declare function isDictionaryDefinitionInlineInternalWithSource(def: DictionaryDefinition | DictionaryDefinitionInternal): def is DictionaryDefinitionInternalWithSource;
|
|
27
|
-
//# sourceMappingURL=DictionarySettings.d.
|
|
27
|
+
//# sourceMappingURL=DictionarySettings.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mapDictionaryInformationToWeightMap } from 'cspell-trie-lib';
|
|
2
2
|
import * as path from 'path';
|
|
3
|
-
import { isDictionaryDefinitionInlineInternal } from '../Models/CSpellSettingsInternalDef.
|
|
4
|
-
import { AutoResolveWeakCache } from '../util/AutoResolve.
|
|
5
|
-
import { resolveFile } from '../util/resolveFile.
|
|
6
|
-
import { clean } from '../util/util.
|
|
7
|
-
import { createDictionaryReferenceCollection } from './DictionaryReferenceCollection.
|
|
3
|
+
import { isDictionaryDefinitionInlineInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
4
|
+
import { AutoResolveWeakCache } from '../util/AutoResolve.js';
|
|
5
|
+
import { resolveFile } from '../util/resolveFile.js';
|
|
6
|
+
import { clean } from '../util/util.js';
|
|
7
|
+
import { createDictionaryReferenceCollection } from './DictionaryReferenceCollection.js';
|
|
8
8
|
/**
|
|
9
9
|
* Combines the list of desired dictionaries with the list of dictionary
|
|
10
10
|
* definitions. Order does not matter, but the number of leading `!` does.
|
|
@@ -118,3 +118,4 @@ class _DictionaryDefinitionInternalWithSource {
|
|
|
118
118
|
return this.ddi;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
//# sourceMappingURL=DictionarySettings.js.map
|
|
@@ -7,4 +7,4 @@ export interface GlobalCSpellSettings extends Required<Pick<CSpellSettings, 'imp
|
|
|
7
7
|
export declare function getRawGlobalSettings(): GlobalSettingsWithSource;
|
|
8
8
|
export declare function writeRawGlobalSettings(settings: GlobalCSpellSettings): Error | undefined;
|
|
9
9
|
export declare function getGlobalConfigPath(): string;
|
|
10
|
-
//# sourceMappingURL=GlobalSettings.d.
|
|
10
|
+
//# sourceMappingURL=GlobalSettings.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { format } from 'util';
|
|
2
|
-
import { isErrnoException } from '../util/errors.
|
|
3
|
-
import { logError } from '../util/logger.
|
|
4
|
-
import { ConfigStore } from './cfgStore.
|
|
2
|
+
import { isErrnoException } from '../util/errors.js';
|
|
3
|
+
import { logError } from '../util/logger.js';
|
|
4
|
+
import { ConfigStore } from './cfgStore.js';
|
|
5
5
|
const packageName = 'cspell';
|
|
6
6
|
export function getRawGlobalSettings() {
|
|
7
7
|
const name = 'CSpell Configstore';
|
|
@@ -53,3 +53,4 @@ export function getGlobalConfigPath() {
|
|
|
53
53
|
const cfgStore = new ConfigStore(packageName);
|
|
54
54
|
return cfgStore.path;
|
|
55
55
|
}
|
|
56
|
+
//# sourceMappingURL=GlobalSettings.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSpellUserSettings, DictionaryDefinitionInline } from '@cspell/cspell-types';
|
|
2
2
|
import type { Sequence } from 'gensequence';
|
|
3
|
-
import type { ExtendedSuggestion } from '../Models/Suggestion.
|
|
3
|
+
import type { ExtendedSuggestion } from '../Models/Suggestion.js';
|
|
4
4
|
export type CSpellUserSettingsKeys = keyof CSpellUserSettings;
|
|
5
5
|
export interface DirectiveIssue {
|
|
6
6
|
/**
|
|
@@ -42,4 +42,4 @@ export declare const internal: {
|
|
|
42
42
|
staticInDocumentDictionaryName: string;
|
|
43
43
|
};
|
|
44
44
|
export {};
|
|
45
|
-
//# sourceMappingURL=InDocSettings.d.
|
|
45
|
+
//# sourceMappingURL=InDocSettings.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { opAppend, opFilter, opMap, pipeSync } from '@cspell/cspell-pipe/sync';
|
|
2
2
|
import { genSequence } from 'gensequence';
|
|
3
|
-
import { createSpellingDictionary } from '../SpellingDictionary/index.
|
|
4
|
-
import * as Text from '../util/text.
|
|
5
|
-
import { clean, isDefined } from '../util/util.
|
|
6
|
-
import { mergeInDocSettings } from './CSpellSettingsServer.
|
|
3
|
+
import { createSpellingDictionary } from '../SpellingDictionary/index.js';
|
|
4
|
+
import * as Text from '../util/text.js';
|
|
5
|
+
import { clean, isDefined } from '../util/util.js';
|
|
6
|
+
import { mergeInDocSettings } from './CSpellSettingsServer.js';
|
|
7
7
|
// cspell:ignore gimuy
|
|
8
8
|
const regExMatchRegEx = /\/.*\/[gimuy]*/;
|
|
9
9
|
const regExCSpellInDocDirective = /\b(?:spell-?checker|c?spell)::?(.*)/gi;
|
|
@@ -270,3 +270,4 @@ export const internal = {
|
|
|
270
270
|
parseIgnoreWords,
|
|
271
271
|
staticInDocumentDictionaryName,
|
|
272
272
|
};
|
|
273
|
+
//# sourceMappingURL=InDocSettings.js.map
|
|
@@ -15,4 +15,4 @@ export declare function isValidLocaleIntlFormat(locale: LocaleId | LocaleId[], s
|
|
|
15
15
|
export declare function calcSettingsForLanguage(languageSettings: LanguageSettings, languageId: LanguageId, locale: LocaleId): BaseSetting;
|
|
16
16
|
export declare function calcUserSettingsForLanguage(settings: CSpellUserSettings, languageId: string): CSpellUserSettings;
|
|
17
17
|
export declare function calcSettingsForLanguageId(baseSettings: CSpellUserSettings, languageId: LanguageId[] | LanguageId): CSpellUserSettings;
|
|
18
|
-
//# sourceMappingURL=LanguageSettings.d.
|
|
18
|
+
//# sourceMappingURL=LanguageSettings.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { autoResolve, autoResolveWeak, createAutoResolveCache } from '../util/AutoResolve.
|
|
2
|
-
import { doSetsIntersect } from '../util/util.
|
|
3
|
-
import * as SpellSettings from './CSpellSettingsServer.
|
|
1
|
+
import { autoResolve, autoResolveWeak, createAutoResolveCache } from '../util/AutoResolve.js';
|
|
2
|
+
import { doSetsIntersect } from '../util/util.js';
|
|
3
|
+
import * as SpellSettings from './CSpellSettingsServer.js';
|
|
4
4
|
const defaultLocale = 'en';
|
|
5
5
|
const defaultLanguageSettings = [];
|
|
6
6
|
export function getDefaultLanguageSettings() {
|
|
@@ -123,3 +123,4 @@ export function calcSettingsForLanguageId(baseSettings, languageId) {
|
|
|
123
123
|
}, baseSettings);
|
|
124
124
|
return langSettings;
|
|
125
125
|
}
|
|
126
|
+
//# sourceMappingURL=LanguageSettings.js.map
|
|
@@ -51,3 +51,4 @@ export const regExSha = /\bsha\d+-[a-z0-9+/]{25,}={0,3}/gi;
|
|
|
51
51
|
* - `assertion` - use with jwt
|
|
52
52
|
*/
|
|
53
53
|
export const regExHashStrings = /(?:\b(?:sha\d+|md5|base64|crypt|bcrypt|scrypt|security-token|assertion)[-,:$=]|#code[/])[-\w/+%.]{25,}={0,3}(?:(['"])\s*\+?\s*\1?[-\w/+%.]+={0,3})*(?![-\w/+=%.])/gi;
|
|
54
|
+
//# sourceMappingURL=RegExpPatterns.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSpellSettings, CSpellUserSettings } from '@cspell/cspell-types';
|
|
2
|
-
import type { CSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.
|
|
2
|
+
import type { CSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
3
3
|
export declare function combineTextAndLanguageSettings(settings: CSpellUserSettings, text: string | undefined, languageId: string | string[]): CSpellSettingsInternal;
|
|
4
4
|
export declare function extractSettingsFromText(text: string): CSpellSettings;
|
|
5
|
-
//# sourceMappingURL=TextDocumentSettings.d.
|
|
5
|
+
//# sourceMappingURL=TextDocumentSettings.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as CSpellSettingsServer from './CSpellSettingsServer.
|
|
2
|
-
import { getInDocumentSettings } from './InDocSettings.
|
|
3
|
-
import { calcSettingsForLanguageId } from './LanguageSettings.
|
|
1
|
+
import * as CSpellSettingsServer from './CSpellSettingsServer.js';
|
|
2
|
+
import { getInDocumentSettings } from './InDocSettings.js';
|
|
3
|
+
import { calcSettingsForLanguageId } from './LanguageSettings.js';
|
|
4
4
|
export function combineTextAndLanguageSettings(settings, text, languageId) {
|
|
5
5
|
if (!text) {
|
|
6
6
|
return CSpellSettingsServer.toInternalSettings(calcSettingsForLanguageId(settings, languageId));
|
|
@@ -14,3 +14,4 @@ export function combineTextAndLanguageSettings(settings, text, languageId) {
|
|
|
14
14
|
export function extractSettingsFromText(text) {
|
|
15
15
|
return getInDocumentSettings(text);
|
|
16
16
|
}
|
|
17
|
+
//# sourceMappingURL=TextDocumentSettings.js.map
|
|
@@ -2,4 +2,4 @@ export declare const configSettingsFileVersion0_1 = "0.1";
|
|
|
2
2
|
export declare const configSettingsFileVersion0_2 = "0.2";
|
|
3
3
|
export declare const currentSettingsFileVersion = "0.2";
|
|
4
4
|
export declare const ENV_CSPELL_GLOB_ROOT = "CSPELL_GLOB_ROOT";
|
|
5
|
-
//# sourceMappingURL=constants.d.
|
|
5
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT } from './constants.
|
|
2
|
-
export { clearCachedSettingsFiles, defaultConfigFilenames, defaultFileName, extractImportErrors, getCachedFileSize, getGlobalSettings, loadConfig, loadPnP, loadPnPSync, readRawSettings, readSettings, readSettingsFiles, searchForConfig, sectionCSpell, } from './Controller/configLoader/index.
|
|
3
|
-
export { ImportError } from './Controller/ImportError.
|
|
4
|
-
export type { ConfigurationDependencies, ImportFileRefWithError } from './CSpellSettingsServer.
|
|
5
|
-
export { calcOverrideSettings, checkFilenameMatchesGlob, extractDependencies, finalizeSettings, getSources, mergeInDocSettings, mergeSettings, } from './CSpellSettingsServer.
|
|
6
|
-
export { getDefaultBundledSettings, getDefaultSettings } from './DefaultSettings.
|
|
7
|
-
//# sourceMappingURL=index.d.
|
|
1
|
+
export { currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT } from './constants.js';
|
|
2
|
+
export { clearCachedSettingsFiles, defaultConfigFilenames, defaultFileName, extractImportErrors, getCachedFileSize, getGlobalSettings, loadConfig, loadPnP, loadPnPSync, readRawSettings, readSettings, readSettingsFiles, searchForConfig, sectionCSpell, } from './Controller/configLoader/index.js';
|
|
3
|
+
export { ImportError } from './Controller/ImportError.js';
|
|
4
|
+
export type { ConfigurationDependencies, ImportFileRefWithError } from './CSpellSettingsServer.js';
|
|
5
|
+
export { calcOverrideSettings, checkFilenameMatchesGlob, extractDependencies, finalizeSettings, getSources, mergeInDocSettings, mergeSettings, } from './CSpellSettingsServer.js';
|
|
6
|
+
export { getDefaultBundledSettings, getDefaultSettings } from './DefaultSettings.js';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT } from './constants.
|
|
2
|
-
export { clearCachedSettingsFiles, defaultConfigFilenames, defaultFileName, extractImportErrors, getCachedFileSize, getGlobalSettings, loadConfig, loadPnP, loadPnPSync, readRawSettings, readSettings, readSettingsFiles, searchForConfig, sectionCSpell, } from './Controller/configLoader/index.
|
|
3
|
-
export { ImportError } from './Controller/ImportError.
|
|
4
|
-
export { calcOverrideSettings, checkFilenameMatchesGlob, extractDependencies, finalizeSettings, getSources, mergeInDocSettings, mergeSettings, } from './CSpellSettingsServer.
|
|
5
|
-
export { getDefaultBundledSettings, getDefaultSettings } from './DefaultSettings.
|
|
1
|
+
export { currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT } from './constants.js';
|
|
2
|
+
export { clearCachedSettingsFiles, defaultConfigFilenames, defaultFileName, extractImportErrors, getCachedFileSize, getGlobalSettings, loadConfig, loadPnP, loadPnPSync, readRawSettings, readSettings, readSettingsFiles, searchForConfig, sectionCSpell, } from './Controller/configLoader/index.js';
|
|
3
|
+
export { ImportError } from './Controller/ImportError.js';
|
|
4
|
+
export { calcOverrideSettings, checkFilenameMatchesGlob, extractDependencies, finalizeSettings, getSources, mergeInDocSettings, mergeSettings, } from './CSpellSettingsServer.js';
|
|
5
|
+
export { getDefaultBundledSettings, getDefaultSettings } from './DefaultSettings.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { AddPathsToGlobalImportsResults, ListGlobalImportsResult, ListGlobalImportsResults, RemovePathsFromGlobalImportsResult, ResolveSettingsResult, } from './link.
|
|
2
|
-
export { addPathsToGlobalImports, listGlobalImports, removePathsFromGlobalImports } from './link.
|
|
3
|
-
//# sourceMappingURL=index.link.d.
|
|
1
|
+
export type { AddPathsToGlobalImportsResults, ListGlobalImportsResult, ListGlobalImportsResults, RemovePathsFromGlobalImportsResult, ResolveSettingsResult, } from './link.js';
|
|
2
|
+
export { addPathsToGlobalImports, listGlobalImports, removePathsFromGlobalImports } from './link.js';
|
|
3
|
+
//# sourceMappingURL=index.link.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as fs from 'fs';
|
|
2
2
|
import * as Path from 'path';
|
|
3
|
-
import { clean } from '../util/util.
|
|
4
|
-
import { readRawSettings } from './Controller/configLoader/index.
|
|
5
|
-
import { getRawGlobalSettings, writeRawGlobalSettings } from './GlobalSettings.
|
|
3
|
+
import { clean } from '../util/util.js';
|
|
4
|
+
import { readRawSettings } from './Controller/configLoader/index.js';
|
|
5
|
+
import { getRawGlobalSettings, writeRawGlobalSettings } from './GlobalSettings.js';
|
|
6
6
|
export function listGlobalImports() {
|
|
7
7
|
const globalSettings = getRawGlobalSettings();
|
|
8
8
|
const list = resolveImports(globalSettings).map(({ filename, settings, error }) => ({
|
|
@@ -134,3 +134,4 @@ function findPackageForCSpellConfig(pathToConfig) {
|
|
|
134
134
|
export const __testing__ = {
|
|
135
135
|
findPackageForCSpellConfig,
|
|
136
136
|
};
|
|
137
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { RegExpPatternDefinition } from '@cspell/cspell-types';
|
|
2
2
|
export declare function resolvePatterns(regExpList?: (string | RegExp)[], patternDefinitions?: RegExpPatternDefinition[]): RegExp[];
|
|
3
|
-
//# sourceMappingURL=patterns.d.
|
|
3
|
+
//# sourceMappingURL=patterns.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { stringToRegExp } from '../util/textRegex.
|
|
2
|
-
import { isDefined } from '../util/util.
|
|
1
|
+
import { stringToRegExp } from '../util/textRegex.js';
|
|
2
|
+
import { isDefined } from '../util/util.js';
|
|
3
3
|
export function resolvePatterns(regExpList = [], patternDefinitions = []) {
|
|
4
4
|
const patternMap = new Map(patternDefinitions.map((def) => [def.name.toLowerCase(), def.pattern]));
|
|
5
5
|
const resolved = new Set();
|
|
@@ -25,3 +25,4 @@ export function resolvePatterns(regExpList = [], patternDefinitions = []) {
|
|
|
25
25
|
function toRegExp(pattern) {
|
|
26
26
|
return pattern instanceof RegExp ? new RegExp(pattern) : stringToRegExp(pattern, 'gim', 'g');
|
|
27
27
|
}
|
|
28
|
+
//# sourceMappingURL=patterns.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SpellingDictionary, SpellingDictionaryCollection } from 'cspell-dictionary';
|
|
2
|
-
import type { CSpellSettingsInternal, DictionaryDefinitionInternal } from '../Models/CSpellSettingsInternalDef.
|
|
2
|
+
import type { CSpellSettingsInternal, DictionaryDefinitionInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
3
3
|
export declare function loadDictionaryDefs(defsToLoad: DictionaryDefinitionInternal[]): Promise<SpellingDictionary>[];
|
|
4
4
|
export declare function loadDictionaryDefsSync(defsToLoad: DictionaryDefinitionInternal[]): SpellingDictionary[];
|
|
5
5
|
export declare function refreshDictionaryCache(maxAge?: number): Promise<void>;
|
|
6
6
|
export declare function getDictionaryInternal(settings: CSpellSettingsInternal): Promise<SpellingDictionaryCollection>;
|
|
7
7
|
export declare function getDictionaryInternalSync(settings: CSpellSettingsInternal): SpellingDictionaryCollection;
|
|
8
|
-
//# sourceMappingURL=Dictionaries.d.
|
|
8
|
+
//# sourceMappingURL=Dictionaries.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollection, createForbiddenWordsDictionary, createIgnoreWordsDictionary, createSpellingDictionary, createSuggestDictionary, } from 'cspell-dictionary';
|
|
2
|
-
import { calcDictionaryDefsToLoad } from '../Settings/DictionarySettings.
|
|
3
|
-
import { isDefined } from '../util/util.
|
|
4
|
-
import { loadDictionary, loadDictionarySync, refreshCacheEntries } from './DictionaryLoader.
|
|
2
|
+
import { calcDictionaryDefsToLoad } from '../Settings/DictionarySettings.js';
|
|
3
|
+
import { isDefined } from '../util/util.js';
|
|
4
|
+
import { loadDictionary, loadDictionarySync, refreshCacheEntries } from './DictionaryLoader.js';
|
|
5
5
|
export function loadDictionaryDefs(defsToLoad) {
|
|
6
6
|
return defsToLoad.map(loadDictionary);
|
|
7
7
|
}
|
|
@@ -45,3 +45,4 @@ function _getDictionaryInternal(settings, spellDictionaries) {
|
|
|
45
45
|
].filter(isDefined);
|
|
46
46
|
return createCollection(dictionaries, 'dictionary collection');
|
|
47
47
|
}
|
|
48
|
+
//# sourceMappingURL=Dictionaries.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SpellingDictionary } from 'cspell-dictionary';
|
|
2
2
|
import type { CSpellIO } from 'cspell-io';
|
|
3
|
-
import type { DictionaryDefinitionInternal } from '../../Models/CSpellSettingsInternalDef.
|
|
3
|
+
import type { DictionaryDefinitionInternal } from '../../Models/CSpellSettingsInternalDef.js';
|
|
4
4
|
export type LoadOptions = DictionaryDefinitionInternal;
|
|
5
5
|
export declare class DictionaryLoader {
|
|
6
6
|
private cspellIO;
|
|
@@ -28,4 +28,4 @@ export declare class DictionaryLoader {
|
|
|
28
28
|
private normalizeOptions;
|
|
29
29
|
private loadInlineDict;
|
|
30
30
|
}
|
|
31
|
-
//# sourceMappingURL=DictionaryLoader.d.
|
|
31
|
+
//# sourceMappingURL=DictionaryLoader.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { opConcatMap, opFilter, opMap, pipe } from '@cspell/cspell-pipe/sync';
|
|
2
2
|
import { StrongWeakMap } from '@cspell/strong-weak-map';
|
|
3
3
|
import { createFailedToLoadDictionary, createInlineSpellingDictionary, createSpellingDictionary, createSpellingDictionaryFromTrieFile, } from 'cspell-dictionary';
|
|
4
|
-
import { isDictionaryDefinitionInlineInternal } from '../../Models/CSpellSettingsInternalDef.
|
|
5
|
-
import { AutoResolveWeakCache } from '../../util/AutoResolve.
|
|
6
|
-
import { toError } from '../../util/errors.
|
|
7
|
-
import { SpellingDictionaryLoadError } from '../SpellingDictionaryError.
|
|
4
|
+
import { isDictionaryDefinitionInlineInternal } from '../../Models/CSpellSettingsInternalDef.js';
|
|
5
|
+
import { AutoResolveWeakCache } from '../../util/AutoResolve.js';
|
|
6
|
+
import { toError } from '../../util/errors.js';
|
|
7
|
+
import { SpellingDictionaryLoadError } from '../SpellingDictionaryError.js';
|
|
8
8
|
const MAX_AGE = 10000;
|
|
9
9
|
const loaders = {
|
|
10
10
|
S: loadSimpleWordList,
|
|
@@ -276,3 +276,4 @@ function loadTrieSync(reader, filename, options) {
|
|
|
276
276
|
function toLines(content) {
|
|
277
277
|
return content.split(/\n|\r\n|\r/);
|
|
278
278
|
}
|
|
279
|
+
//# sourceMappingURL=DictionaryLoader.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DictionaryLoader, type LoadOptions } from './DictionaryLoader.
|
|
2
|
-
//# sourceMappingURL=index.d.
|
|
1
|
+
export { DictionaryLoader, type LoadOptions } from './DictionaryLoader.js';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SpellingDictionary } from 'cspell-dictionary';
|
|
2
2
|
import type { CSpellIO } from 'cspell-io';
|
|
3
|
-
import type { DictionaryDefinitionInternal } from '../Models/CSpellSettingsInternalDef.
|
|
4
|
-
import { DictionaryLoader } from './DictionaryController/index.
|
|
5
|
-
export type { LoadOptions } from './DictionaryController/index.
|
|
3
|
+
import type { DictionaryDefinitionInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
4
|
+
import { DictionaryLoader } from './DictionaryController/index.js';
|
|
5
|
+
export type { LoadOptions } from './DictionaryController/index.js';
|
|
6
6
|
export declare function getDictionaryLoader(cspellIO?: CSpellIO): DictionaryLoader;
|
|
7
7
|
export declare function loadDictionary(def: DictionaryDefinitionInternal): Promise<SpellingDictionary>;
|
|
8
8
|
export declare function loadDictionarySync(def: DictionaryDefinitionInternal): SpellingDictionary;
|
|
@@ -12,4 +12,4 @@ export declare function loadDictionarySync(def: DictionaryDefinitionInternal): S
|
|
|
12
12
|
* @param now - optional timestamp representing now. (Mostly used in testing)
|
|
13
13
|
*/
|
|
14
14
|
export declare function refreshCacheEntries(maxAge?: number, now?: number): Promise<void>;
|
|
15
|
-
//# sourceMappingURL=DictionaryLoader.d.
|
|
15
|
+
//# sourceMappingURL=DictionaryLoader.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCSpellIO } from '../static.
|
|
2
|
-
import { DictionaryLoader } from './DictionaryController/index.
|
|
1
|
+
import { getCSpellIO } from '../static.js';
|
|
2
|
+
import { DictionaryLoader } from './DictionaryController/index.js';
|
|
3
3
|
let loader;
|
|
4
4
|
export function getDictionaryLoader(cspellIO) {
|
|
5
5
|
if (loader)
|
|
@@ -20,3 +20,4 @@ export function loadDictionarySync(def) {
|
|
|
20
20
|
export async function refreshCacheEntries(maxAge, now) {
|
|
21
21
|
return getDictionaryLoader().refreshCacheEntries(maxAge, now);
|
|
22
22
|
}
|
|
23
|
+
//# sourceMappingURL=DictionaryLoader.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { FindOptions, FindResult, HasOptions, SearchOptions, SpellingDictionary, SpellingDictionaryCollection, SpellingDictionaryOptions, SuggestionCollector, SuggestionResult, SuggestOptions, } from 'cspell-dictionary';
|
|
2
2
|
export { createCollection, createInlineSpellingDictionary, createSpellingDictionary } from 'cspell-dictionary';
|
|
3
3
|
export { CompoundWordsMethod } from 'cspell-trie-lib';
|
|
4
|
-
//# sourceMappingURL=SpellingDictionary.d.
|
|
4
|
+
//# sourceMappingURL=SpellingDictionary.d.ts.map
|
package/dist/esm/SpellingDictionary/{SpellingDictionaryError.d.mts → SpellingDictionaryError.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoadOptions } from './DictionaryLoader.
|
|
1
|
+
import type { LoadOptions } from './DictionaryLoader.js';
|
|
2
2
|
export declare class SpellingDictionaryLoadError extends Error {
|
|
3
3
|
readonly uri: string;
|
|
4
4
|
readonly options: LoadOptions;
|
|
@@ -7,4 +7,4 @@ export declare class SpellingDictionaryLoadError extends Error {
|
|
|
7
7
|
constructor(uri: string, options: LoadOptions, cause: Error, message: string);
|
|
8
8
|
}
|
|
9
9
|
export declare function isSpellingDictionaryLoadError(e: Error): e is SpellingDictionaryLoadError;
|
|
10
|
-
//# sourceMappingURL=SpellingDictionaryError.d.
|
|
10
|
+
//# sourceMappingURL=SpellingDictionaryError.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SuggestionResult } from './entities.
|
|
1
|
+
import type { SuggestionResult } from './entities.js';
|
|
2
2
|
export declare class SuggestionCollector {
|
|
3
3
|
readonly size: number;
|
|
4
4
|
minScore: number;
|
|
@@ -7,4 +7,4 @@ export declare class SuggestionCollector {
|
|
|
7
7
|
get collection(): SuggestionResult[];
|
|
8
8
|
get sortedCollection(): SuggestionResult[];
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=SuggestionCollector.d.
|
|
10
|
+
//# sourceMappingURL=SuggestionCollector.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { compareResults } from './helpers.
|
|
1
|
+
import { compareResults } from './helpers.js';
|
|
2
2
|
export class SuggestionCollector {
|
|
3
3
|
constructor(size, minScore) {
|
|
4
4
|
this.size = size;
|
|
@@ -12,3 +12,4 @@ export class SuggestionCollector {
|
|
|
12
12
|
return this.collection.sort(compareResults);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
//# sourceMappingURL=SuggestionCollector.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Feature, SuggestionResult } from './entities.
|
|
1
|
+
import type { Feature, SuggestionResult } from './entities.js';
|
|
2
2
|
/**
|
|
3
3
|
* Comparison function to return the best (highest score) results first.
|
|
4
4
|
* @param a Result A
|
|
@@ -18,4 +18,4 @@ export declare class FeatureMap extends Map<string, number> {
|
|
|
18
18
|
correlationScore(m: FeatureMap): number;
|
|
19
19
|
intersectionScore(m: FeatureMap): number;
|
|
20
20
|
}
|
|
21
|
-
//# sourceMappingURL=helpers.d.
|
|
21
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Trie, WalkerIterator } from 'cspell-trie-lib';
|
|
2
|
-
import type { SuggestionResult } from './entities.
|
|
2
|
+
import type { SuggestionResult } from './entities.js';
|
|
3
3
|
export type SuggestionIterator = Generator<SuggestionResult, void, number | undefined>;
|
|
4
4
|
export declare function suggest(trie: Trie, word: string, minScore?: number): SuggestionIterator;
|
|
5
5
|
export declare function suggestIteration(i: WalkerIterator, word: string, minScore?: number): SuggestionIterator;
|
|
6
|
-
//# sourceMappingURL=suggest.d.
|
|
6
|
+
//# sourceMappingURL=suggest.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { wordToFeatures } from './helpers.
|
|
1
|
+
import { wordToFeatures } from './helpers.js';
|
|
2
2
|
const defaultMinScore = 0.35;
|
|
3
3
|
const wPrefix = '^';
|
|
4
4
|
const wSuffix = '$';
|
|
@@ -25,3 +25,4 @@ export function* suggestIteration(i, word, minScore = defaultMinScore) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
//# sourceMappingURL=suggest.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function clearCachedFiles(): Promise<void>;
|
|
2
|
-
//# sourceMappingURL=clearCachedFiles.d.
|
|
2
|
+
//# sourceMappingURL=clearCachedFiles.d.ts.map
|