vscode-cli tunnel service command didn't inherit server-data-dir and extensions-dir args #236195
Closed
Description
opened on Dec 16, 2024
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.97.0-insider (commit: ce50bd4)
- OS Version: Windows 11 24H2 x64 (version: 10.0.26100.2605)
Steps to Reproduce:
- Download insiders version of
vscode_cli_win32_x64_cli.zip
from official website, extractcode-insider.exe
to work directory (e.g.D:\vsc\
); - under work dir, make sub dirs:
server-data
,server-extensions
,cli-data
; - open Windows Terminal with PowerShell at work dir, set environment variable:
$env:VSCODE_CLI_DATA_DIR='D:\vsc\cli-data
; - install service:
.\code-insiders.exe tunnel --server-data-dir D:\vsc\server-data --extensions-dir D:\vsc\server-extensions --cli-data-dir D:\vsc\cli-data service install --name test-srv
; - service
test-srv
started successfully, but it didn't use--server-data-dir
and--extensions-dir
as target path; Instead,code-insiders.exe
will create data and extensions dir under$env:USERPROFILE
using default behavior.
The two(three) args works as expected when creating tunnel:
.\code-insiders.exe tunnel --server-data-dir D:\vsc\server-data --extensions-dir D:\vsc\server-extensions --cli-data-dir D:\vsc\cli-data --name test-tunnel
.
Activity