microsoft / microsoft/TypeScript

Annoying completions, where only `extends` keyword is expected

Open
#53,929 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Domain: LS: Completion Lists Experience Enhancement Suggestion
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Bug Report

From the following bug reports:

After interface Foo or generic TypeScript doesn't suggest just extends keyword, instead, it just doesn't block completions now. I wonder is this possible to complete only valid extends keyword instead of showing everything? For example variables previously were not suggested:

Screenshot 2023-04-20 at 15 58 49

cc @a-tarasyuk

Again, I'm not against new behavior, just wondering wether the fix can be improved

Please fill in each section completely. Thank you!
-->

🔎 Search Terms

extends other completions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the completion behavior after an interface declaration and after a generic, using the linked reports for comparison. Trace the TypeScript completion entry point and identify the relevant tests; done means valid positions suggest extends without the unrelated completions described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.