Skip to content

Commit 2c468df

Browse files
committed
🔨 Use _parseKeyValueAssignment to parse key-value pairs
Signed-off-by: Babak K. Shandiz <[email protected]>
1 parent bf4ae00 commit 2c468df

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,10 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
330330
return true;
331331
}
332332
case VSCodeOscPt.Property: {
333-
const [key, ...rawValues] = args[0].split('=');
334-
if (!rawValues.length) {
333+
const { key, value } = this._parseKeyValueAssignment(args[0]);
334+
if (value === undefined) {
335335
return true;
336336
}
337-
const rawValue = rawValues.join('=');
338-
const value = this._deserializeMessage(rawValue);
339337
switch (key) {
340338
case 'Cwd': {
341339
// TODO: Ideally we would also support the following to supplement our own:

0 commit comments

Comments
 (0)