What args are supported by extensionHost launch type? #1142
Replies: 5 comments 6 replies
-
Hi, @vaclavHala! i hope you're doing great. I'm adding @isidorn he might be able to help here :D |
Beta Was this translation helpful? Give feedback.
-
Hi @vaclavHala. Sounds like you're good for now so I'm closing this issue but don't hesitate to reopen if more questions come up. /r |
Beta Was this translation helpful? Give feedback.
-
It would be pretty nice to have a document that answers the question of this issue: When looking into it, this post is now the first result that comes up in search engines. After more digging the only doc I could find is https://code.visualstudio.com/api/working-with-extensions/testing-extension#debugging-the-tests. Maybe there's more out there already. But if @vaclavHala hadn't read the code, I would have no idea there was even such a thing as a --verbose option ;) |
Beta Was this translation helpful? Give feedback.
-
+1 for a documentation of the args supported by the extensionHost launch type |
Beta Was this translation helpful? Give feedback.
-
I was wondering how to add |
Beta Was this translation helpful? Give feedback.
-
I'm trying to launch VSCode for running tests in from my development VSCode with these args:
but
--verbose
,--extensions-dir
and--user-data-dir
seem to be ignored (the exact same setup launched via @vscode/test-electron works without problems).Here is more context for why I want to pass
--extensions-dir
and--user-data-dir
.The
--verbose
I need because in some of our tests we need to listen for File Watcher events like thisto have reliable tests which use the watcher API without using
sleeps
or similar(there may be better way to go about that use case, please let me know if there is, but that is beside the point of this question).
So the question is - what is the supported subset of options (I'd also like to pass in
runtimeExecutable
but that is also ignored, see the linked issue) and args that can be used when launching theextensionHost
type debug session and is this documented somewhere?If there is no documentation for this, please point me to source where I can find this out for myself.
I tried looking a bit but could not find anything yet (I think the place to start is extensionHostStarter.ts
but could not find how/where the options from launch.json are actually processed). Thanks
Beta Was this translation helpful? Give feedback.
All reactions