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 interface Document {
|
|
3
3
|
uri: UriString;
|
|
4
4
|
text?: string;
|
|
@@ -10,4 +10,4 @@ export type UriOrString = UriString | Uri;
|
|
|
10
10
|
export interface DocumentWithText extends Document {
|
|
11
11
|
text: string;
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=Document.d.
|
|
13
|
+
//# sourceMappingURL=Document.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { Document, DocumentWithText, UriString } from './Document.
|
|
2
|
-
export { isBinaryFile } from './isBinaryDoc.
|
|
3
|
-
export { fileToDocument, fileToTextDocument } from './resolveDocument.
|
|
4
|
-
//# sourceMappingURL=index.d.
|
|
1
|
+
export type { Document, DocumentWithText, UriString } from './Document.js';
|
|
2
|
+
export { isBinaryFile } from './isBinaryDoc.js';
|
|
3
|
+
export { fileToDocument, fileToTextDocument } from './resolveDocument.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Uri } from '../util/Uri.
|
|
2
|
-
import type { Document } from './Document.
|
|
1
|
+
import type { Uri } from '../util/Uri.js';
|
|
2
|
+
import type { Document } from './Document.js';
|
|
3
3
|
export declare function isBinaryDoc(document: Document): boolean;
|
|
4
4
|
export declare function isBinaryFile(filename: Uri | URL | string, languageId?: string | string[]): boolean;
|
|
5
|
-
//# sourceMappingURL=isBinaryDoc.d.
|
|
5
|
+
//# sourceMappingURL=isBinaryDoc.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isGenerated, isGeneratedFile } from '../LanguageIds.
|
|
2
|
-
import { basename, toUri } from '../util/Uri.
|
|
3
|
-
import { normalizeLanguageIds } from './normalizeLanguageIds.
|
|
1
|
+
import { isGenerated, isGeneratedFile } from '../LanguageIds.js';
|
|
2
|
+
import { basename, toUri } from '../util/Uri.js';
|
|
3
|
+
import { normalizeLanguageIds } from './normalizeLanguageIds.js';
|
|
4
4
|
export function isBinaryDoc(document) {
|
|
5
5
|
return isBinaryFile(toUri(document.uri), document.languageId);
|
|
6
6
|
}
|
|
@@ -14,3 +14,4 @@ export function isBinaryFile(filename, languageId) {
|
|
|
14
14
|
const file = basename(filenameUri);
|
|
15
15
|
return isGeneratedFile(file);
|
|
16
16
|
}
|
|
17
|
+
//# sourceMappingURL=isBinaryDoc.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function normalizeLanguageIds(languageId: string | string[]): string[];
|
|
2
|
-
//# sourceMappingURL=normalizeLanguageIds.d.
|
|
2
|
+
//# sourceMappingURL=normalizeLanguageIds.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import type { TextDocument } from '../Models/TextDocument.
|
|
3
|
-
import type { Document, DocumentWithText } from './Document.
|
|
2
|
+
import type { TextDocument } from '../Models/TextDocument.js';
|
|
3
|
+
import type { Document, DocumentWithText } from './Document.js';
|
|
4
4
|
export declare function fileToDocument(file: string): Document;
|
|
5
5
|
export declare function fileToDocument(file: string, text: string, languageId?: string, locale?: string): DocumentWithText;
|
|
6
6
|
export declare function fileToDocument(file: string, text?: string, languageId?: string, locale?: string): Document | DocumentWithText;
|
|
@@ -8,4 +8,4 @@ export declare function fileToTextDocument(file: string): Promise<TextDocument>;
|
|
|
8
8
|
export declare function documentToTextDocument(document: DocumentWithText): TextDocument;
|
|
9
9
|
export declare function resolveDocumentToTextDocument(doc: Document): Promise<TextDocument>;
|
|
10
10
|
export declare function resolveDocument(document: DocumentWithText | Document, encoding?: BufferEncoding): Promise<DocumentWithText>;
|
|
11
|
-
//# sourceMappingURL=resolveDocument.d.
|
|
11
|
+
//# sourceMappingURL=resolveDocument.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
|
-
import { createTextDocument } from '../Models/TextDocument.
|
|
3
|
-
import * as Uri from '../util/Uri.
|
|
4
|
-
import { clean } from '../util/util.
|
|
2
|
+
import { createTextDocument } from '../Models/TextDocument.js';
|
|
3
|
+
import * as Uri from '../util/Uri.js';
|
|
4
|
+
import { clean } from '../util/util.js';
|
|
5
5
|
const defaultEncoding = 'utf8';
|
|
6
6
|
export function fileToDocument(file, text, languageId, locale) {
|
|
7
7
|
return clean({
|
|
@@ -41,3 +41,4 @@ export function resolveDocument(document, encoding) {
|
|
|
41
41
|
function isDocumentWithText(doc) {
|
|
42
42
|
return doc.text !== undefined;
|
|
43
43
|
}
|
|
44
|
+
//# sourceMappingURL=resolveDocument.js.map
|
|
@@ -34,4 +34,4 @@ export declare function isGenerated(languageId: LanguageId | LanguageId[] | Iter
|
|
|
34
34
|
export declare function buildLanguageExtensionMapSet(defs: LanguageDefinitions): ExtensionToLanguageIdMapSet;
|
|
35
35
|
export declare function getLanguagesForExt(ext: string): string[];
|
|
36
36
|
export declare function getLanguagesForBasename(basename: string): string[];
|
|
37
|
-
//# sourceMappingURL=LanguageIds.d.
|
|
37
|
+
//# sourceMappingURL=LanguageIds.d.ts.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* find . -type f -iname package.json -exec pcregrep -M '(?:"id":.*)|(?:"extensions":[^\]]+)' {} \; > ~/projects/cspell/src/languageIds.txt`
|
|
6
6
|
* ```
|
|
7
7
|
*/
|
|
8
|
-
import { autoResolve } from './util/AutoResolve.
|
|
8
|
+
import { autoResolve } from './util/AutoResolve.js';
|
|
9
9
|
export const languageExtensionDefinitions = [
|
|
10
10
|
{ id: 'ada', extensions: ['.adb', '.ads'] },
|
|
11
11
|
{ id: 'apiblueprint', extensions: ['.apib', '.apiblueprint'] },
|
|
@@ -301,3 +301,4 @@ function _getLanguagesForBasename(basename) {
|
|
|
301
301
|
export function getLanguagesForBasename(basename) {
|
|
302
302
|
return _getLanguagesForBasename(basename) || _getLanguagesForBasename(basename.toLowerCase()) || [];
|
|
303
303
|
}
|
|
304
|
+
//# sourceMappingURL=LanguageIds.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AdvancedCSpellSettingsWithSourceTrace, CSpellSettingsWithSourceTrace, DictionaryDefinition, DictionaryDefinitionAugmented, DictionaryDefinitionCustom, DictionaryDefinitionInline, DictionaryDefinitionPreferred, Parser } from '@cspell/cspell-types';
|
|
2
2
|
import type { WeightMap } from 'cspell-trie-lib';
|
|
3
|
-
import type { OptionalOrUndefined } from '../util/types.
|
|
3
|
+
import type { OptionalOrUndefined } from '../util/types.js';
|
|
4
4
|
export declare const SymbolCSpellSettingsInternal: unique symbol;
|
|
5
5
|
export interface CSpellSettingsInternal extends Omit<AdvancedCSpellSettingsWithSourceTrace, 'dictionaryDefinitions'> {
|
|
6
6
|
[SymbolCSpellSettingsInternal]: true;
|
|
@@ -37,4 +37,4 @@ export declare function createCSpellSettingsInternal(parts?: OptionalOrUndefined
|
|
|
37
37
|
export declare function isCSpellSettingsInternal(cs: CSpellSettingsInternal | CSpellSettingsWithSourceTrace | OptionalOrUndefined<CSpellSettingsInternal | CSpellSettingsWithSourceTrace>): cs is CSpellSettingsInternal;
|
|
38
38
|
export declare function isDictionaryDefinitionInlineInternal(def: DictionaryDefinitionInternal | DictionaryDefinitionInline | DictionaryDefinition): def is DictionaryDefinitionInlineInternal;
|
|
39
39
|
export {};
|
|
40
|
-
//# sourceMappingURL=CSpellSettingsInternalDef.d.
|
|
40
|
+
//# sourceMappingURL=CSpellSettingsInternalDef.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clean } from '../util/util.
|
|
1
|
+
import { clean } from '../util/util.js';
|
|
2
2
|
export const SymbolCSpellSettingsInternal = Symbol('CSpellSettingsInternal');
|
|
3
3
|
export function cleanCSpellSettingsInternal(parts = {}) {
|
|
4
4
|
const csi = clean(parts);
|
|
@@ -20,3 +20,4 @@ export function isDictionaryDefinitionInlineInternal(def) {
|
|
|
20
20
|
const defInline = def;
|
|
21
21
|
return !!(defInline.words || defInline.flagWords || defInline.ignoreWords || defInline.suggestWords);
|
|
22
22
|
}
|
|
23
|
+
//# sourceMappingURL=CSpellSettingsInternalDef.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Uri from '../util/Uri.
|
|
1
|
+
import * as Uri from '../util/Uri.js';
|
|
2
2
|
export type DocumentUri = Uri.Uri;
|
|
3
3
|
export interface Position {
|
|
4
4
|
line: number;
|
|
@@ -82,4 +82,4 @@ export declare function createTextDocument({ uri, content, languageId, locale, v
|
|
|
82
82
|
export declare function updateTextDocument(doc: TextDocument, edits: TextDocumentContentChangeEvent[], version?: number): TextDocument;
|
|
83
83
|
export declare function loadTextDocument(filename: string | DocumentUri, languageId?: string): Promise<TextDocument>;
|
|
84
84
|
export declare const isTextDocument: (doc: TextDocument | unknown) => doc is TextDocument;
|
|
85
|
-
//# sourceMappingURL=TextDocument.d.
|
|
85
|
+
//# sourceMappingURL=TextDocument.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import assert from 'assert';
|
|
2
2
|
import { promises as fs } from 'fs';
|
|
3
3
|
import { TextDocument as VsTextDocument } from 'vscode-languageserver-textdocument';
|
|
4
|
-
import { getLanguagesForBasename } from '../LanguageIds.
|
|
5
|
-
import * as Uri from '../util/Uri.
|
|
4
|
+
import { getLanguagesForBasename } from '../LanguageIds.js';
|
|
5
|
+
import * as Uri from '../util/Uri.js';
|
|
6
6
|
class TextDocumentImpl {
|
|
7
7
|
constructor(uri, text, languageId, locale, version) {
|
|
8
8
|
this.uri = uri;
|
|
@@ -103,3 +103,4 @@ export async function loadTextDocument(filename, languageId) {
|
|
|
103
103
|
return createTextDocument({ uri, languageId, content });
|
|
104
104
|
}
|
|
105
105
|
export const isTextDocument = isTextDocumentImpl;
|
|
106
|
+
//# sourceMappingURL=TextDocument.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExtendedSuggestion } from './Suggestion.js';
|
|
2
|
+
import type { ValidationResult } from './ValidationResult.js';
|
|
3
|
+
export interface ValidationIssue extends ValidationResult {
|
|
4
|
+
suggestions?: string[] | undefined;
|
|
5
|
+
suggestionsEx?: ExtendedSuggestion[] | undefined;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ValidationIssue.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AdvancedCSpellSettingsWithSourceTrace, Glob, ImportFileRef } from '@cspell/cspell-types';
|
|
2
|
-
import type { CSpellSettingsInternal, CSpellSettingsInternalFinalized } from '../Models/CSpellSettingsInternalDef.
|
|
3
|
-
import type { OptionalOrUndefined } from '../util/types.
|
|
2
|
+
import type { CSpellSettingsInternal, CSpellSettingsInternalFinalized } from '../Models/CSpellSettingsInternalDef.js';
|
|
3
|
+
import type { OptionalOrUndefined } from '../util/types.js';
|
|
4
4
|
type CSpellSettingsWST = AdvancedCSpellSettingsWithSourceTrace;
|
|
5
5
|
type CSpellSettingsWSTO = OptionalOrUndefined<AdvancedCSpellSettingsWithSourceTrace>;
|
|
6
6
|
type CSpellSettingsI = CSpellSettingsInternal;
|
|
@@ -45,4 +45,4 @@ export declare const __testing__: {
|
|
|
45
45
|
mergeObjects: typeof mergeObjects;
|
|
46
46
|
};
|
|
47
47
|
export {};
|
|
48
|
-
//# sourceMappingURL=CSpellSettingsServer.d.
|
|
48
|
+
//# sourceMappingURL=CSpellSettingsServer.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import assert from 'assert';
|
|
2
2
|
import { GlobMatcher } from 'cspell-glob';
|
|
3
3
|
import * as path from 'path';
|
|
4
|
-
import { cleanCSpellSettingsInternal as csi, isCSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.
|
|
5
|
-
import { autoResolveWeak, AutoResolveWeakCache } from '../util/AutoResolve.
|
|
6
|
-
import * as util from '../util/util.
|
|
7
|
-
import { configSettingsFileVersion0_1, ENV_CSPELL_GLOB_ROOT } from './constants.
|
|
8
|
-
import { calcDictionaryDefsToLoad, mapDictDefsToInternal } from './DictionarySettings.
|
|
9
|
-
import { resolvePatterns } from './patterns.
|
|
4
|
+
import { cleanCSpellSettingsInternal as csi, isCSpellSettingsInternal } from '../Models/CSpellSettingsInternalDef.js';
|
|
5
|
+
import { autoResolveWeak, AutoResolveWeakCache } from '../util/AutoResolve.js';
|
|
6
|
+
import * as util from '../util/util.js';
|
|
7
|
+
import { configSettingsFileVersion0_1, ENV_CSPELL_GLOB_ROOT } from './constants.js';
|
|
8
|
+
import { calcDictionaryDefsToLoad, mapDictDefsToInternal } from './DictionarySettings.js';
|
|
9
|
+
import { resolvePatterns } from './patterns.js';
|
|
10
10
|
function mergeListUnique(left, right) {
|
|
11
11
|
if (!Array.isArray(left))
|
|
12
12
|
return Array.isArray(right) ? right : undefined;
|
|
@@ -330,3 +330,4 @@ function extractParsers(plugins) {
|
|
|
330
330
|
export const __testing__ = {
|
|
331
331
|
mergeObjects,
|
|
332
332
|
};
|
|
333
|
+
//# sourceMappingURL=CSpellSettingsServer.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isError } from '../../util/errors.
|
|
1
|
+
import { isError } from '../../util/errors.js';
|
|
2
2
|
export class ImportError extends Error {
|
|
3
3
|
constructor(msg, cause) {
|
|
4
4
|
super(msg);
|
|
@@ -15,3 +15,4 @@ export class UnsupportedPnpFile extends Error {
|
|
|
15
15
|
super(msg);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=ImportError.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSpellSettings, PnPSettings } from '@cspell/cspell-types';
|
|
2
|
-
import type { OptionalOrUndefined } from '../../../util/types.
|
|
2
|
+
import type { OptionalOrUndefined } from '../../../util/types.js';
|
|
3
3
|
export type PnPSettingsOptional = OptionalOrUndefined<PnPSettings>;
|
|
4
4
|
export declare const defaultPnPSettings: PnPSettings;
|
|
5
5
|
/**
|
|
@@ -9,4 +9,4 @@ export declare const defaultPnPSettings: PnPSettings;
|
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
11
|
export declare function normalizePnPSettings(settings: PnPSettingsOptional | CSpellSettings): PnPSettings;
|
|
12
|
-
//# sourceMappingURL=PnPSettings.d.
|
|
12
|
+
//# sourceMappingURL=PnPSettings.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clean } from '../../../util/util.
|
|
1
|
+
import { clean } from '../../../util/util.js';
|
|
2
2
|
export const defaultPnPSettings = Object.freeze({});
|
|
3
3
|
let lastPnP = defaultPnPSettings;
|
|
4
4
|
/**
|
|
@@ -19,3 +19,4 @@ function equal(a, b) {
|
|
|
19
19
|
return (a === b ||
|
|
20
20
|
(a.usePnP === b.usePnP && (a.pnpFiles === b.pnpFiles || a.pnpFiles?.join('|') === b.pnpFiles?.join('|'))));
|
|
21
21
|
}
|
|
22
|
+
//# sourceMappingURL=PnPSettings.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CSpellUserSettings, ImportFileRef } from '@cspell/cspell-types';
|
|
2
2
|
import type { CSpellIO } from 'cspell-io';
|
|
3
|
-
import type { Uri } from '../../../util/Uri.
|
|
4
|
-
import { ImportError } from '../ImportError.
|
|
5
|
-
import type { LoaderResult } from '../pnpLoader.
|
|
6
|
-
import { normalizeCacheSettings } from './normalizeRawSettings.
|
|
7
|
-
import type { PnPSettingsOptional } from './PnPSettings.
|
|
8
|
-
import type { CSpellSettingsI, CSpellSettingsWST } from './types.
|
|
3
|
+
import type { Uri } from '../../../util/Uri.js';
|
|
4
|
+
import { ImportError } from '../ImportError.js';
|
|
5
|
+
import type { LoaderResult } from '../pnpLoader.js';
|
|
6
|
+
import { normalizeCacheSettings } from './normalizeRawSettings.js';
|
|
7
|
+
import type { PnPSettingsOptional } from './PnPSettings.js';
|
|
8
|
+
import type { CSpellSettingsI, CSpellSettingsWST } from './types.js';
|
|
9
9
|
export declare const sectionCSpell = "cSpell";
|
|
10
10
|
export declare const defaultFileName = "cspell.json";
|
|
11
11
|
export declare const defaultConfigFilenames: readonly string[];
|
|
@@ -162,4 +162,4 @@ export declare const __testing__: {
|
|
|
162
162
|
validateRawConfigVersion: typeof validateRawConfigVersion;
|
|
163
163
|
};
|
|
164
164
|
export {};
|
|
165
|
-
//# sourceMappingURL=configLoader.d.
|
|
165
|
+
//# sourceMappingURL=configLoader.d.ts.map
|
|
@@ -2,19 +2,19 @@ import * as json from 'comment-json';
|
|
|
2
2
|
import { cosmiconfig, cosmiconfigSync } from 'cosmiconfig';
|
|
3
3
|
import { getDefaultCSpellIO } from 'cspell-io';
|
|
4
4
|
import * as path from 'path';
|
|
5
|
-
import { createCSpellSettingsInternal as csi } from '../../../Models/CSpellSettingsInternalDef.
|
|
6
|
-
import { AutoResolveLRUCache } from '../../../util/AutoResolveLRUCache.
|
|
7
|
-
import { logError, logWarning } from '../../../util/logger.
|
|
8
|
-
import { resolveFile } from '../../../util/resolveFile.
|
|
9
|
-
import { toUri } from '../../../util/Uri.
|
|
10
|
-
import { configSettingsFileVersion0_1, configSettingsFileVersion0_2, currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT, } from '../../constants.
|
|
11
|
-
import { mergeSettings } from '../../CSpellSettingsServer.
|
|
12
|
-
import { getRawGlobalSettings } from '../../GlobalSettings.
|
|
13
|
-
import { ImportError } from '../ImportError.
|
|
14
|
-
import { pnpLoader } from '../pnpLoader.
|
|
15
|
-
import { defaultSettings } from './defaultSettings.
|
|
16
|
-
import { normalizeCacheSettings, normalizeDictionaryDefs, normalizeGitignoreRoot, normalizeLanguageSettings, normalizeOverrides, normalizeRawConfig, normalizeReporters, normalizeSettingsGlobs, } from './normalizeRawSettings.
|
|
17
|
-
import { defaultPnPSettings, normalizePnPSettings } from './PnPSettings.
|
|
5
|
+
import { createCSpellSettingsInternal as csi } from '../../../Models/CSpellSettingsInternalDef.js';
|
|
6
|
+
import { AutoResolveLRUCache } from '../../../util/AutoResolveLRUCache.js';
|
|
7
|
+
import { logError, logWarning } from '../../../util/logger.js';
|
|
8
|
+
import { resolveFile } from '../../../util/resolveFile.js';
|
|
9
|
+
import { toUri } from '../../../util/Uri.js';
|
|
10
|
+
import { configSettingsFileVersion0_1, configSettingsFileVersion0_2, currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT, } from '../../constants.js';
|
|
11
|
+
import { mergeSettings } from '../../CSpellSettingsServer.js';
|
|
12
|
+
import { getRawGlobalSettings } from '../../GlobalSettings.js';
|
|
13
|
+
import { ImportError } from '../ImportError.js';
|
|
14
|
+
import { pnpLoader } from '../pnpLoader.js';
|
|
15
|
+
import { defaultSettings } from './defaultSettings.js';
|
|
16
|
+
import { normalizeCacheSettings, normalizeDictionaryDefs, normalizeGitignoreRoot, normalizeLanguageSettings, normalizeOverrides, normalizeRawConfig, normalizeReporters, normalizeSettingsGlobs, } from './normalizeRawSettings.js';
|
|
17
|
+
import { defaultPnPSettings, normalizePnPSettings } from './PnPSettings.js';
|
|
18
18
|
const supportedCSpellConfigVersions = [configSettingsFileVersion0_2];
|
|
19
19
|
const setOfSupportedConfigVersions = Object.freeze(new Set(supportedCSpellConfigVersions));
|
|
20
20
|
export const sectionCSpell = 'cSpell';
|
|
@@ -480,3 +480,4 @@ export const __testing__ = {
|
|
|
480
480
|
validateRawConfigExports,
|
|
481
481
|
validateRawConfigVersion,
|
|
482
482
|
};
|
|
483
|
+
//# sourceMappingURL=configLoader.js.map
|
package/dist/esm/Settings/Controller/configLoader/{defaultSettings.mjs → defaultSettings.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createCSpellSettingsInternal as csi } from '../../../Models/CSpellSettingsInternalDef.
|
|
2
|
-
import { currentSettingsFileVersion } from '../../constants.
|
|
1
|
+
import { createCSpellSettingsInternal as csi } from '../../../Models/CSpellSettingsInternalDef.js';
|
|
2
|
+
import { currentSettingsFileVersion } from '../../constants.js';
|
|
3
3
|
export const defaultSettings = csi({
|
|
4
4
|
id: 'default',
|
|
5
5
|
name: 'default',
|
|
6
6
|
version: currentSettingsFileVersion,
|
|
7
7
|
});
|
|
8
|
+
//# sourceMappingURL=defaultSettings.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ImportFileRef } from '@cspell/cspell-types';
|
|
2
|
-
import type { CSpellSettingsWST } from './types.
|
|
2
|
+
import type { CSpellSettingsWST } from './types.js';
|
|
3
3
|
export declare function extractImportErrors(settings: CSpellSettingsWST): ImportFileRefWithError[];
|
|
4
4
|
export interface ImportFileRefWithError extends ImportFileRef {
|
|
5
5
|
error: Error;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=extractImportErrors.d.
|
|
7
|
+
//# sourceMappingURL=extractImportErrors.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { __testing__, clearCachedSettingsFiles, ConfigLoader, createConfigLoader, defaultConfigFilenames, defaultFileName, getCachedFileSize, getGlobalSettings, loadConfig, loadConfigSync, loadPnP, loadPnPSync, readRawSettings, searchForConfig, searchForConfigSync, sectionCSpell, } from './configLoader.
|
|
2
|
-
export { extractImportErrors, ImportFileRefWithError } from './extractImportErrors.
|
|
3
|
-
export { readSettings } from './readSettings.
|
|
4
|
-
export { readSettingsFiles } from './readSettingsFiles.
|
|
5
|
-
//# sourceMappingURL=index.d.
|
|
1
|
+
export { __testing__, clearCachedSettingsFiles, ConfigLoader, createConfigLoader, defaultConfigFilenames, defaultFileName, getCachedFileSize, getGlobalSettings, loadConfig, loadConfigSync, loadPnP, loadPnPSync, readRawSettings, searchForConfig, searchForConfigSync, sectionCSpell, } from './configLoader.js';
|
|
2
|
+
export { extractImportErrors, ImportFileRefWithError } from './extractImportErrors.js';
|
|
3
|
+
export { readSettings } from './readSettings.js';
|
|
4
|
+
export { readSettingsFiles } from './readSettingsFiles.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { __testing__, clearCachedSettingsFiles, ConfigLoader, createConfigLoader, defaultConfigFilenames, defaultFileName, getCachedFileSize, getGlobalSettings, loadConfig, loadConfigSync, loadPnP, loadPnPSync, readRawSettings, searchForConfig, searchForConfigSync, sectionCSpell, } from './configLoader.js';
|
|
2
|
+
export { extractImportErrors } from './extractImportErrors.js';
|
|
3
|
+
export { readSettings } from './readSettings.js';
|
|
4
|
+
export { readSettingsFiles } from './readSettingsFiles.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSpellUserSettings, GlobDef, LanguageSetting } from '@cspell/cspell-types';
|
|
2
|
-
import type { OptionalOrUndefined } from '../../../util/types.
|
|
2
|
+
import type { OptionalOrUndefined } from '../../../util/types.js';
|
|
3
3
|
interface NormalizableFields {
|
|
4
4
|
version?: string | number;
|
|
5
5
|
}
|
|
@@ -48,4 +48,4 @@ interface NormalizeSettingsGlobsResult {
|
|
|
48
48
|
export declare function normalizeSettingsGlobs(settings: NormalizeSettingsGlobs, pathToSettingsFile: string): NormalizeSettingsGlobsResult;
|
|
49
49
|
export declare function normalizeCacheSettings(settings: Pick<CSpellUserSettings, 'cache'>, pathToSettingsDir: string): Pick<CSpellUserSettings, 'cache'>;
|
|
50
50
|
export {};
|
|
51
|
-
//# sourceMappingURL=normalizeRawSettings.d.
|
|
51
|
+
//# sourceMappingURL=normalizeRawSettings.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as path from 'path';
|
|
2
|
-
import { resolveFile } from '../../../util/resolveFile.
|
|
3
|
-
import * as util from '../../../util/util.
|
|
4
|
-
import { mapDictDefsToInternal } from '../../DictionarySettings.
|
|
5
|
-
import { toGlobDef } from './toGlobDef.
|
|
2
|
+
import { resolveFile } from '../../../util/resolveFile.js';
|
|
3
|
+
import * as util from '../../../util/util.js';
|
|
4
|
+
import { mapDictDefsToInternal } from '../../DictionarySettings.js';
|
|
5
|
+
import { toGlobDef } from './toGlobDef.js';
|
|
6
6
|
export function normalizeRawConfig(config) {
|
|
7
7
|
if (typeof config.version === 'number') {
|
|
8
8
|
config.version = config.version.toString();
|
|
@@ -101,3 +101,4 @@ function resolveFilePath(filename, pathToSettingsFile) {
|
|
|
101
101
|
const cwd = process.cwd();
|
|
102
102
|
return path.resolve(pathToSettingsFile, filename.replace('${cwd}', cwd));
|
|
103
103
|
}
|
|
104
|
+
//# sourceMappingURL=normalizeRawSettings.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSpellSettingsI, CSpellSettingsWST } from './types.
|
|
1
|
+
import type { CSpellSettingsI, CSpellSettingsWST } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Read / import a cspell configuration file.
|
|
4
4
|
* @param filename - the path to the file.
|
|
@@ -20,4 +20,4 @@ export declare function readSettings(filename: string, defaultValues: CSpellSett
|
|
|
20
20
|
*/
|
|
21
21
|
export declare function readSettings(filename: string, relativeTo: string): CSpellSettingsI;
|
|
22
22
|
export declare function readSettings(filename: string, relativeTo: string, defaultValues: CSpellSettingsWST): CSpellSettingsI;
|
|
23
|
-
//# sourceMappingURL=readSettings.d.
|
|
23
|
+
//# sourceMappingURL=readSettings.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { getDefaultConfigLoader } from './configLoader.
|
|
1
|
+
import { getDefaultConfigLoader } from './configLoader.js';
|
|
2
2
|
export function readSettings(filename, relativeToOrDefault, defaultValue) {
|
|
3
3
|
const loader = getDefaultConfigLoader();
|
|
4
4
|
if (typeof relativeToOrDefault !== 'string' || defaultValue === undefined)
|
|
5
5
|
return loader.readSettings(filename, relativeToOrDefault);
|
|
6
6
|
return loader.readSettings(filename, relativeToOrDefault, defaultValue);
|
|
7
7
|
}
|
|
8
|
+
//# sourceMappingURL=readSettings.js.map
|
package/dist/esm/Settings/Controller/configLoader/{readSettingsFiles.d.mts → readSettingsFiles.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSpellSettingsI } from './types.
|
|
1
|
+
import type { CSpellSettingsI } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param filenames - settings files to read
|
|
@@ -6,4 +6,4 @@ import type { CSpellSettingsI } from './types.mjs';
|
|
|
6
6
|
* @deprecated true
|
|
7
7
|
*/
|
|
8
8
|
export declare function readSettingsFiles(filenames: string[]): CSpellSettingsI;
|
|
9
|
-
//# sourceMappingURL=readSettingsFiles.d.
|
|
9
|
+
//# sourceMappingURL=readSettingsFiles.d.ts.map
|
package/dist/esm/Settings/Controller/configLoader/{readSettingsFiles.mjs → readSettingsFiles.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { mergeSettings } from '../../CSpellSettingsServer.
|
|
2
|
-
import { defaultSettings } from './defaultSettings.
|
|
3
|
-
import { readSettings } from './readSettings.
|
|
1
|
+
import { mergeSettings } from '../../CSpellSettingsServer.js';
|
|
2
|
+
import { defaultSettings } from './defaultSettings.js';
|
|
3
|
+
import { readSettings } from './readSettings.js';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* @param filenames - settings files to read
|
|
@@ -10,3 +10,4 @@ import { readSettings } from './readSettings.mjs';
|
|
|
10
10
|
export function readSettingsFiles(filenames) {
|
|
11
11
|
return filenames.map((filename) => readSettings(filename)).reduce((a, b) => mergeSettings(a, b), defaultSettings);
|
|
12
12
|
}
|
|
13
|
+
//# sourceMappingURL=readSettingsFiles.js.map
|
|
@@ -3,4 +3,4 @@ export declare function toGlobDef(g: undefined, root: string | undefined, source
|
|
|
3
3
|
export declare function toGlobDef(g: Glob, root: string | undefined, source: string | undefined): GlobDef;
|
|
4
4
|
export declare function toGlobDef(g: Glob[], root: string | undefined, source: string | undefined): GlobDef[];
|
|
5
5
|
export declare function toGlobDef(g: Glob | Glob[], root: string | undefined, source: string | undefined): GlobDef | GlobDef[];
|
|
6
|
-
//# sourceMappingURL=toGlobDef.d.
|
|
6
|
+
//# sourceMappingURL=toGlobDef.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSpellSettingsWithSourceTrace } from '@cspell/cspell-types';
|
|
2
|
-
import type { CSpellSettingsInternal } from '../../../Models/CSpellSettingsInternalDef.
|
|
2
|
+
import type { CSpellSettingsInternal } from '../../../Models/CSpellSettingsInternalDef.js';
|
|
3
3
|
export type CSpellSettingsWST = CSpellSettingsWithSourceTrace;
|
|
4
4
|
export type CSpellSettingsI = CSpellSettingsInternal;
|
|
5
|
-
//# sourceMappingURL=types.d.
|
|
5
|
+
//# sourceMappingURL=types.d.ts.map
|