File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import Viewer from './Viewer';
4
4
import { ErrorBoundary } from 'react-error-boundary' ;
5
5
import { vscode } from './vscode-api' ;
6
6
import { MessageType , type Message , type FileInfo } from '../src/models' ;
7
- import { H5WasmLocalFileProvider } from '@h5web/h5wasm' ;
8
7
import StandaloneViewer from './StandaloneViewer' ;
9
8
10
9
// 2 GB = 2 * 1024 * 1024 * 1024 B
Original file line number Diff line number Diff line change 5
5
Uri ,
6
6
Webview ,
7
7
WebviewPanel ,
8
+ commands ,
8
9
window ,
9
10
workspace ,
10
11
} from 'vscode' ;
@@ -82,6 +83,10 @@ export default class H5WebViewer
82
83
83
84
if ( saveUri ) {
84
85
writeFileSync ( saveUri . fsPath , payload ) ;
86
+
87
+ // Open output file in separate editor
88
+ commands . executeCommand ( 'workbench.action.keepEditor' ) ; // if current editor is in preview mode, keep it open
89
+ window . showTextDocument ( saveUri ) ;
85
90
}
86
91
87
92
return ;
You can’t perform that action at this time.
0 commit comments