File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
frontend/frame-editors/terminal-editor Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
118
118
workingDir ?: string ,
119
119
) {
120
120
this . actions = actions ;
121
- this . ask_for_cwd = debounce ( this . ask_for_cwd ) ;
122
121
123
122
this . account_store = redux . getStore ( "account" ) ;
124
123
this . project_actions = redux . getProjectActions ( actions . project_id ) ;
@@ -289,9 +288,9 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
289
288
try {
290
289
await this . configureComputeServerId ( ) ;
291
290
} catch {
292
- // expected if the project tab closes right when the terminal is
293
- // being created.
294
- return ;
291
+ // expected to throw sometimes, e.g., if the project tab closes
292
+ // right when the terminal is being created, in which case this.state
293
+ // will be closed and we exit.
295
294
}
296
295
if ( this . state == "closed" ) {
297
296
return ;
@@ -721,9 +720,9 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
721
720
this . render_buffer = "" ;
722
721
} ;
723
722
724
- ask_for_cwd = ( ) : void => {
723
+ ask_for_cwd = debounce ( ( ) : void => {
725
724
this . conn_write ( { cmd : "cwd" } ) ;
726
- } ;
725
+ } ) ;
727
726
728
727
kick_other_users_out ( ) : void {
729
728
// @ts -ignore
Original file line number Diff line number Diff line change 1
1
/* autogenerated by the update_version script */
2
- exports . version = 1751812672 ;
2
+ exports . version = 1751843875 ;
You can’t perform that action at this time.
0 commit comments