You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set env to extensionHost type in launch.json did not work #22150
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded
That error message about 'node2' is wrong. I think it was fixed by #21596, but the problem is that 'extensionHost' doesn't support the attribute 'env'. Right Isidor Nikolic (@isidorn)?
Ramya Rao (@ramya-rao-a) I'm not sure. I just want to find an approach to judge the debugging environment, so I could load some development configuration. Is there anyway to do so without set env? 😕
I was currently trying to narrow down if debugging the extension works at all to begin with. Hence the question about trying without the env attribute.
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
roblourens commentedon Mar 7, 2017
That error message about 'node2' is wrong. I think it was fixed by #21596, but the problem is that 'extensionHost' doesn't support the attribute 'env'. Right Isidor Nikolic (@isidorn)?
ramya-rao-a commentedon Mar 7, 2017
leozdgao (@leozdgao) Can you debug your extension using your initial launch.json configuration but without the
envattribute?leozdgao commentedon Mar 8, 2017
Ramya Rao (@ramya-rao-a) I'm not sure. I just want to find an approach to judge the debugging environment, so I could load some development configuration. Is there anyway to do so without set env? 😕
ramya-rao-a commentedon Mar 8, 2017
I was currently trying to narrow down if debugging the extension works at all to begin with. Hence the question about trying without the env attribute.
leozdgao commentedon Mar 8, 2017
Ramya Rao (@ramya-rao-a) Oh, debugging the extension works well. But the env configuration did not work.
isidorn commentedon Mar 8, 2017
roblourens not sure if
extensionHostsupportsenv, forwarding to Andre Weinand (@weinand)weinand commentedon Mar 8, 2017
The extensionHost debugger doesn't yet support setting the env (but it is planned for this milestone).
But the nasty problem is that the error squiggly is completely misleading:
It flags the type "extensionHost" as wrong and not the illegal use of "env".
If the key value pair "foo":"bar" is removed from the env structure the error is flagged correctly:
Martin Aeschlimann (@aeschli) Is there a way to let your validator know that the "type" attribute is special (and has higher priority)?
leozdgao commentedon Mar 8, 2017
Andre Weinand (@weinand) BTW, is there anyway to know the code is running in the debug environment besides set env?
weinand commentedon Mar 8, 2017
Currently this feature is blocked by #22233
aeschli commentedon Mar 8, 2017
Andre Weinand (@weinand) It's difficult for the JSON validator to know which variant ('any of') is the right one.
Please file an issue against JSON.
weinand commentedon Mar 9, 2017
leozdgao (@leozdgao) with the latest Insiders build you can now access env variables in the extension that are defined in the launch config.