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.
1 parent 876f10a commit ab455f8Copy full SHA for ab455f8
src/extension/common.ts
@@ -3,8 +3,10 @@ import { Unport } from 'unport'
3
import { workspace } from 'vscode'
4
import type { ChildProcessWithoutNullStreams } from 'node:child_process'
5
6
+const defaultBinary = process.platform === 'win32' ? 'ast-grep.exe' : 'ast-grep'
7
+
8
export function resolveBinary() {
- return workspace.getConfiguration('astGrep').get('serverPath', 'ast-grep')
9
+ return workspace.getConfiguration('astGrep').get('serverPath', defaultBinary)
10
}
11
12
export const parentPort: ParentPort = new Unport()
0 commit comments