From 15445e156a8f26d7fa5db4fe90e510c66011d689 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 17 Oct 2019 17:17:19 -0700 Subject: [PATCH] Add user preference to the protocol. --- src/server/protocol.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/protocol.ts b/src/server/protocol.ts index c86876f1caa..fb0969fbefd 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -3007,6 +3007,12 @@ namespace ts.server.protocol { * For those entries, The `insertText` and `replacementSpan` properties will be set to change from `.x` property access to `["x"]`. */ readonly includeCompletionsWithInsertText?: boolean; + /** + * Unless this option is disabled, or `includeCompletionsWithInsertText` is not enabled, + * member completion lists triggered with `.` will include entries on potentially-null and potentially-undefined + * values, with insertion text to replace preceding `.` tokens with `?.`. + */ + readonly includeAutomaticOptionalChainCompletions?: boolean; readonly importModuleSpecifierPreference?: "relative" | "non-relative"; readonly allowTextChangesInNewFiles?: boolean; readonly lazyConfiguredProjectsFromExternalProject?: boolean;