cspell-lib 7.0.0-alpha.1 → 7.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Document/resolveDocument.d.mts +1 -1
- package/dist/esm/Settings/Controller/pnpLoader.mjs +2 -2
- package/dist/esm/spellCheckFile.d.mts +1 -1
- package/dist/esm/util/Uri.mjs +1 -1
- package/dist/esm/util/errors.d.mts +1 -1
- package/dist/esm/util/fileReader.d.mts +1 -1
- package/dist/lib-cjs/vscodeUri.cjs +29 -0
- package/dist/lib-cjs/vscodeUri.d.cts +3 -0
- package/package.json +25 -26
- package/dist/cjs/Cache/cspell.cache.d.ts +0 -42
- package/dist/cjs/Cache/cspell.cache.js +0 -15
- package/dist/cjs/Cache/index.d.ts +0 -2
- package/dist/cjs/Cache/index.js +0 -3
- package/dist/cjs/Document/Document.d.ts +0 -13
- package/dist/cjs/Document/Document.js +0 -3
- package/dist/cjs/Document/index.d.ts +0 -4
- package/dist/cjs/Document/index.js +0 -9
- package/dist/cjs/Document/isBinaryDoc.d.ts +0 -5
- package/dist/cjs/Document/isBinaryDoc.js +0 -22
- package/dist/cjs/Document/normalizeLanguageIds.d.ts +0 -2
- package/dist/cjs/Document/normalizeLanguageIds.js +0 -8
- package/dist/cjs/Document/resolveDocument.d.ts +0 -11
- package/dist/cjs/Document/resolveDocument.js +0 -75
- package/dist/cjs/FeatureFlags/FeatureFlags.d.ts +0 -30
- package/dist/cjs/FeatureFlags/FeatureFlags.js +0 -77
- package/dist/cjs/FeatureFlags/index.d.ts +0 -2
- package/dist/cjs/FeatureFlags/index.js +0 -8
- package/dist/cjs/LanguageIds.d.ts +0 -37
- package/dist/cjs/LanguageIds.js +0 -316
- package/dist/cjs/Models/CSpellSettingsInternalDef.d.ts +0 -40
- package/dist/cjs/Models/CSpellSettingsInternalDef.js +0 -30
- package/dist/cjs/Models/PatternRegExp.d.ts +0 -5
- package/dist/cjs/Models/PatternRegExp.js +0 -13
- package/dist/cjs/Models/Suggestion.d.ts +0 -15
- package/dist/cjs/Models/Suggestion.js +0 -3
- package/dist/cjs/Models/TextDocument.d.ts +0 -85
- package/dist/cjs/Models/TextDocument.js +0 -138
- package/dist/cjs/Models/ValidationIssue.d.ts +0 -7
- package/dist/cjs/Models/ValidationIssue.js +0 -3
- package/dist/cjs/Models/ValidationResult.d.ts +0 -7
- package/dist/cjs/Models/ValidationResult.js +0 -3
- package/dist/cjs/Settings/CSpellSettingsServer.d.ts +0 -48
- package/dist/cjs/Settings/CSpellSettingsServer.js +0 -370
- package/dist/cjs/Settings/Controller/ImportError.d.ts +0 -11
- package/dist/cjs/Settings/Controller/ImportError.js +0 -24
- package/dist/cjs/Settings/Controller/SettingsController.d.ts +0 -9
- package/dist/cjs/Settings/Controller/SettingsController.js +0 -13
- package/dist/cjs/Settings/Controller/configLoader/PnPSettings.d.ts +0 -12
- package/dist/cjs/Settings/Controller/configLoader/PnPSettings.js +0 -26
- package/dist/cjs/Settings/Controller/configLoader/configLoader.d.ts +0 -165
- package/dist/cjs/Settings/Controller/configLoader/configLoader.js +0 -516
- package/dist/cjs/Settings/Controller/configLoader/defaultSettings.d.ts +0 -3
- package/dist/cjs/Settings/Controller/configLoader/defaultSettings.js +0 -11
- package/dist/cjs/Settings/Controller/configLoader/extractImportErrors.d.ts +0 -7
- package/dist/cjs/Settings/Controller/configLoader/extractImportErrors.js +0 -26
- package/dist/cjs/Settings/Controller/configLoader/index.d.ts +0 -5
- package/dist/cjs/Settings/Controller/configLoader/index.js +0 -27
- package/dist/cjs/Settings/Controller/configLoader/normalizeRawSettings.d.ts +0 -51
- package/dist/cjs/Settings/Controller/configLoader/normalizeRawSettings.js +0 -138
- package/dist/cjs/Settings/Controller/configLoader/readSettings.d.ts +0 -23
- package/dist/cjs/Settings/Controller/configLoader/readSettings.js +0 -12
- package/dist/cjs/Settings/Controller/configLoader/readSettingsFiles.d.ts +0 -9
- package/dist/cjs/Settings/Controller/configLoader/readSettingsFiles.js +0 -17
- package/dist/cjs/Settings/Controller/configLoader/toGlobDef.d.ts +0 -6
- package/dist/cjs/Settings/Controller/configLoader/toGlobDef.js +0 -23
- package/dist/cjs/Settings/Controller/configLoader/types.d.ts +0 -5
- package/dist/cjs/Settings/Controller/configLoader/types.js +0 -3
- package/dist/cjs/Settings/Controller/index.d.ts +0 -2
- package/dist/cjs/Settings/Controller/index.js +0 -6
- package/dist/cjs/Settings/Controller/pnpLoader.d.ts +0 -29
- package/dist/cjs/Settings/Controller/pnpLoader.js +0 -143
- package/dist/cjs/Settings/DefaultSettings.d.ts +0 -6
- package/dist/cjs/Settings/DefaultSettings.js +0 -190
- package/dist/cjs/Settings/DictionaryReferenceCollection.d.ts +0 -10
- package/dist/cjs/Settings/DictionaryReferenceCollection.js +0 -47
- package/dist/cjs/Settings/DictionarySettings.d.ts +0 -27
- package/dist/cjs/Settings/DictionarySettings.js +0 -155
- package/dist/cjs/Settings/GlobalSettings.d.ts +0 -10
- package/dist/cjs/Settings/GlobalSettings.js +0 -62
- package/dist/cjs/Settings/InDocSettings.d.ts +0 -45
- package/dist/cjs/Settings/InDocSettings.js +0 -304
- package/dist/cjs/Settings/LanguageSettings.d.ts +0 -18
- package/dist/cjs/Settings/LanguageSettings.js +0 -161
- package/dist/cjs/Settings/RegExpPatterns.d.ts +0 -46
- package/dist/cjs/Settings/RegExpPatterns.js +0 -57
- package/dist/cjs/Settings/TextDocumentSettings.d.ts +0 -5
- package/dist/cjs/Settings/TextDocumentSettings.js +0 -45
- package/dist/cjs/Settings/cfgStore.d.ts +0 -4
- package/dist/cjs/Settings/cfgStore.js +0 -9
- package/dist/cjs/Settings/constants.d.ts +0 -5
- package/dist/cjs/Settings/constants.js +0 -8
- package/dist/cjs/Settings/index.d.ts +0 -7
- package/dist/cjs/Settings/index.js +0 -35
- package/dist/cjs/Settings/index.link.d.ts +0 -3
- package/dist/cjs/Settings/index.link.js +0 -8
- package/dist/cjs/Settings/link.d.ts +0 -50
- package/dist/cjs/Settings/link.js +0 -166
- package/dist/cjs/Settings/patterns.d.ts +0 -3
- package/dist/cjs/Settings/patterns.js +0 -32
- package/dist/cjs/SpellingDictionary/Dictionaries.d.ts +0 -8
- package/dist/cjs/SpellingDictionary/Dictionaries.js +0 -56
- package/dist/cjs/SpellingDictionary/DictionaryController/DictionaryLoader.d.ts +0 -32
- package/dist/cjs/SpellingDictionary/DictionaryController/DictionaryLoader.js +0 -285
- package/dist/cjs/SpellingDictionary/DictionaryController/index.d.ts +0 -2
- package/dist/cjs/SpellingDictionary/DictionaryController/index.js +0 -6
- package/dist/cjs/SpellingDictionary/DictionaryLoader.d.ts +0 -15
- package/dist/cjs/SpellingDictionary/DictionaryLoader.js +0 -30
- package/dist/cjs/SpellingDictionary/SpellingDictionary.d.ts +0 -4
- package/dist/cjs/SpellingDictionary/SpellingDictionary.js +0 -10
- package/dist/cjs/SpellingDictionary/SpellingDictionaryError.d.ts +0 -10
- package/dist/cjs/SpellingDictionary/SpellingDictionaryError.js +0 -18
- package/dist/cjs/SpellingDictionary/SuggestExperimental/SuggestionCollector.d.ts +0 -10
- package/dist/cjs/SpellingDictionary/SuggestExperimental/SuggestionCollector.js +0 -19
- package/dist/cjs/SpellingDictionary/SuggestExperimental/entities.d.ts +0 -6
- package/dist/cjs/SpellingDictionary/SuggestExperimental/entities.js +0 -3
- package/dist/cjs/SpellingDictionary/SuggestExperimental/helpers.d.ts +0 -21
- package/dist/cjs/SpellingDictionary/SuggestExperimental/helpers.js +0 -69
- package/dist/cjs/SpellingDictionary/SuggestExperimental/suggest.d.ts +0 -6
- package/dist/cjs/SpellingDictionary/SuggestExperimental/suggest.js +0 -33
- package/dist/cjs/SpellingDictionary/index.d.ts +0 -4
- package/dist/cjs/SpellingDictionary/index.js +0 -20
- package/dist/cjs/clearCachedFiles.d.ts +0 -2
- package/dist/cjs/clearCachedFiles.js +0 -10
- package/dist/cjs/exclusionHelper.d.ts +0 -23
- package/dist/cjs/exclusionHelper.js +0 -57
- package/dist/cjs/getDictionary.d.ts +0 -9
- package/dist/cjs/getDictionary.js +0 -15
- package/dist/cjs/index.d.ts +0 -30
- package/dist/cjs/index.js +0 -126
- package/dist/cjs/spellCheckFile.d.ts +0 -67
- package/dist/cjs/spellCheckFile.js +0 -113
- package/dist/cjs/static.d.ts +0 -3
- package/dist/cjs/static.js +0 -10
- package/dist/cjs/suggestions.d.ts +0 -74
- package/dist/cjs/suggestions.js +0 -217
- package/dist/cjs/textValidation/ValidateTextOptions.d.ts +0 -15
- package/dist/cjs/textValidation/ValidateTextOptions.js +0 -3
- package/dist/cjs/textValidation/ValidationTypes.d.ts +0 -39
- package/dist/cjs/textValidation/ValidationTypes.js +0 -3
- package/dist/cjs/textValidation/checkText.d.ts +0 -48
- package/dist/cjs/textValidation/checkText.js +0 -153
- package/dist/cjs/textValidation/defaultConstants.d.ts +0 -5
- package/dist/cjs/textValidation/defaultConstants.js +0 -8
- package/dist/cjs/textValidation/determineTextDocumentSettings.d.ts +0 -17
- package/dist/cjs/textValidation/determineTextDocumentSettings.js +0 -63
- package/dist/cjs/textValidation/docValidator.d.ts +0 -126
- package/dist/cjs/textValidation/docValidator.js +0 -422
- package/dist/cjs/textValidation/index.d.ts +0 -12
- package/dist/cjs/textValidation/index.js +0 -15
- package/dist/cjs/textValidation/isWordValid.d.ts +0 -9
- package/dist/cjs/textValidation/isWordValid.js +0 -18
- package/dist/cjs/textValidation/lineValidatorFactory.d.ts +0 -14
- package/dist/cjs/textValidation/lineValidatorFactory.js +0 -156
- package/dist/cjs/textValidation/parsedText.d.ts +0 -15
- package/dist/cjs/textValidation/parsedText.js +0 -110
- package/dist/cjs/textValidation/settingsToValidateOptions.d.ts +0 -4
- package/dist/cjs/textValidation/settingsToValidateOptions.js +0 -12
- package/dist/cjs/textValidation/textValidator.d.ts +0 -20
- package/dist/cjs/textValidation/textValidator.js +0 -117
- package/dist/cjs/textValidation/validator.d.ts +0 -10
- package/dist/cjs/textValidation/validator.js +0 -86
- package/dist/cjs/trace.d.ts +0 -23
- package/dist/cjs/trace.js +0 -93
- package/dist/cjs/util/AutoResolve.d.ts +0 -21
- package/dist/cjs/util/AutoResolve.js +0 -62
- package/dist/cjs/util/AutoResolveLRUCache.d.ts +0 -54
- package/dist/cjs/util/AutoResolveLRUCache.js +0 -138
- package/dist/cjs/util/Comparable.d.ts +0 -20
- package/dist/cjs/util/Comparable.js +0 -55
- package/dist/cjs/util/FreqCounter.d.ts +0 -16
- package/dist/cjs/util/FreqCounter.js +0 -52
- package/dist/cjs/util/IterableLike.d.ts +0 -4
- package/dist/cjs/util/IterableLike.js +0 -3
- package/dist/cjs/util/MinHeapQueue.d.ts +0 -23
- package/dist/cjs/util/MinHeapQueue.js +0 -97
- package/dist/cjs/util/PairingHeap.d.ts +0 -32
- package/dist/cjs/util/PairingHeap.js +0 -90
- package/dist/cjs/util/TextMap.d.ts +0 -15
- package/dist/cjs/util/TextMap.js +0 -62
- package/dist/cjs/util/TextRange.d.ts +0 -28
- package/dist/cjs/util/TextRange.js +0 -144
- package/dist/cjs/util/Uri.d.ts +0 -50
- package/dist/cjs/util/Uri.js +0 -178
- package/dist/cjs/util/debugPerf.d.ts +0 -9
- package/dist/cjs/util/debugPerf.js +0 -22
- package/dist/cjs/util/errors.d.ts +0 -26
- package/dist/cjs/util/errors.js +0 -77
- package/dist/cjs/util/fileReader.d.ts +0 -4
- package/dist/cjs/util/fileReader.js +0 -21
- package/dist/cjs/util/iterableIteratorLib.d.ts +0 -4
- package/dist/cjs/util/iterableIteratorLib.js +0 -14
- package/dist/cjs/util/logger.d.ts +0 -31
- package/dist/cjs/util/logger.js +0 -46
- package/dist/cjs/util/memorizeLastCall.d.ts +0 -13
- package/dist/cjs/util/memorizeLastCall.js +0 -18
- package/dist/cjs/util/memorizerWeak.d.ts +0 -6
- package/dist/cjs/util/memorizerWeak.js +0 -42
- package/dist/cjs/util/regexHelper.d.ts +0 -7
- package/dist/cjs/util/regexHelper.js +0 -13
- package/dist/cjs/util/repMap.d.ts +0 -4
- package/dist/cjs/util/repMap.js +0 -38
- package/dist/cjs/util/resolveFile.d.ts +0 -13
- package/dist/cjs/util/resolveFile.js +0 -127
- package/dist/cjs/util/search.d.ts +0 -6
- package/dist/cjs/util/search.js +0 -23
- package/dist/cjs/util/simpleCache.d.ts +0 -46
- package/dist/cjs/util/simpleCache.js +0 -143
- package/dist/cjs/util/text.d.ts +0 -49
- package/dist/cjs/util/text.js +0 -211
- package/dist/cjs/util/textRegex.d.ts +0 -20
- package/dist/cjs/util/textRegex.js +0 -131
- package/dist/cjs/util/timer.d.ts +0 -26
- package/dist/cjs/util/timer.js +0 -58
- package/dist/cjs/util/types.d.ts +0 -62
- package/dist/cjs/util/types.js +0 -9
- package/dist/cjs/util/util.d.ts +0 -33
- package/dist/cjs/util/util.js +0 -110
- package/dist/cjs/util/wordSplitter.d.ts +0 -48
- package/dist/cjs/util/wordSplitter.js +0 -335
- package/dist/cjs/validator.d.ts +0 -3
- package/dist/cjs/validator.js +0 -9
- package/dist/cjs/wordListHelper.d.ts +0 -14
- package/dist/cjs/wordListHelper.js +0 -62
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { TextDocument } from '../Models/TextDocument.mjs';
|
|
3
3
|
import type { Document, DocumentWithText } from './Document.mjs';
|
|
4
4
|
export declare function fileToDocument(file: string): Document;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Handles loading of `.pnp.js` and `.pnp.js` files.
|
|
3
3
|
*/
|
|
4
4
|
import clearModule from 'clear-module';
|
|
5
|
-
import findUp from 'find-up';
|
|
5
|
+
import { findUp, findUpSync } from 'find-up';
|
|
6
6
|
import importFresh from 'import-fresh';
|
|
7
7
|
import { toUri, uriToFilePath } from '../../util/Uri.mjs';
|
|
8
8
|
import { UnsupportedPnpFile } from './ImportError.mjs';
|
|
@@ -90,7 +90,7 @@ async function findPnpAndLoad(uriDirectory, pnpFiles) {
|
|
|
90
90
|
* @param uriDirectory - directory to start at.
|
|
91
91
|
*/
|
|
92
92
|
function findPnpAndLoadSync(uriDirectory, pnpFiles) {
|
|
93
|
-
const found =
|
|
93
|
+
const found = findUpSync(pnpFiles, { cwd: uriToFilePath(uriDirectory) });
|
|
94
94
|
return loadPnpIfNeeded(found);
|
|
95
95
|
}
|
|
96
96
|
function loadPnpIfNeeded(found) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { CSpellSettingsWithSourceTrace, CSpellUserSettings } from '@cspell/cspell-types';
|
|
3
3
|
import type { Document, DocumentWithText } from './Document/index.mjs';
|
|
4
4
|
import type { Uri } from './util/Uri.mjs';
|
package/dist/esm/util/Uri.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
declare function getTypeOf(t: unknown): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
3
3
|
export declare function isErrnoException(e: unknown): e is NodeJS.ErrnoException;
|
|
4
4
|
export declare function isError(e: unknown): e is Error;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
export declare function readLines(filename: string, encoding?: BufferEncoding): Promise<IterableIterator<string>>;
|
|
3
3
|
export declare function readLinesSync(filename: string, encoding?: BufferEncoding): string[];
|
|
4
4
|
//# sourceMappingURL=fileReader.d.mts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Utils = exports.URI = void 0;
|
|
27
|
+
const vscodeUriPkg = __importStar(require("vscode-uri"));
|
|
28
|
+
exports.URI = vscodeUriPkg.URI, exports.Utils = vscodeUriPkg.Utils;
|
|
29
|
+
//# sourceMappingURL=vscodeUri.cjs.map
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-lib",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.2",
|
|
4
4
|
"description": "A library of useful functions used across various cspell tools.",
|
|
5
|
-
"type": "
|
|
6
|
-
"
|
|
7
|
-
"types": "dist/cjs/index.d.ts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "dist/api/api.d.ts",
|
|
8
7
|
"module": "dist/esm/index.mjs",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/esm/index.mjs"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
9
13
|
"files": [
|
|
10
14
|
"dist",
|
|
11
15
|
"!dist/esm/**/*.js",
|
|
@@ -19,11 +23,10 @@
|
|
|
19
23
|
"!**/*.map"
|
|
20
24
|
],
|
|
21
25
|
"scripts": {
|
|
22
|
-
"clean": "shx rm -rf dist coverage
|
|
26
|
+
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
23
27
|
"clean-build": "pnpm clean && pnpm build",
|
|
24
28
|
"build": "tsc -b . && ts2mjs dist/esm && pnpm run build:api",
|
|
25
29
|
"build:api": "rollup -c api/rollup.config.mjs",
|
|
26
|
-
"build:cjs": "tsc -b tsconfig.cjs.json",
|
|
27
30
|
"build:esm": "tsc -b tsconfig.esm.json",
|
|
28
31
|
"build:esm:ts2mjs": "tsc -b tsconfig.esm.json && ts2mjs dist/esm",
|
|
29
32
|
"build:lib": "tsc -b src/lib/tsconfig.json",
|
|
@@ -57,21 +60,21 @@
|
|
|
57
60
|
},
|
|
58
61
|
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
|
|
59
62
|
"dependencies": {
|
|
60
|
-
"@cspell/cspell-bundled-dicts": "7.0.0-alpha.
|
|
61
|
-
"@cspell/cspell-pipe": "7.0.0-alpha.
|
|
62
|
-
"@cspell/cspell-types": "7.0.0-alpha.
|
|
63
|
-
"@cspell/strong-weak-map": "7.0.0-alpha.
|
|
63
|
+
"@cspell/cspell-bundled-dicts": "7.0.0-alpha.2",
|
|
64
|
+
"@cspell/cspell-pipe": "7.0.0-alpha.2",
|
|
65
|
+
"@cspell/cspell-types": "7.0.0-alpha.2",
|
|
66
|
+
"@cspell/strong-weak-map": "7.0.0-alpha.2",
|
|
64
67
|
"clear-module": "^4.1.2",
|
|
65
68
|
"comment-json": "^4.2.3",
|
|
66
|
-
"configstore": "^
|
|
69
|
+
"configstore": "^6.0.0",
|
|
67
70
|
"cosmiconfig": "8.0.0",
|
|
68
|
-
"cspell-dictionary": "7.0.0-alpha.
|
|
69
|
-
"cspell-glob": "7.0.0-alpha.
|
|
70
|
-
"cspell-grammar": "7.0.0-alpha.
|
|
71
|
-
"cspell-io": "7.0.0-alpha.
|
|
72
|
-
"cspell-trie-lib": "7.0.0-alpha.
|
|
73
|
-
"fast-equals": "^
|
|
74
|
-
"find-up": "^
|
|
71
|
+
"cspell-dictionary": "7.0.0-alpha.2",
|
|
72
|
+
"cspell-glob": "7.0.0-alpha.2",
|
|
73
|
+
"cspell-grammar": "7.0.0-alpha.2",
|
|
74
|
+
"cspell-io": "7.0.0-alpha.2",
|
|
75
|
+
"cspell-trie-lib": "7.0.0-alpha.2",
|
|
76
|
+
"fast-equals": "^5.0.1",
|
|
77
|
+
"find-up": "^6.3.0",
|
|
75
78
|
"gensequence": "^5.0.2",
|
|
76
79
|
"import-fresh": "^3.3.0",
|
|
77
80
|
"resolve-from": "^5.0.0",
|
|
@@ -90,14 +93,10 @@
|
|
|
90
93
|
"@cspell/dict-fr-fr": "^2.2.1",
|
|
91
94
|
"@cspell/dict-html": "^4.0.3",
|
|
92
95
|
"@cspell/dict-nl-nl": "^2.2.8",
|
|
93
|
-
"@cspell/dict-python": "^4.0.
|
|
94
|
-
"@types/configstore": "^
|
|
95
|
-
"@types/jest": "^29.5.0",
|
|
96
|
+
"@cspell/dict-python": "^4.0.4",
|
|
97
|
+
"@types/configstore": "^6.0.0",
|
|
96
98
|
"cspell-dict-nl-nl": "^1.1.2",
|
|
97
|
-
"
|
|
98
|
-
"jest": "^29.5.0",
|
|
99
|
-
"lorem-ipsum": "^2.0.8",
|
|
100
|
-
"ts-jest": "^29.1.0"
|
|
99
|
+
"lorem-ipsum": "^2.0.8"
|
|
101
100
|
},
|
|
102
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "a1b7c5daeef5afdb14d6444318f450b9fd9c035a"
|
|
103
102
|
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Proposed CSpell Cache file.
|
|
3
|
-
* To be stored at `./.cspell/cache/cache.json`
|
|
4
|
-
*/
|
|
5
|
-
export interface CSpellCache {
|
|
6
|
-
version: Version;
|
|
7
|
-
signature: Hash;
|
|
8
|
-
files: CachedFile[];
|
|
9
|
-
}
|
|
10
|
-
export type Version = '0.1';
|
|
11
|
-
/**
|
|
12
|
-
* Hash used. Starts with hash id. i.e. `sha1-` or `sha512-`.
|
|
13
|
-
*/
|
|
14
|
-
export type Hash = string;
|
|
15
|
-
export type UriRelPath = string;
|
|
16
|
-
export declare enum IssueCode {
|
|
17
|
-
UnknownWord = 1,
|
|
18
|
-
ForbiddenWord = 2,
|
|
19
|
-
KnownIssue = 4,
|
|
20
|
-
ALL = 7
|
|
21
|
-
}
|
|
22
|
-
export interface CachedFile {
|
|
23
|
-
hash: Hash;
|
|
24
|
-
path: UriRelPath;
|
|
25
|
-
issues: Issue[];
|
|
26
|
-
}
|
|
27
|
-
export type Issue = IssueEntry | IssueLine;
|
|
28
|
-
export interface IssueEntry {
|
|
29
|
-
line: number;
|
|
30
|
-
character: number;
|
|
31
|
-
code: IssueCode;
|
|
32
|
-
text: string;
|
|
33
|
-
len: number;
|
|
34
|
-
}
|
|
35
|
-
export type IssueLine = [
|
|
36
|
-
line: IssueEntry['line'],
|
|
37
|
-
character: IssueEntry['character'],
|
|
38
|
-
code: IssueEntry['code'],
|
|
39
|
-
text: IssueEntry['text'],
|
|
40
|
-
len: IssueEntry['len']
|
|
41
|
-
];
|
|
42
|
-
//# sourceMappingURL=cspell.cache.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Proposed CSpell Cache file.
|
|
4
|
-
* To be stored at `./.cspell/cache/cache.json`
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.IssueCode = void 0;
|
|
8
|
-
var IssueCode;
|
|
9
|
-
(function (IssueCode) {
|
|
10
|
-
IssueCode[IssueCode["UnknownWord"] = 1] = "UnknownWord";
|
|
11
|
-
IssueCode[IssueCode["ForbiddenWord"] = 2] = "ForbiddenWord";
|
|
12
|
-
IssueCode[IssueCode["KnownIssue"] = 4] = "KnownIssue";
|
|
13
|
-
IssueCode[IssueCode["ALL"] = 7] = "ALL";
|
|
14
|
-
})(IssueCode = exports.IssueCode || (exports.IssueCode = {}));
|
|
15
|
-
//# sourceMappingURL=cspell.cache.js.map
|
package/dist/cjs/Cache/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Uri } from '../util/Uri.js';
|
|
2
|
-
export interface Document {
|
|
3
|
-
uri: UriString;
|
|
4
|
-
text?: string;
|
|
5
|
-
languageId?: string;
|
|
6
|
-
locale?: string;
|
|
7
|
-
}
|
|
8
|
-
export type UriString = string;
|
|
9
|
-
export type UriOrString = UriString | Uri;
|
|
10
|
-
export interface DocumentWithText extends Document {
|
|
11
|
-
text: string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Document.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fileToTextDocument = exports.fileToDocument = exports.isBinaryFile = void 0;
|
|
4
|
-
var isBinaryDoc_js_1 = require("./isBinaryDoc.js");
|
|
5
|
-
Object.defineProperty(exports, "isBinaryFile", { enumerable: true, get: function () { return isBinaryDoc_js_1.isBinaryFile; } });
|
|
6
|
-
var resolveDocument_js_1 = require("./resolveDocument.js");
|
|
7
|
-
Object.defineProperty(exports, "fileToDocument", { enumerable: true, get: function () { return resolveDocument_js_1.fileToDocument; } });
|
|
8
|
-
Object.defineProperty(exports, "fileToTextDocument", { enumerable: true, get: function () { return resolveDocument_js_1.fileToTextDocument; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Uri } from '../util/Uri.js';
|
|
2
|
-
import type { Document } from './Document.js';
|
|
3
|
-
export declare function isBinaryDoc(document: Document): boolean;
|
|
4
|
-
export declare function isBinaryFile(filename: Uri | URL | string, languageId?: string | string[]): boolean;
|
|
5
|
-
//# sourceMappingURL=isBinaryDoc.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isBinaryFile = exports.isBinaryDoc = void 0;
|
|
4
|
-
const LanguageIds_js_1 = require("../LanguageIds.js");
|
|
5
|
-
const Uri_js_1 = require("../util/Uri.js");
|
|
6
|
-
const normalizeLanguageIds_js_1 = require("./normalizeLanguageIds.js");
|
|
7
|
-
function isBinaryDoc(document) {
|
|
8
|
-
return isBinaryFile((0, Uri_js_1.toUri)(document.uri), document.languageId);
|
|
9
|
-
}
|
|
10
|
-
exports.isBinaryDoc = isBinaryDoc;
|
|
11
|
-
function isBinaryFile(filename, languageId) {
|
|
12
|
-
const filenameUri = (0, Uri_js_1.toUri)(filename);
|
|
13
|
-
if (languageId) {
|
|
14
|
-
const ids = (0, normalizeLanguageIds_js_1.normalizeLanguageIds)(languageId);
|
|
15
|
-
if (ids.length)
|
|
16
|
-
return (0, LanguageIds_js_1.isGenerated)(ids);
|
|
17
|
-
}
|
|
18
|
-
const file = (0, Uri_js_1.basename)(filenameUri);
|
|
19
|
-
return (0, LanguageIds_js_1.isGeneratedFile)(file);
|
|
20
|
-
}
|
|
21
|
-
exports.isBinaryFile = isBinaryFile;
|
|
22
|
-
//# sourceMappingURL=isBinaryDoc.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeLanguageIds = void 0;
|
|
4
|
-
function normalizeLanguageIds(languageId) {
|
|
5
|
-
return (Array.isArray(languageId) ? languageId.join(',') : languageId).split(',').map((s) => s.trim());
|
|
6
|
-
}
|
|
7
|
-
exports.normalizeLanguageIds = normalizeLanguageIds;
|
|
8
|
-
//# sourceMappingURL=normalizeLanguageIds.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { TextDocument } from '../Models/TextDocument.js';
|
|
3
|
-
import type { Document, DocumentWithText } from './Document.js';
|
|
4
|
-
export declare function fileToDocument(file: string): Document;
|
|
5
|
-
export declare function fileToDocument(file: string, text: string, languageId?: string, locale?: string): DocumentWithText;
|
|
6
|
-
export declare function fileToDocument(file: string, text?: string, languageId?: string, locale?: string): Document | DocumentWithText;
|
|
7
|
-
export declare function fileToTextDocument(file: string): Promise<TextDocument>;
|
|
8
|
-
export declare function documentToTextDocument(document: DocumentWithText): TextDocument;
|
|
9
|
-
export declare function resolveDocumentToTextDocument(doc: Document): Promise<TextDocument>;
|
|
10
|
-
export declare function resolveDocument(document: DocumentWithText | Document, encoding?: BufferEncoding): Promise<DocumentWithText>;
|
|
11
|
-
//# sourceMappingURL=resolveDocument.d.ts.map
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.resolveDocument = exports.resolveDocumentToTextDocument = exports.documentToTextDocument = exports.fileToTextDocument = exports.fileToDocument = void 0;
|
|
27
|
-
const promises_1 = require("fs/promises");
|
|
28
|
-
const TextDocument_js_1 = require("../Models/TextDocument.js");
|
|
29
|
-
const Uri = __importStar(require("../util/Uri.js"));
|
|
30
|
-
const util_js_1 = require("../util/util.js");
|
|
31
|
-
const defaultEncoding = 'utf8';
|
|
32
|
-
function fileToDocument(file, text, languageId, locale) {
|
|
33
|
-
return (0, util_js_1.clean)({
|
|
34
|
-
uri: Uri.toUri(file).toString(),
|
|
35
|
-
text,
|
|
36
|
-
languageId,
|
|
37
|
-
locale,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
exports.fileToDocument = fileToDocument;
|
|
41
|
-
async function fileToTextDocument(file) {
|
|
42
|
-
return documentToTextDocument(await resolveDocument(fileToDocument(file)));
|
|
43
|
-
}
|
|
44
|
-
exports.fileToTextDocument = fileToTextDocument;
|
|
45
|
-
function documentToTextDocument(document) {
|
|
46
|
-
const { uri, text: content, languageId, locale } = document;
|
|
47
|
-
return (0, TextDocument_js_1.createTextDocument)({ uri, content, languageId, locale });
|
|
48
|
-
}
|
|
49
|
-
exports.documentToTextDocument = documentToTextDocument;
|
|
50
|
-
async function resolveDocumentToTextDocument(doc) {
|
|
51
|
-
return documentToTextDocument(await resolveDocument(doc));
|
|
52
|
-
}
|
|
53
|
-
exports.resolveDocumentToTextDocument = resolveDocumentToTextDocument;
|
|
54
|
-
async function readDocument(filename, encoding = defaultEncoding) {
|
|
55
|
-
const text = await (0, promises_1.readFile)(filename, encoding);
|
|
56
|
-
const uri = Uri.toUri(filename).toString();
|
|
57
|
-
return {
|
|
58
|
-
uri,
|
|
59
|
-
text,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function resolveDocument(document, encoding) {
|
|
63
|
-
if (isDocumentWithText(document))
|
|
64
|
-
return Promise.resolve(document);
|
|
65
|
-
const uri = Uri.toUri(document.uri);
|
|
66
|
-
if (uri.scheme !== 'file') {
|
|
67
|
-
throw new Error(`Unsupported schema: "${uri.scheme}", open "${uri.toString()}"`);
|
|
68
|
-
}
|
|
69
|
-
return readDocument(Uri.uriToFilePath(uri), encoding);
|
|
70
|
-
}
|
|
71
|
-
exports.resolveDocument = resolveDocument;
|
|
72
|
-
function isDocumentWithText(doc) {
|
|
73
|
-
return doc.text !== undefined;
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=resolveDocument.js.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface FeatureFlag {
|
|
2
|
-
name: string;
|
|
3
|
-
description: string;
|
|
4
|
-
}
|
|
5
|
-
type FlagTypes = string | boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Feature Flags are used to turn on/off features.
|
|
8
|
-
* These are primarily used before a feature has been fully released.
|
|
9
|
-
*/
|
|
10
|
-
export declare class FeatureFlags {
|
|
11
|
-
private flags;
|
|
12
|
-
private flagValues;
|
|
13
|
-
constructor(flags?: FeatureFlag[]);
|
|
14
|
-
register(flag: FeatureFlag): this;
|
|
15
|
-
register(name: string, description: string): this;
|
|
16
|
-
getFlag(flag: string): FlagTypes | undefined;
|
|
17
|
-
getFlagBool(flag: string): boolean | undefined;
|
|
18
|
-
setFlag(flag: string, value?: FlagTypes): this;
|
|
19
|
-
getFlagInfo(flag: string): FeatureFlag | undefined;
|
|
20
|
-
getFlags(): FeatureFlag[];
|
|
21
|
-
getFlagValues(): Map<string, FlagTypes>;
|
|
22
|
-
reset(): this;
|
|
23
|
-
}
|
|
24
|
-
export declare class UnknownFeatureFlagError extends Error {
|
|
25
|
-
readonly flag: string;
|
|
26
|
-
constructor(flag: string);
|
|
27
|
-
}
|
|
28
|
-
export declare function getSystemFeatureFlags(): FeatureFlags;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=FeatureFlags.d.ts.map
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSystemFeatureFlags = exports.UnknownFeatureFlagError = exports.FeatureFlags = void 0;
|
|
4
|
-
let systemFeatureFlags;
|
|
5
|
-
/**
|
|
6
|
-
* Feature Flags are used to turn on/off features.
|
|
7
|
-
* These are primarily used before a feature has been fully released.
|
|
8
|
-
*/
|
|
9
|
-
class FeatureFlags {
|
|
10
|
-
constructor(flags = []) {
|
|
11
|
-
this.flagValues = new Map();
|
|
12
|
-
this.flags = new Map(flags.map((f) => [f.name, f]));
|
|
13
|
-
}
|
|
14
|
-
register(flagOrName, description) {
|
|
15
|
-
if (typeof flagOrName === 'string') {
|
|
16
|
-
return this.register({ name: flagOrName, description: description || '' });
|
|
17
|
-
}
|
|
18
|
-
this.flags.set(flagOrName.name, flagOrName);
|
|
19
|
-
return this;
|
|
20
|
-
}
|
|
21
|
-
getFlag(flag) {
|
|
22
|
-
return this.flagValues.get(flag);
|
|
23
|
-
}
|
|
24
|
-
getFlagBool(flag) {
|
|
25
|
-
return toBool(this.getFlag(flag));
|
|
26
|
-
}
|
|
27
|
-
setFlag(flag, value = true) {
|
|
28
|
-
if (!this.flags.has(flag)) {
|
|
29
|
-
throw new UnknownFeatureFlagError(flag);
|
|
30
|
-
}
|
|
31
|
-
this.flagValues.set(flag, value);
|
|
32
|
-
return this;
|
|
33
|
-
}
|
|
34
|
-
getFlagInfo(flag) {
|
|
35
|
-
return this.flags.get(flag);
|
|
36
|
-
}
|
|
37
|
-
getFlags() {
|
|
38
|
-
return [...this.flags.values()];
|
|
39
|
-
}
|
|
40
|
-
getFlagValues() {
|
|
41
|
-
return new Map(this.flagValues);
|
|
42
|
-
}
|
|
43
|
-
reset() {
|
|
44
|
-
this.flagValues.clear();
|
|
45
|
-
return this;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.FeatureFlags = FeatureFlags;
|
|
49
|
-
class UnknownFeatureFlagError extends Error {
|
|
50
|
-
constructor(flag) {
|
|
51
|
-
super(`Unknown feature flag: ${flag}`);
|
|
52
|
-
this.flag = flag;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.UnknownFeatureFlagError = UnknownFeatureFlagError;
|
|
56
|
-
function getSystemFeatureFlags() {
|
|
57
|
-
return systemFeatureFlags || (systemFeatureFlags = new FeatureFlags());
|
|
58
|
-
}
|
|
59
|
-
exports.getSystemFeatureFlags = getSystemFeatureFlags;
|
|
60
|
-
const boolValues = {
|
|
61
|
-
0: false,
|
|
62
|
-
1: true,
|
|
63
|
-
f: false,
|
|
64
|
-
false: false,
|
|
65
|
-
n: false,
|
|
66
|
-
no: false,
|
|
67
|
-
t: true,
|
|
68
|
-
true: true,
|
|
69
|
-
y: true,
|
|
70
|
-
yes: true,
|
|
71
|
-
};
|
|
72
|
-
function toBool(value) {
|
|
73
|
-
if (typeof value !== 'string')
|
|
74
|
-
return value;
|
|
75
|
-
return boolValues[value.toLowerCase()];
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=FeatureFlags.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnknownFeatureFlagError = exports.getSystemFeatureFlags = exports.FeatureFlags = void 0;
|
|
4
|
-
var FeatureFlags_js_1 = require("./FeatureFlags.js");
|
|
5
|
-
Object.defineProperty(exports, "FeatureFlags", { enumerable: true, get: function () { return FeatureFlags_js_1.FeatureFlags; } });
|
|
6
|
-
Object.defineProperty(exports, "getSystemFeatureFlags", { enumerable: true, get: function () { return FeatureFlags_js_1.getSystemFeatureFlags; } });
|
|
7
|
-
Object.defineProperty(exports, "UnknownFeatureFlagError", { enumerable: true, get: function () { return FeatureFlags_js_1.UnknownFeatureFlagError; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The data for this file was constructed from:
|
|
3
|
-
* ```
|
|
4
|
-
* cd ~/projects/clones/vscode/extensions
|
|
5
|
-
* find . -type f -iname package.json -exec pcregrep -M '(?:"id":.*)|(?:"extensions":[^\]]+)' {} \; > ~/projects/cspell/src/languageIds.txt`
|
|
6
|
-
* ```
|
|
7
|
-
*/
|
|
8
|
-
export interface LanguageExtensionDefinition {
|
|
9
|
-
id: string;
|
|
10
|
-
/** List of extensions starting with '.' */
|
|
11
|
-
extensions: string[];
|
|
12
|
-
/** Filenames that do not have an extension or have a different type than their implied extension */
|
|
13
|
-
filenames?: string[];
|
|
14
|
-
/** Indicates that it is a Text or Binary file type. */
|
|
15
|
-
format?: 'Text' | 'Binary';
|
|
16
|
-
/** Optional Description */
|
|
17
|
-
description?: string;
|
|
18
|
-
}
|
|
19
|
-
export type LanguageDefinition = LanguageExtensionDefinition;
|
|
20
|
-
export type LanguageDefinitions = LanguageDefinition[];
|
|
21
|
-
export type ExtensionToLanguageIdMapSet = Map<string, Set<string>>;
|
|
22
|
-
export type ExtensionToLanguageIdMap = Map<string, string[]>;
|
|
23
|
-
export declare const languageExtensionDefinitions: LanguageDefinitions;
|
|
24
|
-
export type LanguageId = string;
|
|
25
|
-
export declare const binaryLanguages: Set<string>;
|
|
26
|
-
export declare const generatedFiles: Set<string>;
|
|
27
|
-
export declare const languageIds: LanguageId[];
|
|
28
|
-
export declare function isBinaryExt(ext: string): boolean;
|
|
29
|
-
export declare function isBinaryFile(basename: string): boolean;
|
|
30
|
-
export declare function isBinary(languageId: LanguageId | LanguageId[] | Iterable<LanguageId>): boolean;
|
|
31
|
-
export declare function isGeneratedExt(ext: string): boolean;
|
|
32
|
-
export declare function isGeneratedFile(basename: string): boolean;
|
|
33
|
-
export declare function isGenerated(languageId: LanguageId | LanguageId[] | Iterable<LanguageId>): boolean;
|
|
34
|
-
export declare function buildLanguageExtensionMapSet(defs: LanguageDefinitions): ExtensionToLanguageIdMapSet;
|
|
35
|
-
export declare function getLanguagesForExt(ext: string): string[];
|
|
36
|
-
export declare function getLanguagesForBasename(basename: string): string[];
|
|
37
|
-
//# sourceMappingURL=LanguageIds.d.ts.map
|