import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters"; import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent"; import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables"; export interface CompletionItemLabel { label: string; detail?: string; description?: string; } export interface ISimpleCompletion { /** * The completion's label which appears on the left beside the icon. */ label: string | CompletionItemLabel; /** * The ID of the provider the completion item came from */ provider: string; /** * The completion's icon to show on the left of the suggest widget. */ icon?: ThemeIcon; /** * The completion item's kind that will be included in the aria label. */ kindLabel?: string; /** * The completion's detail which appears on the right of the list. */ detail?: string; /** * A human-readable string that represents a doc-comment. */ documentation?: string | IMarkdownString; /** * Replacement range (inclusive start, exclusive end) of text in the line to be replaced when * this completion is applied. */ replacementRange: readonly [ number, number ] | undefined; } export declare class SimpleCompletionItem { readonly completion: ISimpleCompletion; /** * The lowercase label, normalized to `\` path separators on Windows. */ labelLow: string; textLabel: string; score: FuzzyScore; idx?: number; word?: string; isInvalid: boolean; constructor(completion: ISimpleCompletion); }