microsoft / microsoft/TypeScript-Sublime-Plugin
Buggy pop-up
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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