1 | import * as ac from "atom/autocomplete-plus";
|
2 | import { CompletionItem } from "../languageclient";
|
3 | /** Adds LSP specific properties to the Atom SuggestionBase type */
|
4 | export interface SuggestionBase extends ac.SuggestionBase {
|
5 | /**
|
6 | * A string that is used when filtering and sorting a set of completion items with a prefix present. When `falsy` the
|
7 | * [displayText](#ac.SuggestionBase.displayText) is used. When no prefix, the `sortText` property is used.
|
8 | */
|
9 | filterText?: string;
|
10 | /**
|
11 | * String representing the replacement prefix from the suggestion's custom start point to the original buffer position
|
12 | * the suggestion was gathered from.
|
13 | */
|
14 | customReplacmentPrefix?: string;
|
15 | /** Original completion item, if available */
|
16 | completionItem?: CompletionItem;
|
17 | }
|
18 | export declare type TextSuggestion = SuggestionBase & ac.TextSuggestion;
|
19 | export declare type SnippetSuggestion = SuggestionBase & ac.SnippetSuggestion;
|
20 | export declare type Suggestion = TextSuggestion | SnippetSuggestion;
|