Skip to content

Commit 15445e1

Browse files
Add user preference to the protocol.
1 parent 73e9715 commit 15445e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/protocol.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,6 +3007,12 @@ namespace ts.server.protocol {
30073007
* For those entries, The `insertText` and `replacementSpan` properties will be set to change from `.x` property access to `["x"]`.
30083008
*/
30093009
readonly includeCompletionsWithInsertText?: boolean;
3010+
/**
3011+
* Unless this option is disabled, or `includeCompletionsWithInsertText` is not enabled,
3012+
* member completion lists triggered with `.` will include entries on potentially-null and potentially-undefined
3013+
* values, with insertion text to replace preceding `.` tokens with `?.`.
3014+
*/
3015+
readonly includeAutomaticOptionalChainCompletions?: boolean;
30103016
readonly importModuleSpecifierPreference?: "relative" | "non-relative";
30113017
readonly allowTextChangesInNewFiles?: boolean;
30123018
readonly lazyConfiguredProjectsFromExternalProject?: boolean;

0 commit comments

Comments
 (0)