[VSC] Support shell commands with empty/null args in $/gitlab/runCommand
Problem to solve
The LS is updating the $/gitlab/runCommand message to support shell commands by sending an empty or null args array with the full command string in command.
Proposal
Update AgentPlatformTerminalService to detect when args is empty or null call executeCommand without any args
Further details
The LS is implementing a new run_shell_command action that sends the full command string (including arguments, pipes, redirects) in the command parameter with an empty or null args array. This allows shell features that weren't previously supported.
Links / references
- LS Issue: gitlab-org/editor-extensions/gitlab-lsp#1797 (closed)
- LS MR: gitlab-org/editor-extensions/gitlab-lsp!2634 (merged)
- Related JetBrains Issue: gitlab-org/editor-extensions/gitlab-jetbrains-plugin#1312 (closed)
Edited by Elwyn Benson