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

Extension Development Host does not launch #77

Open
sacsar opened this issue Dec 27, 2022 · 0 comments
Open

Extension Development Host does not launch #77

sacsar opened this issue Dec 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sacsar
Copy link

sacsar commented Dec 27, 2022

For context, I (too) was about to implement #59 and opened the extension itself in VSCode. When you press F5/run the extension, the Extension Development Host window never opens.

To Reproduce
Steps to reproduce the behavior:

  1. Open the extension in VS Code
  2. Press F5 and/or click "Run Extension"

Expected behavior
A second VSCode window (with title prefixed by [Extension Development Host]) opens. (See https://code.visualstudio.com/api/get-started/your-first-extension)

Environment:

  • OS: Manjaro 22.0.0
  • VS Code 1.74.2
  • Version main

Additional context
The cause is using watch in the pre-launch task here: https://github.com/arrterian/nix-env-selector/blob/master/.vscode/launch.json#L19 Removing the pre-launch task and running watch in a terminal gets you as far as being able to simply restart the extension after you make a change. I'm not sure if it should be possible to "reload" in the extension development host window.

(It's also worth noting that if you run the extension in an empty window, it fails because the workspace dir is null. I assume that's known/intentional, though I did fix it. Let me know if you want a PR for that.)

@sacsar sacsar added the bug Something isn't working label Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants