File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export class SystemManager extends Manager {
149
149
}
150
150
151
151
SystemConfig . hook . addListener ( "update" , ( key , val ) => {
152
- if ( key === "vscodeReconnect " ) {
152
+ if ( key === "vscode_reconnect " ) {
153
153
if ( val ) {
154
154
connectVSCodeTimer = setInterval ( ( ) => {
155
155
handler ( ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import { ColumnProps } from "@arco-design/web-react/es/Table";
17
17
import { ComponentsProps } from "@arco-design/web-react/es/Table/interface" ;
18
18
import {
19
19
Script ,
20
- SCRIPT_RUN_STATUS_COMPLETE ,
21
20
SCRIPT_RUN_STATUS_RUNNING ,
22
21
SCRIPT_STATUS_DISABLE ,
23
22
SCRIPT_STATUS_ENABLE ,
@@ -522,15 +521,6 @@ function ScriptList() {
522
521
content : t ( "script_stopped" ) ,
523
522
duration : 3000 ,
524
523
} ) ;
525
- setScriptList ( ( list ) => {
526
- for ( let i = 0 ; i < list . length ; i += 1 ) {
527
- if ( list [ i ] . id === item . id ) {
528
- list [ i ] . runStatus = SCRIPT_RUN_STATUS_COMPLETE ;
529
- break ;
530
- }
531
- }
532
- return [ ...list ] ;
533
- } ) ;
534
524
} }
535
525
style = { {
536
526
color : "var(--color-text-2)" ,
Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ export default class SandboxRuntime {
106
106
stop ( scriptId : number ) : Promise < boolean > {
107
107
const exec = this . execScripts . get ( scriptId ) ;
108
108
if ( ! exec ) {
109
+ this . message . send ( "scriptRunStatus" , [
110
+ scriptId ,
111
+ SCRIPT_RUN_STATUS_COMPLETE ,
112
+ ] ) ;
109
113
return Promise . resolve ( false ) ;
110
114
}
111
115
this . execStop ( exec ) ;
You can’t perform that action at this time.
0 commit comments