feat: init
This commit is contained in:
53
node_modules/vite-plugin-checker/dist/checkers/vls/diagnostics.d.ts
generated
vendored
Normal file
53
node_modules/vite-plugin-checker/dist/checkers/vls/diagnostics.d.ts
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import * as vscode_languageserver from 'vscode-languageserver';
|
||||
import { Duplex } from 'node:stream';
|
||||
import { VLS } from 'vls';
|
||||
import { DiagnosticSeverity, Logger } from 'vscode-languageserver/node.js';
|
||||
import { URI } from 'vscode-uri';
|
||||
import { NormalizedDiagnostic } from '../../logger.js';
|
||||
import { DeepPartial } from '../../types.js';
|
||||
import { VlsOptions } from './initParams.js';
|
||||
import '@babel/code-frame';
|
||||
import 'eslint';
|
||||
import 'stylelint';
|
||||
import 'typescript';
|
||||
import 'vscode-languageclient/node';
|
||||
import 'node:worker_threads';
|
||||
import 'vite';
|
||||
import 'vscode-languageserver/node';
|
||||
|
||||
type LogLevel = (typeof logLevels)[number];
|
||||
declare const logLevels: readonly ["ERROR", "WARN", "INFO", "HINT"];
|
||||
declare const logLevel2Severity: {
|
||||
ERROR: 1;
|
||||
WARN: 2;
|
||||
INFO: 3;
|
||||
HINT: 4;
|
||||
};
|
||||
interface DiagnosticOptions {
|
||||
watch: boolean;
|
||||
verbose: boolean;
|
||||
config: DeepPartial<VlsOptions> | null;
|
||||
onDispatchDiagnostics?: (normalized: NormalizedDiagnostic[]) => void;
|
||||
onDispatchDiagnosticsSummary?: (errorCount: number, warningCount: number) => void;
|
||||
}
|
||||
declare function diagnostics(workspace: string | null, logLevel: LogLevel, options?: DiagnosticOptions): Promise<void>;
|
||||
declare class NullLogger implements Logger {
|
||||
error(_message: string): void;
|
||||
warn(_message: string): void;
|
||||
info(_message: string): void;
|
||||
log(_message: string): void;
|
||||
}
|
||||
declare class TestStream extends Duplex {
|
||||
_write(chunk: string, _encoding: string, done: () => void): void;
|
||||
_read(_size: number): void;
|
||||
}
|
||||
declare function prepareClientConnection(workspaceUri: URI, severity: DiagnosticSeverity, options: DiagnosticOptions): Promise<{
|
||||
clientConnection: vscode_languageserver.ProtocolConnection;
|
||||
serverConnection: vscode_languageserver.Connection;
|
||||
vls: VLS;
|
||||
up: TestStream;
|
||||
down: TestStream;
|
||||
logger: NullLogger;
|
||||
}>;
|
||||
|
||||
export { type DiagnosticOptions, TestStream, diagnostics, logLevel2Severity, logLevels, prepareClientConnection };
|
||||
Reference in New Issue
Block a user