redhat-developer / redhat-developer/vscode-java

rewrite extension.ts with async/await instead of then/catch

Open
#2,509 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debt
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Now we have a more complicated extension.ts than before. I find there're lots of nested then/catch blocks with various callbacks, making the execution order a little bit hard to follow. Maybe we can use async/await style for better readability and clearer flow. What do you think?

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 reading extension.ts and tracing the nested then/catch chains and their callbacks to understand the current execution order. The work is done when the file uses async/await for the same flows without changing observable extension behavior; the issue does not identify tests or a narrower entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.