diff --git a/src/api/transform/vscode-lm-format.ts b/src/api/transform/vscode-lm-format.ts index 73716cf912..080267b221 100644 --- a/src/api/transform/vscode-lm-format.ts +++ b/src/api/transform/vscode-lm-format.ts @@ -18,7 +18,7 @@ function asObjectSafe(value: any): object { // Handle pre-existing objects if (typeof value === "object") { - return Object.assign({}, value) + return { ...value } } return {} diff --git a/src/services/ripgrep/index.ts b/src/services/ripgrep/index.ts index 01e2c26fd1..c694221966 100644 --- a/src/services/ripgrep/index.ts +++ b/src/services/ripgrep/index.ts @@ -48,7 +48,7 @@ rel/path/to/helper.ts │---- */ -const isWindows = /^win/.test(process.platform) +const isWindows = process.platform.startsWith("win") const binName = isWindows ? "rg.exe" : "rg" interface SearchFileResult {