VSCode Extension Advanced Topics

In this blog, I want to document some useful apis, such as chat extension api and workspace api. Get the current workspace We can use the workspace API to create folders and files in vscode. To do that, we need to get the reference to the current workspace. You can read more about VSCode workspace from this doc. Basically, when you first open a vscode editor, the workspace is empty: You can open a folder to work with: ...

April 21, 2025

VSCode Chat Extension Basics

Introduction A VSCode Chat Extension is an extension uses the Chat extension API by contributing a chat participant - a domain expert that can answer user queries within a specific domain. The reason why I am looking into the VSCode Chat Extension is that I want to build a domain expert on Threat Modeling. In this blog, I will talk about the basic usage of a chat extension. Here are the references: ...

April 18, 2025