Skip to content

Commit 581baae

Browse files
authored
Merge pull request #22 from square/fix-sq
Fix sq
2 parents 7fce2bc + 1475f28 commit 581baae

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "goose-vscode",
3-
"version": "0.0.18",
3+
"version": "0.0.19",
44
"publisher": "michaelneale",
55
"icon": "goose-icon.png",
66
"main": "./out/extension.js",

resources/goose.svg

+6
Loading

src/extension.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ export function activate(context: vscode.ExtensionContext) {
1212
// Check if goose CLI is installed
1313
const config = vscode.workspace.getConfiguration('goose');
1414
let defaultCommand = config.get('defaultCommand', "goose session start");
15-
try {
16-
execSync('goose version');
17-
} catch (error) {
15+
16+
if (defaultCommand.startsWith('goose ')) {
1817
try {
1918
execSync('sq goose version');
20-
defaultCommand = 'sq goose session start'
19+
defaultCommand = 'sq goose session start'
20+
console.log("using sq: " + defaultCommand)
2121
} catch (error) {
22-
vscode.window.showWarningMessage('If goose isn\'t working, please check the goose command line tool is installed and working.');
22+
console.log("falling back to default " + defaultCommand)
2323
}
24+
2425
}
2526

2627

0 commit comments

Comments
 (0)