mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Add property for unchecked completions
This commit is contained in:
parent
8ed92dcecd
commit
1bc387938a
@ -2086,6 +2086,11 @@ namespace ts.server.protocol {
|
||||
* Then either that enum/class or a namespace containing it will be the recommended symbol.
|
||||
*/
|
||||
isRecommended?: true;
|
||||
/**
|
||||
* If true, this completion was generated from traversing the name table of an unchecked JS file,
|
||||
* and therefore may not be accurate.
|
||||
*/
|
||||
isUncheckedCompletion?: true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -310,7 +310,8 @@ namespace ts.Completions {
|
||||
name: realName,
|
||||
kind: ScriptElementKind.warning,
|
||||
kindModifiers: "",
|
||||
sortText: SortText.JavascriptIdentifiers
|
||||
sortText: SortText.JavascriptIdentifiers,
|
||||
isUncheckedCompletion: true
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -988,6 +988,7 @@ namespace ts {
|
||||
hasAction?: true;
|
||||
source?: string;
|
||||
isRecommended?: true;
|
||||
isUncheckedCompletion?: true;
|
||||
}
|
||||
|
||||
export interface CompletionEntryDetails {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user