File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2086,6 +2086,11 @@ namespace ts.server.protocol {
20862086 * Then either that enum/class or a namespace containing it will be the recommended symbol.
20872087 */
20882088 isRecommended ?: true ;
2089+ /**
2090+ * If true, this completion was generated from traversing the name table of an unchecked JS file,
2091+ * and therefore may not be accurate.
2092+ */
2093+ isUncheckedCompletion ?: true ;
20892094 }
20902095
20912096 /**
Original file line number Diff line number Diff line change @@ -310,7 +310,8 @@ namespace ts.Completions {
310310 name : realName ,
311311 kind : ScriptElementKind . warning ,
312312 kindModifiers : "" ,
313- sortText : SortText . JavascriptIdentifiers
313+ sortText : SortText . JavascriptIdentifiers ,
314+ isUncheckedCompletion : true
314315 } ) ;
315316 }
316317 } ) ;
Original file line number Diff line number Diff line change @@ -988,6 +988,7 @@ namespace ts {
988988 hasAction ?: true ;
989989 source ?: string ;
990990 isRecommended ?: true ;
991+ isUncheckedCompletion ?: true ;
991992 }
992993
993994 export interface CompletionEntryDetails {
You can’t perform that action at this time.
0 commit comments