Uh oh!
There was an error while loading. Please reload this page.
Retry string completions from the inferred type by default - #53481
Conversation
| return { kind: StringLiteralCompletionKind.Types, types: literals, isNewIdentifier: false }; | ||
| default: | ||
| return fromContextualType(); | ||
| return fromContextualType() || fromContextualType(ContextFlags.None); |
There was a problem hiding this comment.
a more conservative approach would be to do this:
caseSyntaxKind.ArrayLiteralExpression:
returnfromContextualType()||fromContextualType(ContextFlags.None);
default:
returnfromContextualType();i went for a broad fix~ but perhaps some node types should not be subjects for those retries?
Jake Bailey (jakebailey)
commented
Mar 27, 2023
Is this something we need to be backporting? Per #53475 (comment) this is a 5.0 regression, so it's probably good to get in before we send it out? |
TypeScript Bot (@typescript-bot) user test tsserver |
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the perf test suite on this PR at ea75390. You can monitor the build here. Update: The results are in! |
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the diff-based user code test suite (tsserver) on this PR at ea75390. You can monitor the build here. Update: The results are in! |
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the diff-based top-repos suite (tsserver) on this PR at ea75390. You can monitor the build here. Update: The results are in! |
TypeScript Bot (typescript-bot)
commented
Mar 27, 2023
Daniel Rosenwasser (@DanielRosenwasser) Here are the results of running the user test suite comparing Everything looks good! |
TypeScript Bot (typescript-bot)
commented
Mar 27, 2023
Daniel Rosenwasser (@DanielRosenwasser) Here they are:CompilerComparison Report - main..53481
System
Hosts
Scenarios
TSServerComparison Report - main..53481
System
Hosts
Scenarios
StartupComparison Report - main..53481
System
Hosts
Scenarios
Developer Information: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeScript Bot (typescript-bot)
commented
Mar 28, 2023
Daniel Rosenwasser (@DanielRosenwasser) Here are the results of running the top-repos suite comparing Everything looks good! |
TypeScript Bot (@typescript-bot) cherry-pick this to release-5.0 |
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the task to cherry-pick this into |
I'll tentatively cherry-pick. |
TypeScript Bot (typescript-bot)
commented
Mar 28, 2023
Hey Daniel Rosenwasser (@DanielRosenwasser), I've opened #53551 for you. |
Component commits: ea75390 Retry string completions from the inferred type by default
Mateusz Burzyński (Andarist)
commented
Mar 28, 2023
Thanks guys! |
…e-5.0 (#53551) Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
…to release-5.0 (microsoft#53551) Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
fixes#53475
I'm using the same strategy to retry those requests as the one used in https://github.com/microsoft/TypeScript/pull/52875/files
cc Andrew Branch (@andrewbranch)