Skip to content

Commit

Permalink
CM-32339 - Fix work on Windows (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Feb 9, 2024
1 parent af5bc56 commit ab0368b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v1.2.2]

- Fix work on Windows

## [v1.2.1]

- Disable "SCA Scan on Open" setting
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion src/cli-wrapper/cli-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ab0368b

Please sign in to comment.