Revamping to matrix style
This commit is contained in:
39
node_modules/@astrojs/language-server/dist/check.d.ts
generated
vendored
Normal file
39
node_modules/@astrojs/language-server/dist/check.d.ts
generated
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user