Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What should F5 do? #369

Open
MrAmericanMike opened this issue Aug 25, 2022 · 3 comments
Open

What should F5 do? #369

MrAmericanMike opened this issue Aug 25, 2022 · 3 comments

Comments

@MrAmericanMike
Copy link

So I used yo code to generate a template for a Snippets Extension.

Reading vsc-extension-quickstart.md I see that it mentions Press `F5` to open a new window with your extension loaded.

However when I press F5 I get an error saying:

You don't have an extension for debugging "JSON with Comments". Should we find a "JSON with Comments" extension in the Marketplace?

Which I assume is not what should happen and I guess it's because my F5 key is doing something different.

What would be the way to get this working in order to test my Extension not having to manually copy it into .vscode/extensions manually each time?

@aeschli
Copy link
Contributor

aeschli commented Oct 3, 2022

I'm not able to reproduce. Fro me F5 runs the provided launch config.

@isidorn Do you have some insights how the message above could have been shown?

@isidorn
Copy link
Contributor

isidorn commented Oct 3, 2022

Yes it could happen that the user did not have a launch.json or that via a bug debugging was not aware of configuration in the launch.json. And then pressing F5 we would try to debug the current file by asking the debug extension to generate a launch configuration dynamically. Here we tried to do that for the JSON with Comments file.

fyi @roblourens

@roblourens
Copy link
Member

I tried it too and it worked. @MrAmericanMike do you have a .vscode/launch.json file? Please make sure you haven't deleted that by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants