Skip to content

Commit 9e9c975

Browse files
committed
.
1 parent ad7bd78 commit 9e9c975

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22

33
## Unreleased
44

5+
### Added
6+
7+
- Support for paths that begin with a tilde (`~`).
8+
59
### Fixed
610

711
- Fixed race condition when multiple VS Code windows download the Coder CLI binary simultaneously.
812
Other windows now wait and display real-time progress instead of attempting concurrent downloads,
913
preventing corruption and failures.
14+
- Remove duplicate "Cancel" buttons on the workspace update dialog.
1015

1116
### Changed
1217

@@ -15,9 +20,9 @@
1520

1621
## [v1.11.4](https://github.com/coder/vscode-coder/releases/tag/v1.11.4) 2025-11-20
1722

18-
### Fixed
23+
### Added
1924

20-
- Add support for `google.antigravity-remote-openssh` Remote SSH extension.
25+
- Support for the `google.antigravity-remote-openssh` Remote SSH extension.
2126

2227
### Changed
2328

@@ -55,7 +60,7 @@
5560

5661
### Changed
5762

58-
- Always enable verbose (`-v`) flag when a log directory is configured (`coder.proxyLogDir`).
63+
- Always enable verbose (`-v`) flag when a log directory is configured (`coder.proxyLogDirectory`).
5964
- Automatically start a workspace without prompting if it is explicitly opened but not running.
6065

6166
### Added
@@ -134,7 +139,7 @@
134139

135140
### Added
136141

137-
- Coder extension sidebar now displays available app statuses, and let's
142+
- Coder extension sidebar now displays available app statuses, and lets
138143
the user click them to drop into a session with a running AI Agent.
139144

140145
## [v1.7.1](https://github.com/coder/vscode-coder/releases/tag/v1.7.1) (2025-04-14)

src/util.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,14 @@ export function toSafeHost(rawUrl: string): string {
119119
}
120120

121121
/**
122-
* Expand a path with ${userHome} in the input string
123-
* @param input string
124-
* @returns string
122+
* Expand a path if it starts with tilda (~) or contains ${userHome}.
125123
*/
126124
export function expandPath(input: string): string {
127125
const userHome = os.homedir();
128-
return input.replace(/\${userHome}/g, userHome);
126+
if (input.startsWith("~")) {
127+
input = userHome + input.substring("~".length);
128+
}
129+
return input.replaceAll("${userHome}", userHome);
129130
}
130131

131132
/**
@@ -145,5 +146,6 @@ export function countSubstring(needle: string, haystack: string): number {
145146
}
146147

147148
export function escapeCommandArg(arg: string): string {
148-
return `"${arg.replace(/"/g, '\\"')}"`;
149+
const escapedString = arg.replaceAll('"', String.raw`\"`);
150+
return `"${escapedString}"`;
149151
}

0 commit comments

Comments
 (0)