File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,17 @@ export class Lama2Panel {
73
73
status : "starting" ,
74
74
} )
75
75
76
- const { cmd, rflag, rfile, rlog } = getLama2Command ( )
77
- this . rfile = rfile
78
- this . rlog = rlog
79
- this . setLama2Watch ( rflag )
76
+ const lama2Command = getLama2Command ( ) ;
77
+ if ( ! lama2Command ) {
78
+ console . error ( "Failed to generate Lama2 command" ) ;
79
+ return ;
80
+ }
81
+
82
+ const { cmd, rflag, rfile, rlog } = lama2Command ;
83
+ this . rfile = rfile ;
84
+ this . rlog = rlog ;
85
+ this . setLama2Watch ( rflag ) ;
86
+
80
87
81
88
// Execute command and capture output
82
89
let terminal = getShowLama2Term ( "AutoLama2" )
@@ -86,6 +93,7 @@ export class Lama2Panel {
86
93
this . _panel . webview . onDidReceiveMessage ( ( message ) => {
87
94
switch ( message . command ) {
88
95
case "toggleTerminal" :
96
+ console . log ( "isVisble" , isVisible )
89
97
if ( isVisible ) {
90
98
terminal . hide ( )
91
99
isVisible = false
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export function getLama2Command() {
60
60
}
61
61
randomNameFlag = `${ windowsBasePath } \\${ randomNameBase } .flag` ;
62
62
randomNameFile = `${ windowsBasePath } \\${ randomNameBase } .json` ;
63
+ randomNameLog = `${ windowsBasePath } \\${ randomNameBase } .log` ;
63
64
cmd = `powershell l2 -o ${ randomNameFile } ${ currentFilePath } ; New-Item -Path ${ randomNameFlag } ` ;
64
65
} else {
65
66
randomNameFlag = `/tmp/${ randomNameBase } .flag` ;
You can’t perform that action at this time.
0 commit comments