Use --command flag executable for VSCode extension sync in mila code#185
Open
Use --command flag executable for VSCode extension sync in mila code#185
--command flag executable for VSCode extension sync in mila code#185Conversation
Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com> Agent-Logs-Url: https://github.com/mila-iqia/milatools/sessions/df50ead9-61d2-41c6-a3dc-210566eaa3a9
Copilot
AI
changed the title
[WIP] Update mila code to use command flag for installing extensions
Use Mar 23, 2026
--command flag executable for VSCode extension sync in mila code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
mila codesyncs VSCode extensions to a remote cluster, it was hard-coded to usecodeas the local executable regardless of the--commandflag value. Users runningcode-insidersor a custom binary would have their extensions listed/installed using the wrong executable.Changes
vscode_utils.py: Thread a newcode_command: str | None = Noneparameter through:sync_vscode_extensions→_get_vscode_extensions(for reading source extensions)sync_vscode_extensions→_install_vscode_extensions_task_function(for installing toLocalV2destinations)code_commandto_get_local_vscode_executable_path(), which already accepted itcode.py: Passcommand(from--commandflag) intosync_vscode_extensionsascode_commandAll new parameters default to
None(falls back toget_code_command()/$MILATOOLS_CODE_COMMAND), preserving backward compatibility.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.