No IntelliSense for generic literal types #34771
Copy link
Copy link
Closed
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
TypeScript Version: typescript@3.8.0-dev.20191026
Search Terms:
- suggest / completions
- intellisense
- generic
Repo
For the typescript:
function test<T extends "x" | "y">() {}
test<''>- Trigger intellisense inside the quotes in
test<''>
Expected behavior:
Suggestions for x and y returned.
Actual behavior:
No suggestions returned
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Activity
Chnapy commentedon Dec 30, 2019
Note that this issue also occurs with class heritage.
But it works fine with variables.
feat: add SearchParams types to Expo Router (#22380)
mkantor commentedon May 23, 2025
Is the fact that the cursor is within a string literal crucial to this issue, or would you also consider this a reproduction?
I'm trying to determine if/how this differs from #52898.