Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f91d7f

Browse files
committed
prevent multiple versions of cr open
1 parent3a15481 commit8f91d7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/editor/ReactWebView.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,12 @@ class ReactWebView {
8181
})
8282
// If we already have a panel, show it.
8383
// Otherwise, create a new panel.
84+
8485
if(this.panel&&this.panel.webview){
85-
this.panel.reveal(vscode.ViewColumn.Two)
86+
if(!this.loaded){
87+
this.panel.reveal(vscode.ViewColumn.Two)
88+
this.loaded=true
89+
}
8690
}else{
8791
this.panel=this.createWebviewPanel()
8892
}
@@ -106,6 +110,7 @@ class ReactWebView {
106110
// prevents destroying the window when it is in the background
107111
retainContextWhenHidden:true,
108112
}
113+
this.loaded=true
109114
returnvscode.window.createWebviewPanel(viewType,title,vscode.ViewColumn.Two,config)
110115
}
111116

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp