mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-10 00:20:22 -06:00
Fix ContextFlags compile error (#62855)
This commit is contained in:
parent
69a0879743
commit
3544dd7d4d
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user