microsoft / microsoft/TypeScript

Consider loose completions in the syntax server on unresolved/error types

Open
#39,034 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

In Discussion Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

Assume that no type named Foo exists in the current project, and assume the current file.

export let x: Foo;

x./**/

When requesting completions at /**/, we should consider giving a list of identifiers in the current file, similar to what we do for any in JavaScript files. This contrived example isn't great, but when opening a larger file, this could be helpful.

This is somewhat related to

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

Start by tracing syntax-server completion handling for unresolved or error types, then compare it with identifier completions for any in JavaScript. Read issues #5334 and #39032 for context. Done means the shown position can offer identifiers from the current file without disrupting existing completion behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.