Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pressing F5 is not working in VS code to open new window for debugging my custom theme

I have created a new custom theme using the Yoeman theme generated and now when I pressed on F5 to open a new Host Extension window of the custom theme it is actually showing me to select environment?

enter image description here

like image 288
Subrato Pattanaik Avatar asked Oct 14 '22 22:10

Subrato Pattanaik


1 Answers

I have managed to open a new Extension development window by the following step which is not the ideal way to do it but helped me to run it.

I have selected the chrome (preview) option which will create a .vscode folder in your workspace and will have one file launch.json.

In your project directory, you will also have a .vscode folder and launch.json file inside it. So, I have copied the content of launch.json and pasted it in the workspace launch.json file.

I don't know the reason how it is get solved with that but happily, I managed to open the new Extension Development Host window.

The reason for not showing up the Extension Development Host window by pressing F5 in the first place is because my VS code workspace is not inside the project directory. The project directory contains the setup for launching the Extension Development Host window in launch.json. So, If I want to suggest then I would say that VS code workspace needs to be inside the project folder directory.

like image 135
Subrato Pattanaik Avatar answered Oct 18 '22 15:10

Subrato Pattanaik