🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
15
node_modules/@vscode/emmet-helper/lib/cjs/configCompat.d.ts
generated
vendored
Normal file
15
node_modules/@vscode/emmet-helper/lib/cjs/configCompat.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
export interface SnippetsMap {
|
||||
[name: string]: string;
|
||||
}
|
||||
/**
|
||||
* Parses raw snippets definitions with possibly multiple keys into a plan
|
||||
* snippet map
|
||||
*/
|
||||
export declare function parseSnippets(snippets: SnippetsMap): SnippetsMap;
|
||||
/**
|
||||
* List of all known syntaxes
|
||||
*/
|
||||
export declare const syntaxes: {
|
||||
markup: string[];
|
||||
stylesheet: string[];
|
||||
};
|
48
node_modules/@vscode/emmet-helper/lib/cjs/configCompat.js
generated
vendored
Normal file
48
node_modules/@vscode/emmet-helper/lib/cjs/configCompat.js
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
"use strict";
|
||||
/*
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Sergey Chikuyonok <serge.che@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.syntaxes = exports.parseSnippets = void 0;
|
||||
/**
|
||||
* Parses raw snippets definitions with possibly multiple keys into a plan
|
||||
* snippet map
|
||||
*/
|
||||
function parseSnippets(snippets) {
|
||||
const result = {};
|
||||
Object.keys(snippets).forEach(k => {
|
||||
for (const name of k.split('|')) {
|
||||
result[name] = snippets[k];
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
exports.parseSnippets = parseSnippets;
|
||||
/**
|
||||
* List of all known syntaxes
|
||||
*/
|
||||
exports.syntaxes = {
|
||||
markup: ['html', 'xml', 'xsl', 'jsx', 'js', 'pug', 'slim', 'haml'],
|
||||
stylesheet: ['css', 'sass', 'scss', 'less', 'sss', 'stylus']
|
||||
};
|
||||
//# sourceMappingURL=configCompat.js.map
|
1
node_modules/@vscode/emmet-helper/lib/cjs/configCompat.js.map
generated
vendored
Normal file
1
node_modules/@vscode/emmet-helper/lib/cjs/configCompat.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"configCompat.js","sourceRoot":"","sources":["../../src/configCompat.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;AAMF;;;GAGG;AACH,SAAgB,aAAa,CAAC,QAAqB;IAC/C,MAAM,MAAM,GAAgB,EAAE,CAAC;IAC/B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAC9B,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC9B;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC;AATD,sCASC;AAED;;GAEG;AACU,QAAA,QAAQ,GAAG;IACpB,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IAClE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC;CAC/D,CAAC"}
|
6
node_modules/@vscode/emmet-helper/lib/cjs/data.d.ts
generated
vendored
Normal file
6
node_modules/@vscode/emmet-helper/lib/cjs/data.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
export declare const cssData: {
|
||||
properties: string[];
|
||||
};
|
||||
export declare const htmlData: {
|
||||
tags: string[];
|
||||
};
|
15
node_modules/@vscode/emmet-helper/lib/cjs/data.js
generated
vendored
Normal file
15
node_modules/@vscode/emmet-helper/lib/cjs/data.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@vscode/emmet-helper/lib/cjs/data.js.map
generated
vendored
Normal file
1
node_modules/@vscode/emmet-helper/lib/cjs/data.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
103
node_modules/@vscode/emmet-helper/lib/cjs/emmetHelper.d.ts
generated
vendored
Normal file
103
node_modules/@vscode/emmet-helper/lib/cjs/emmetHelper.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,103 @@
|
|||
import { TextDocument } from 'vscode-languageserver-textdocument';
|
||||
import { CompletionList, Position, Range } from 'vscode-languageserver-types';
|
||||
import { URI } from 'vscode-uri';
|
||||
import { FileService, FileStat, FileType } from './fileService';
|
||||
import { ExtractOptions, MarkupAbbreviation, Options, StylesheetAbbreviation, SyntaxType, UserConfig } from 'emmet';
|
||||
import { SnippetsMap } from './configCompat';
|
||||
export { FileService, FileType, FileStat };
|
||||
/**
|
||||
* Emmet configuration as derived from the Emmet related VS Code settings
|
||||
*/
|
||||
export interface VSCodeEmmetConfig {
|
||||
showExpandedAbbreviation?: string;
|
||||
showAbbreviationSuggestions?: boolean;
|
||||
syntaxProfiles?: object;
|
||||
variables?: object;
|
||||
preferences?: object;
|
||||
excludeLanguages?: string[];
|
||||
showSuggestionsAsSnippets?: boolean;
|
||||
}
|
||||
/**
|
||||
* Returns all applicable emmet expansions for abbreviation at given position in a CompletionList
|
||||
* @param document TextDocument in which completions are requested
|
||||
* @param position Position in the document at which completions are requested
|
||||
* @param syntax Emmet supported language
|
||||
* @param emmetConfig Emmet Configurations as derived from VS Code
|
||||
*/
|
||||
export declare function doComplete(document: TextDocument, position: Position, syntax: string, emmetConfig: VSCodeEmmetConfig): CompletionList | undefined;
|
||||
export declare const emmetSnippetField: (index: number, placeholder: string) => string;
|
||||
/** Returns whether or not syntax is a supported stylesheet syntax, like CSS */
|
||||
export declare function isStyleSheet(syntax: string): boolean;
|
||||
/** Returns the syntax type, either markup (e.g. for HTML) or stylesheet (e.g. for CSS) */
|
||||
export declare function getSyntaxType(syntax: string): SyntaxType;
|
||||
/** Returns the default syntax (html or css) to use for the snippets registry */
|
||||
export declare function getDefaultSyntax(syntax: string): string;
|
||||
/** Returns the default snippets that Emmet suggests */
|
||||
export declare function getDefaultSnippets(syntax: string): SnippetsMap;
|
||||
/**
|
||||
* Extracts abbreviation from the given position in the given document
|
||||
* @param document The TextDocument from which abbreviation needs to be extracted
|
||||
* @param position The Position in the given document from where abbreviation needs to be extracted
|
||||
* @param options The options to pass to the @emmetio/extract-abbreviation module
|
||||
*/
|
||||
export declare function extractAbbreviation(document: TextDocument, position: Position, options?: Partial<ExtractOptions>): {
|
||||
abbreviation: string;
|
||||
abbreviationRange: Range;
|
||||
filter: string | undefined;
|
||||
} | undefined;
|
||||
/**
|
||||
* Extracts abbreviation from the given text
|
||||
* @param text Text from which abbreviation needs to be extracted
|
||||
* @param syntax Syntax used to extract the abbreviation from the given text
|
||||
*/
|
||||
export declare function extractAbbreviationFromText(text: string, syntax: string): {
|
||||
abbreviation: string;
|
||||
filter: string | undefined;
|
||||
} | undefined;
|
||||
/**
|
||||
* Returns a boolean denoting validity of given abbreviation in the context of given syntax
|
||||
* Not needed once https://github.com/emmetio/atom-plugin/issues/22 is fixed
|
||||
* @param syntax string
|
||||
* @param abbreviation string
|
||||
*/
|
||||
export declare function isAbbreviationValid(syntax: string, abbreviation: string): boolean;
|
||||
declare type ExpandOptionsConfig = {
|
||||
type: SyntaxType;
|
||||
options: Partial<Options>;
|
||||
variables: SnippetsMap;
|
||||
snippets: SnippetsMap;
|
||||
syntax: string;
|
||||
text: string | string[] | undefined;
|
||||
maxRepeat: number;
|
||||
};
|
||||
/**
|
||||
* Returns options to be used by emmet
|
||||
*/
|
||||
export declare function getExpandOptions(syntax: string, emmetConfig?: VSCodeEmmetConfig, filter?: string): ExpandOptionsConfig;
|
||||
/**
|
||||
* Parses given abbreviation using given options and returns a tree
|
||||
* @param abbreviation string
|
||||
* @param options options used by the emmet module to parse given abbreviation
|
||||
*/
|
||||
export declare function parseAbbreviation(abbreviation: string, options: UserConfig): StylesheetAbbreviation | MarkupAbbreviation;
|
||||
/**
|
||||
* Expands given abbreviation using given options
|
||||
* @param abbreviation string or parsed abbreviation
|
||||
* @param config options used by the @emmetio/expand-abbreviation module to expand given abbreviation
|
||||
*/
|
||||
export declare function expandAbbreviation(abbreviation: string | MarkupAbbreviation | StylesheetAbbreviation, config: UserConfig): string;
|
||||
/**
|
||||
* Updates customizations from snippets.json and syntaxProfiles.json files in the directory configured in emmet.extensionsPath setting
|
||||
* @param emmetExtensionsPathSetting setting passed from emmet.extensionsPath. Supports multiple paths
|
||||
*/
|
||||
export declare function updateExtensionsPath(emmetExtensionsPathSetting: string[], fs: FileService, workspaceFolderPaths?: URI[], homeDir?: URI): Promise<void>;
|
||||
/**
|
||||
* Get the corresponding emmet mode for given vscode language mode
|
||||
* Eg: jsx for typescriptreact/javascriptreact or pug for jade
|
||||
* If the language is not supported by emmet or has been exlcuded via `exlcudeLanguages` setting,
|
||||
* then nothing is returned
|
||||
*
|
||||
* @param language
|
||||
* @param exlcudedLanguages Array of language ids that user has chosen to exlcude for emmet
|
||||
*/
|
||||
export declare function getEmmetMode(language: string, excludedLanguages?: string[]): string | undefined;
|
1075
node_modules/@vscode/emmet-helper/lib/cjs/emmetHelper.js
generated
vendored
Normal file
1075
node_modules/@vscode/emmet-helper/lib/cjs/emmetHelper.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
node_modules/@vscode/emmet-helper/lib/cjs/emmetHelper.js.map
generated
vendored
Normal file
1
node_modules/@vscode/emmet-helper/lib/cjs/emmetHelper.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
46
node_modules/@vscode/emmet-helper/lib/cjs/fileService.d.ts
generated
vendored
Normal file
46
node_modules/@vscode/emmet-helper/lib/cjs/fileService.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
import { URI as Uri } from 'vscode-uri';
|
||||
export declare enum FileType {
|
||||
/**
|
||||
* The file type is unknown.
|
||||
*/
|
||||
Unknown = 0,
|
||||
/**
|
||||
* A regular file.
|
||||
*/
|
||||
File = 1,
|
||||
/**
|
||||
* A directory.
|
||||
*/
|
||||
Directory = 2,
|
||||
/**
|
||||
* A symbolic link to a file.
|
||||
*/
|
||||
SymbolicLink = 64
|
||||
}
|
||||
export interface FileStat {
|
||||
/**
|
||||
* The type of the file, e.g. is a regular file, a directory, or symbolic link
|
||||
* to a file.
|
||||
*/
|
||||
type: FileType;
|
||||
/**
|
||||
* The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
||||
*/
|
||||
ctime: number;
|
||||
/**
|
||||
* The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
||||
*/
|
||||
mtime: number;
|
||||
/**
|
||||
* The size in bytes.
|
||||
*/
|
||||
size: number;
|
||||
}
|
||||
export interface FileService {
|
||||
readFile(uri: Uri): Thenable<Uint8Array>;
|
||||
stat(uri: Uri): Thenable<FileStat>;
|
||||
}
|
||||
export declare function isAbsolutePath(path: string): boolean;
|
||||
export declare function resolvePath(uri: Uri, path: string): Uri;
|
||||
export declare function normalizePath(parts: string[]): string;
|
||||
export declare function joinPath(uri: Uri, ...paths: string[]): Uri;
|
72
node_modules/@vscode/emmet-helper/lib/cjs/fileService.js
generated
vendored
Normal file
72
node_modules/@vscode/emmet-helper/lib/cjs/fileService.js
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.joinPath = exports.normalizePath = exports.resolvePath = exports.isAbsolutePath = exports.FileType = void 0;
|
||||
var FileType;
|
||||
(function (FileType) {
|
||||
/**
|
||||
* The file type is unknown.
|
||||
*/
|
||||
FileType[FileType["Unknown"] = 0] = "Unknown";
|
||||
/**
|
||||
* A regular file.
|
||||
*/
|
||||
FileType[FileType["File"] = 1] = "File";
|
||||
/**
|
||||
* A directory.
|
||||
*/
|
||||
FileType[FileType["Directory"] = 2] = "Directory";
|
||||
/**
|
||||
* A symbolic link to a file.
|
||||
*/
|
||||
FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
|
||||
})(FileType = exports.FileType || (exports.FileType = {}));
|
||||
// following https://nodejs.org/api/path.html#path_path_isabsolute_path
|
||||
const PathMatchRegex = new RegExp('^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))');
|
||||
const Dot = '.'.charCodeAt(0);
|
||||
function isAbsolutePath(path) {
|
||||
return PathMatchRegex.test(path);
|
||||
}
|
||||
exports.isAbsolutePath = isAbsolutePath;
|
||||
function resolvePath(uri, path) {
|
||||
if (isAbsolutePath(path)) {
|
||||
return uri.with({ path: normalizePath(path.split('/')) });
|
||||
}
|
||||
return joinPath(uri, path);
|
||||
}
|
||||
exports.resolvePath = resolvePath;
|
||||
function normalizePath(parts) {
|
||||
const newParts = [];
|
||||
for (const part of parts) {
|
||||
if (part.length === 0 || part.length === 1 && part.charCodeAt(0) === Dot) {
|
||||
// ignore
|
||||
}
|
||||
else if (part.length === 2 && part.charCodeAt(0) === Dot && part.charCodeAt(1) === Dot) {
|
||||
newParts.pop();
|
||||
}
|
||||
else {
|
||||
newParts.push(part);
|
||||
}
|
||||
}
|
||||
if (parts.length > 1 && parts[parts.length - 1].length === 0) {
|
||||
newParts.push('');
|
||||
}
|
||||
let res = newParts.join('/');
|
||||
if (parts[0].length === 0) {
|
||||
res = '/' + res;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
exports.normalizePath = normalizePath;
|
||||
function joinPath(uri, ...paths) {
|
||||
const parts = uri.path.split('/');
|
||||
for (const path of paths) {
|
||||
parts.push(...path.split('/'));
|
||||
}
|
||||
return uri.with({ path: normalizePath(parts) });
|
||||
}
|
||||
exports.joinPath = joinPath;
|
||||
//# sourceMappingURL=fileService.js.map
|
1
node_modules/@vscode/emmet-helper/lib/cjs/fileService.js.map
generated
vendored
Normal file
1
node_modules/@vscode/emmet-helper/lib/cjs/fileService.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"fileService.js","sourceRoot":"","sources":["../../src/fileService.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAIhG,IAAY,QAiBX;AAjBD,WAAY,QAAQ;IACnB;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,uCAAQ,CAAA;IACR;;OAEG;IACH,iDAAa,CAAA;IACb;;OAEG;IACH,wDAAiB,CAAA;AAClB,CAAC,EAjBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAiBnB;AA0BD,uEAAuE;AACvE,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,oCAAoC,CAAC,CAAC;AACx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