Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>JavaScript Promise Function ColorizerNew to Visual Studio Code? Get it now.
JavaScript Promise Function Colorizer

JavaScript Promise Function Colorizer

cortezdev

|
1 install
| (0) | Free
Highlights JavaScript/TypeScript functions that return promises with a custom color.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

js-promise-function-colorizer extension for VSCode

Highlights JavaScript/TypeScript functions that return promises with a custom color. You can customize the color using the promiseColorizer.color config.

I created this because sometimes I forget to add an await in functions that return a promise. While the require-await rule on ESLint is useful, sometimes we might want to make async calls without waiting for their result. This extension simply makes us more aware of which function calls are async.

Disclaimer: AI was heavily used when making this, and there are no unit tests written. Let me know if you find any problems and I will respond in n+1 business days, where n = days passed since you reported the problem.

TODO

  • add image/gif
  • add icon

Features

Automatically detects promise-returning functions and calls

  • Highlights functions in JavaScript/TypeScript that return promises with a custom color
  • Works with JavaScript, TypeScript, JSX, and TSX files

Requirements

Depends on VSCode's typescript-language-features being enabled

Extension Settings

This extension contributes the following settings:

  • promiseColorizer.color: The color to use for functions that return a Promise. This must be a hex color code.

Example

{
  "promiseColorizer.color": "#AF69EE"
}

Known Issues

  • None ATM

Releasing

npx vsce package

or

vsce publish --pre-release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft