-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Platform specific configuration default values for extension authoring #22829
Comments
@hackwaly Please explain what feature you are asking for |
I means ability to specify different default values for each platforms on same field of configuration. Eg. "executable_extname" on Windows default to ".exe" and for other platform default to "". |
@hackwaly and where would this be used? |
Sorry, I didn't see where package.json support it. I'll try it. |
@hackwaly aha, you are asking for this feature in "package.json". Please be aware that the support described in https://code.visualstudio.com/docs/editor/tasks#_operating-system-specific-properties is only available for Debugger contributions in package.json. I suggest that you create an example of what you want to do in a package.json. |
|
The configuration settings that you contribute in the package.json will end up as user setting. If the settings are shared across different platforms, a user can have different paths for different platforms simultaneously. I do not think that your approach with the "executable_extname" variable would be of great use because it breaks down as soon as the path includes more than just the basename (e.g. a full path with drive letter and path separator). |
Thank you for your advice. |
@hackwaly you are welcome! |
This is useful, so we don't need programming to achieve it.
hackwaly/vscode-ocaml#82 (comment)
The text was updated successfully, but these errors were encountered: