We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2fab65 commit 73e9715Copy full SHA for 73e9715
src/services/completions.ts
@@ -338,7 +338,12 @@ namespace ts.Completions {
338
): CompletionEntry | undefined {
339
let insertText: string | undefined;
340
let replacementSpan: TextSpan | undefined;
341
+
342
const insertQuestionDot = origin && originIsNullableMember(origin);
343
+ if (insertQuestionDot && preferences.includeAutomaticOptionalChainCompletions === false) {
344
+ return undefined;
345
+ }
346
347
const useBraces = origin && originIsSymbolMember(origin) || needsConvertPropertyAccess;
348
if (origin && originIsThisType(origin)) {
349
insertText = needsConvertPropertyAccess
0 commit comments