diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a388f2..81e7673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v1.2.2] + +- Fix work on Windows + ## [v1.2.1] - Disable "SCA Scan on Open" setting @@ -25,6 +29,8 @@ The first stable release with the support of Secrets, SCA, TreeView, Violation Card, and more. +[v1.2.2]: https://github.com/cycodehq/vscode-extension/releases/tag/v1.2.2 + [v1.2.1]: https://github.com/cycodehq/vscode-extension/releases/tag/v1.2.1 [v1.2.0]: https://github.com/cycodehq/vscode-extension/releases/tag/v1.2.0 diff --git a/package.json b/package.json index c7cb272..1a203b4 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/cycodehq/vscode-extension" }, "homepage": "https://cycode.com/", - "version": "1.2.1", + "version": "1.2.2", "publisher": "cycode", "engines": { "vscode": "^1.63.0" diff --git a/src/cli-wrapper/cli-wrapper.ts b/src/cli-wrapper/cli-wrapper.ts index ab73ac2..33b6bca 100644 --- a/src/cli-wrapper/cli-wrapper.ts +++ b/src/cli-wrapper/cli-wrapper.ts @@ -11,7 +11,9 @@ export const generateUserAgentCommandParam = (config: IConfig) => { env_version: config.envVersion, }; - return `${CommandParameters.UserAgent}='${JSON.stringify(userAgent)}'`; + // escape double quotes + const userAgentString = JSON.stringify(userAgent).replace(/"/g, '\\"'); + return `${CommandParameters.UserAgent}="${userAgentString}"`; }; export const cliWrapper = {