This commit is contained in:
Muhammad Atif Ali 2026-01-05 12:20:27 +05:00
parent a1eed799aa
commit e1eda2ce65
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -76,11 +76,11 @@ Note: Either `workspace` or `folder` can be used, but not both simultaneously. T
```tf
module "vscode-web" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/vscode-web/coder"
version = "2.0.0"
agent_id = coder_agent.example.id
workspace = "/home/coder/coder.code-workspace"
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/vscode-web/coder"
version = "2.0.0"
agent_id = coder_agent.example.id
workspace = "/home/coder/coder.code-workspace"
accept_license = true
}
```

View File

@ -59,7 +59,7 @@ find_vscode_server() {
for dir in "$${server_dirs[@]}"; do
if [ -d "$dir" ]; then
# Find the most recent server version
local latest=$(ls -t "$dir" 2>/dev/null | head -1)
local latest=$(ls -t "$dir" 2> /dev/null | head -1)
if [ -n "$latest" ] && [ -f "$dir/$latest/bin/code-server" ]; then
echo "$dir/$latest/bin/code-server"
return 0