Open jlonnberg opened 3 weeks ago
Thanks for raising this issue. The behaviour seen here is due to a culmination of a few things:
The host an extension runs in is outlined using the extensionKind
package.json
entry and we currently have this set to ui
for the following reasons:
workspace
TBF)However this setup means the memory inspector extension doesn't see any debuggers running in remote hosts.
In order to resolve this issue, we need to decide where we want this extension to run. The options boil down to:
I will separately raise a question with the VS Code team to get their input.
As this is an OSS project and the UI use case may be unique to Arm, I suggest we go with option 2
and change the default behaviour to support remote workspaces. Arm then need to investigate a workaround for our browser scenario.
Feedback welcome @jreineckearm
@thegecko There's also the option to list the extension as UI preferred and workspace as secondary option. This did the trick for us when trying to figure out what the problem was
@thegecko There's also the option to list the extension as UI preferred and workspace as secondary option. This did the trick for us when trying to figure out what the problem was
Hmm, my tests in that scenario didn't work. But if it did, it would still break the browser scenario :(
In order for this to continue to work in a serverless environment (vscode.dev) it would still need ui
in the list somewhere.
Would you mind confirming if this fixes your setup:
...
"extensionKind": [
"ui",
"workspace"
]
...
@thegecko Yes, that solved the problem for us at least
But if it did, it would still break the browser scenario :(
Our experience is also that you basically have to commit to one extension host or the other when working remotely. The Memory Inspector will only run in one extension host, and that needs to be the one that runs the debugger. If you had different debuggers running in the different hosts, only one would work with the Memory Inspector. For our use cases we prefer the workspace extension host, so we've just modified the package.json
accordingly, but it's an unfortunate limitation.
Changed in #151
Hmm, my tests in that scenario didn't work... ...Yes, that solved the problem for us at least
Forgot to mention, I confirmed the PR linked above does indeed fix WSL support in my test setup
Description The extensions fails to activate properly when running in WSL
How to reproduce: Launch a simple gcc project in WSL and try to use the extension
Expected behavior The extension is activated properly in WSL
Environment
Additional information