Fix ContextFlags compile error (#62855)

This commit is contained in:
Jake Bailey 2025-12-08 11:36:00 -08:00 committed by GitHub
parent 69a0879743
commit 3544dd7d4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -434,7 +434,7 @@ function getStringLiteralCompletionEntries(sourceFile: SourceFile, node: StringL
const uniques = new Set<string>();
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);
}