ScratchCompletion

tcmts.studio.ScratchCompletion · #xtwpki5o · type

A completion in a scratch file: what it writes, its kind (as the editor's icons have them), what it is, how it ranks, and, for a name from the codebase the file doesn't import yet, the change to its imports that brings it in.

export interface ScratchCompletion {
  label: string;
  type?: string;
  detail?: string;
  boost?: number;
  apply?: string;
  imports?: { from: number; to: number; insert: string };
}

used by