Skip to content

Commit df7e8ca

Browse files
committed
add label details support flag
1 parent ec0561b commit df7e8ca

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8757,6 +8757,7 @@ namespace ts {
87578757
readonly includeCompletionsWithInsertText?: boolean;
87588758
readonly includeCompletionsWithClassMemberSnippets?: boolean;
87598759
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
8760+
readonly includeCompletionsWithLabelDetails?: boolean;
87608761
readonly allowIncompleteCompletions?: boolean;
87618762
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
87628763
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */

src/server/protocol.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,10 @@ namespace ts.server.protocol {
34323432
* in addition to `const objectLiteral: T = { foo }`.
34333433
*/
34343434
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
3435+
/**
3436+
* Indicates whether {@link CompletionEntry.labelDetails completion entry label details} are supported.
3437+
*/
3438+
readonly includeCompletionsWithLabelDetails?: boolean;
34353439
readonly allowIncompleteCompletions?: boolean;
34363440
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
34373441
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4100,6 +4100,7 @@ declare namespace ts {
41004100
readonly includeCompletionsWithInsertText?: boolean;
41014101
readonly includeCompletionsWithClassMemberSnippets?: boolean;
41024102
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
4103+
readonly includeCompletionsWithLabelDetails?: boolean;
41034104
readonly allowIncompleteCompletions?: boolean;
41044105
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
41054106
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
@@ -9659,6 +9660,10 @@ declare namespace ts.server.protocol {
96599660
* in addition to `const objectLiteral: T = { foo }`.
96609661
*/
96619662
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
9663+
/**
9664+
* Indicates whether {@link CompletionEntry.labelDetails completion entry label details} are supported.
9665+
*/
9666+
readonly includeCompletionsWithLabelDetails?: boolean;
96629667
readonly allowIncompleteCompletions?: boolean;
96639668
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
96649669
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4100,6 +4100,7 @@ declare namespace ts {
41004100
readonly includeCompletionsWithInsertText?: boolean;
41014101
readonly includeCompletionsWithClassMemberSnippets?: boolean;
41024102
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
4103+
readonly includeCompletionsWithLabelDetails?: boolean;
41034104
readonly allowIncompleteCompletions?: boolean;
41044105
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
41054106
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */

tests/cases/fourslash/fourslash.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ declare namespace FourSlashInterface {
648648
readonly includeCompletionsWithInsertText?: boolean;
649649
readonly includeCompletionsWithClassMemberSnippets?: boolean;
650650
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
651+
readonly includeCompletionsWithLabelDetails?: boolean;
651652
readonly allowIncompleteCompletions?: boolean;
652653
/** @deprecated use `includeCompletionsWithInsertText` */
653654
readonly includeInsertTextCompletions?: boolean;

0 commit comments

Comments
 (0)