microsoft / microsoft/TypeScript

JS global variable suggestion

Open
#38,885 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback 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.0.0-dev.20200601

Search Terms

  • global
  • javascript
  • suggestions
  • intellisense

Issue Type: Feature Request

In WebStorm, if I write

global.abc = 123;

and then type a at anywhere I will get suggestion abc, but VSCode cannot do that. Screenshots as follow

VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 10.0.18363

TIM图片20200531132737
TIM图片20200531132750

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 reported JavaScript example with global.abc = 123 and check completion after typing a elsewhere. Compare the current VS Code behavior with the requested WebStorm behavior, then verify that abc is offered as a suggestion in the relevant contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
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.