microsoft / microsoft/TypeScript

Object property completion doesn't show properties from other overloads

Open
#44,183 1 comment 3 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.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

TS Template added by @mjbvz

TypeScript Version: 4.3.0-dev.20210503

Search Terms

  • suggest / suggestion
  • Completion

Steps to Reproduce:

  1. open code that leverages FileWorkingCopyManager2 e.g. here
  2. type manager.resolve({ and trigger intellisense
  3. notice the 3 overloads, pick the second or third one

=> 🐛 try to complete on associatedResource or untitledResource but you only see contents

recording (1)

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 issue using the referenced VS Code test at src/vs/workbench/services/workingCopy/test/browser/fileWorkingCopyManager2.test.ts, then inspect TypeScript's completion handling for the manager.resolve({ call. Done means completions include associatedResource and untitledResource from the other overloads, not only contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.