From 3544dd7d4d667bde48dfbff714df7fd17bb88161 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 8 Dec 2025 11:36:00 -0800 Subject: [PATCH] Fix ContextFlags compile error (#62855) --- .github/workflows/ci.yml | 6 ++++++ src/services/stringCompletions.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 644562b0832..02104da2fd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -316,17 +316,23 @@ jobs: working-directory: ./pr - run: npm ci + id: base-npm-ci + continue-on-error: true working-directory: ./base - run: npx hereby lkg working-directory: ./pr - run: npx hereby lkg + id: base-lkg + continue-on-error: true + if: ${{ steps.base-npm-ci.outcome == 'success' }} working-directory: ./base - run: | echo "See $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID for more info." node ./pr/scripts/checkPackageSize.mjs ./base ./pr >> $GITHUB_STEP_SUMMARY + if: ${{ steps.base-lkg.outcome == 'success' }} misc: runs-on: ubuntu-latest diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index d8267ca16e5..42c72bd4ca9 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -434,7 +434,7 @@ function getStringLiteralCompletionEntries(sourceFile: SourceFile, node: StringL const uniques = new Set(); const stringLiteralTypes = concatenate( getStringLiteralTypes(typeChecker.getContextualType(node, ContextFlags.None), uniques), - getStringLiteralTypes(typeChecker.getContextualType(node, ContextFlags.Completions), uniques), + getStringLiteralTypes(typeChecker.getContextualType(node, ContextFlags.IgnoreNodeInferences), uniques), ); return toStringLiteralCompletionsFromTypes(stringLiteralTypes); }