Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DimsumNew to Visual Studio Code? Get it now.
Dimsum

Dimsum

zjoelee

|
15 installs
| (1) | Free
just for fun
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Readme

Just for fun

Introduction

This plugin allows you to load all the JS files within a folder named "projectPrompt" located in the project root directory. You can also customize the plugin to load JS files from other paths by separating the paths with semicolons.

Usage

The plugin expects an array of objects with the following properties:

  • lv1: A string representing the first level of the prompt hierarchy.
  • lv2: A string representing the second level of the prompt hierarchy.
  • prompt: A string representing the actual prompt that will be displayed.
  • content: The code snippet that will be executed when the prompt is triggered.
  • display: A boolean indicating whether the prompt should be displayed or not.

You can define the prompts either as a plain array or as a self-invoking function that returns an array.

Example (plain array)

[
	{
	  lv1: "My Prompt (local)",
	  lv2: "code snippet",
	  prompt: "log sql",
	  content: `console.log('SELECT * FROM users');`,
	  display: true
	},
]

Example (self-invoking function)

(function(){

    return [
        {
            lv1: 'NGB Cms',
            lv2: 'Model',
            prompt: 'create model',
            content: `/* Your code goes here */`,
            display: true
        },
    ];
})()

features

Command:dimsum.reloadPrompt Right click add selected text to chat

License

This plugin is licensed under the MIT License.

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