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
Drop support for variable substition for program and runtime in package.json #31675
Stop supporting variable substitution (e.g. ${workspaceRoot}) inside the package.jsonruntime and program fields.
Affected are exactly these two attributes in the debuggers contribution:
We have never marketed this feature and now it is providing some debt when introducing multi root workspaces (as the package.json can not specify against which root to resolve the variables against)
Did you mean the debug launch.json or the actual extension package.json? If it's the launch.json, is "cwd": "${workspaceRoot}" still supported? There isn't really a solution to change the cwd to if you want to commit the debug file to a project if that variable gets removed from cwd.
Jan Jurzitza (@WebFreak001) as the titles says, I only mean variable substitution in the "package.json" of a debugger extension. So this planned feature drop only affects debug extension authors, not end users.
Andre Weinand (@weinand) I'm slightly confused by what's being dropped. I do have some instances of ${workspaceRoot} in my packages.json however I believe that all of them are just written into the launch.json literally, so no substitution is done.
Two of them (configurationAttributes/launch/properties/program/defaulthere and initialConfigurations/programhere) appear as the string ${workspaceRoot} and the other (configurationSnippets/bodyprogramhere) is written as "^\"\\${workspaceRoot}/bin/main.dart\"".
Would I be right in assuming that none of this would be affected, but after the change maybe the last one would not need the escaping?
Danny Tuppeny (@DanTup) yes, variable substitution in the package.json does not affect your contributions (and you can verify this easily because the generated launch.json should contain the ${workspaceRoot} variable literally).
The escaping for the snippets is needed because of the snippet syntax, not to prevent the variable substitution. Variable substitution only occurs for the program and runtime attributes of a debuggers contribution:
Activity
debug: drop support for variable substition for program and runtime i…
weinand commentedon Aug 7, 2017
Please see "Variable substitution in package.json will no longer be supported" in the upcoming July release notes.
Namedrops:
Danny Tuppeny (@DanTup) Don Jayamanne (@DonJayamanne) Jimmy Thomson (@MSLaguana) Jan Jurzitza (@WebFreak001) Andy Sterland (@andysterland) David Wilson (@daviwil) Del Myers (@delmyers) Devon Carew (@devoncarew) Felix Becker (@felixfbecker) Gregg Miskelly (@gregg-miskelly) Holger Benl (@hbenl) lukaszunity Ramya Rao (@ramya-rao-a) Peng Lyu (@rebornix) Keith Hill (@rkeithhill) roblourens Sami Vaarala (@svaarala) vadimcn
WebFreak001 commentedon Aug 7, 2017
Did you mean the debug launch.json or the actual extension package.json? If it's the launch.json, is
"cwd": "${workspaceRoot}"still supported? There isn't really a solution to change the cwd to if you want to commit the debug file to a project if that variable gets removed from cwd.weinand commentedon Aug 7, 2017
Jan Jurzitza (@WebFreak001) as the titles says, I only mean variable substitution in the "package.json" of a debugger extension. So this planned feature drop only affects debug extension authors, not end users.
DonJayamanne commentedon Aug 7, 2017
Phew.
Thanks for the clarification Andre Weinand (@weinand) . Almost started panicking here.
DanTup commentedon Aug 7, 2017
Andre Weinand (@weinand) I'm slightly confused by what's being dropped. I do have some instances of
${workspaceRoot}in mypackages.jsonhowever I believe that all of them are just written into thelaunch.jsonliterally, so no substitution is done.Two of them (
configurationAttributes/launch/properties/program/defaulthere andinitialConfigurations/programhere) appear as the string${workspaceRoot}and the other (configurationSnippets/bodyprogramhere) is written as"^\"\\${workspaceRoot}/bin/main.dart\"".Would I be right in assuming that none of this would be affected, but after the change maybe the last one would not need the escaping?
Thanks!
weinand commentedon Aug 7, 2017
Danny Tuppeny (@DanTup) yes, variable substitution in the package.json does not affect your contributions (and you can verify this easily because the generated launch.json should contain the
${workspaceRoot}variable literally).The escaping for the snippets is needed because of the snippet syntax, not to prevent the variable substitution. Variable substitution only occurs for the
programandruntimeattributes of adebuggerscontribution:DanTup commentedon Aug 7, 2017
Andre Weinand (@weinand) Gotcha! Thanks!
debug: drop support for variable substition for program and runtime i…