Revamping to matrix style

This commit is contained in:
2026-02-16 16:37:35 -05:00
parent 71852ec99a
commit 9d0e3938e4
14958 changed files with 2089572 additions and 114 deletions

39
node_modules/@astrojs/language-server/dist/check.d.ts generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import * as kit from '@volar/kit';
import { Diagnostic, DiagnosticSeverity } from '@volar/language-server';
export { Diagnostic, DiagnosticSeverity };
export interface CheckResult {
status: 'completed' | 'cancelled' | undefined;
fileChecked: number;
errors: number;
warnings: number;
hints: number;
fileResult: {
errors: kit.Diagnostic[];
fileUrl: URL;
fileContent: string;
text: string;
}[];
}
export declare class AstroCheck {
private readonly workspacePath;
private readonly typescriptPath;
private readonly tsconfigPath;
private ts;
linter: ReturnType<(typeof kit)['createTypeScriptChecker']>;
constructor(workspacePath: string, typescriptPath: string | undefined, tsconfigPath: string | undefined);
/**
* Lint a list of files or the entire project and optionally log the errors found
* @param fileNames List of files to lint, if undefined, all files included in the project will be linted
* @param logErrors Whether to log errors by itself. This is disabled by default.
* @return {CheckResult} The result of the lint, including a list of errors, the file's content and its file path.
*/
lint({ fileNames, cancel, logErrors, }: {
fileNames?: string[] | undefined;
cancel?: () => boolean;
logErrors?: {
level: 'error' | 'warning' | 'hint';
} | undefined;
}): Promise<CheckResult>;
private initialize;
private getTsconfig;
}