VSCode

Creating a Submenu in VS Code: A Step-by-Step Guide

January 24, 2023

While creating a session about Visual Studio Code extension development, I discovered that creating a submenu in the context menus is possible. These submenus are a great way to make the context menus less cluttered and easier to use. Submenu in a context menu When trying it out, I could not make it work easily as the docs were unclear.

Read more

Creating timer dismissable notifications in a Visual Studio Code extension

December 21, 2022

Notifications in Visual Studio Code are trivial for your extensions to notify the user when something happens or a process completes. A downside of these notifications is that they cannot be dismissed programmatically; they require manual user interaction. As in my current extension, I wanted to be able to have a notification that can do the following:

Read more

Cancel progress programmatically in Visual Studio Code extensions

December 20, 2022

With the Visual Studio Code progress notification (vscode.window.withProgress), you can make it cancellable. This cancellable option allows the user to cancel it by clicking on a cancel button. Progress notification in Visual Studio Code What if you want to cancel it programmatically? That was the case for one of my extensions.

Read more

Make your authentication provider work in GitHub and Gitpod codespaces

December 8, 2022

In the previous article, I explained how you could ensure your URI handler works in GitHub codespaces and Gitpod. Now it is time to explain more about making an authentication provider that works on GitHub codespaces and Gitpod. The authentication flow In the extension I am working on, we use the OAuth 2.

Read more

#DevHack: using the Visual Studio Code's URI Handler in codespaces

December 7, 2022

If you are reading this article, you know what a URI handler in Visual Studio Code is, but in case you do not. A URI Handler allows you to create a callback into your extension. Typically this is used in authentication flows to open your browser, fill in your credentials, and get redirected back into Visual Studio Code.

Read more

Open your Visual Studio Code extension walkthrough from a command

July 25, 2022

A great feature that allows your users to get familiar with your extension is the ability for you to create walkthroughs. Walkthrough experience The welcome experience can be seen or opened from the start experience in VS Code. VS Code - Get started But how do you get to the welcome experience when you close the start page?

Read more