microsoft / microsoft/TypeScript-Sublime-Plugin

Buggy pop-up

Open
#683 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

I have the following code:

async function main() {}
main()

This is on default settings, so TS complains about the lack of Promise, so main on the first line gets underlined. However, when I put my cursor over it, I get this glitch (not a screengrab because I'm on a Wayland window manager, sorry...).

If I add an explicit return type - Promise<void> - it gets underlined instead of main, and I'm able to inspect the error without issues.

Linux, ST 3180, plugin 3.1.5, TS 3.1.6, Node 11.1.

Contributor guide

No contributing guide indexed for this repository

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 hover behavior with the supplied async main() example under the reported default settings and versions: Sublime Text 3180, plugin 3.1.5, TypeScript 3.1.6, and Node 11.1 on Linux. Compare the hover on the inferred return type with the behavior after adding Promise; done means the diagnostic can be inspected without the reported pop-up glitch.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, 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.