We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_parseKeyValueAssignment
1 parent f86e19e commit bf4ae00Copy full SHA for bf4ae00
src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts
@@ -429,4 +429,14 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
429
}
430
return result;
431
432
+
433
+ private _parseKeyValueAssignment(message: string): { key: string; value: string | undefined } {
434
+ const [key, ...rawValues] = message.split('=');
435
+ if (!rawValues.length) {
436
+ return { key, value: undefined }; // No '=' was found.
437
+ }
438
+ const rawValue = rawValues.join('=');
439
+ const value = this._deserializeMessage(rawValue);
440
+ return { key, value };
441
442
0 commit comments