Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Imaginary ProgrammingNew to Visual Studio Code? Get it now.
Imaginary Programming

Imaginary Programming

Imaginary Programming

|
64 installs
| (0) | Free
Imaginary Programming lets you write and test implementation-free TypeScript functions directly from your IDE.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Imaginary Programming Extension

The Imaginary Programming extension lets you test and iterate on imaginary functions directly from Visual Studio Code. For more information about how to write imaginary functions, check out imaginary.dev.

Features

To use the Imaginary Programming extension, first navigate to an imaginary function in your code, then pull up the "Current Functions" panel below. From here, you can input new test cases for your imaginary function. Those test inputs will run and show results after you enter them so you can get a sense of how well the imaginary function is written. All of your test cases are saved to a JSON file next to your imaginary function's file, so that the test cases can be saved amongst your team.

Add Test Case

As you modify the input parameters or the function itself, you can press the play button off to the right of the test case name to re-run the test case and see how the output changes.

Modify Test Case

Can't think of a good test case for your imaginary function? Press the "Generate" button to create new test cases for your function. Note that this button requires access to the GPT-4 API and, because GPT-4 is quite complex, can take a decent amount of time.

Generate Test Case

Requirements

You must have an OpenAI API key to use the extension. The first time it is needed by the extension, you will be asked for your API key, and the extension will store it locally. If you don't have an OpenAI API key, set up an OpenAI account and generate a new API key at your API keys page.

In order to use the "Generate Test Case" feature, you must have API access to GPT-4. If you don't have that access yet, you can sign up at this sign up form.

Issues

If you find issues or have feedback, please feel free to file them at [https://github.com/imaginary-dev/imaginary-dev].

Release Notes

0.1.0

First beta release.

0.0.5

Fix for bugs found in alpha.

0.0.4

Fix for bugs found in alpha.

0.0.3

Fix for bugs found in alpha.

0.0.2

Fix for small usability bugs.

0.0.1

Initial alpha release of the imaginary-dev extension.

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