File tree 3 files changed +13
-6
lines changed
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " goose-vscode" ,
3
- "version" : " 0.0.18 " ,
3
+ "version" : " 0.0.19 " ,
4
4
"publisher" : " michaelneale" ,
5
5
"icon" : " goose-icon.png" ,
6
6
"main" : " ./out/extension.js" ,
Original file line number Diff line number Diff line change @@ -12,15 +12,16 @@ export function activate(context: vscode.ExtensionContext) {
12
12
// Check if goose CLI is installed
13
13
const config = vscode . workspace . getConfiguration ( 'goose' ) ;
14
14
let defaultCommand = config . get ( 'defaultCommand' , "goose session start" ) ;
15
- try {
16
- execSync ( 'goose version' ) ;
17
- } catch ( error ) {
15
+
16
+ if ( defaultCommand . startsWith ( 'goose ' ) ) {
18
17
try {
19
18
execSync ( 'sq goose version' ) ;
20
- defaultCommand = 'sq goose session start'
19
+ defaultCommand = 'sq goose session start'
20
+ console . log ( "using sq: " + defaultCommand )
21
21
} 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 )
23
23
}
24
+
24
25
}
25
26
26
27
You can’t perform that action at this time.
0 commit comments