DocState
tcmts.cli.lsp.DocState · #jvjxbj4w · type
import type { LintIssue } from "#codebase/tcmts/cli/lint";
import type { Row } from "#codebase/tcmts/cli/lsp";
import type { Analysis } from "#codebase/tcmts/core/analyze";
export interface DocState {
uri: string;
file: string;
text: string;
version: number;
/** the analysis of `text`, or why there isn't one */
analyzed?: {
text: string;
analysis?: Analysis;
rows: Row[];
problems: { message: string; severity: 1 | 2 }[];
typeErrors: number;
/** oxlint's findings, offsets in `text` */
lint: LintIssue[];
watches: Map<number, { ok: boolean; value: string; cached: boolean }>;
tests: Map<string, { ok: boolean; message: string; cached: boolean }>;
};
}
uses
used by