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

Commitb119434

Browse files
committed
remove attempts to review webview
1 parentd71a7e5 commitb119434

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

‎src/editor/ReactWebView.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ReactWebView {
2323

2424
// Listen for when the panel is disposed
2525
// This happens when the user closes the panel or when the panel is closed programatically
26-
//this.panel.onDidDispose(() => this.dispose(), null, this.disposables)
26+
this.panel.onDidDispose(()=>this.dispose(),null,this.disposables)
2727

2828
// Handle messages from the webview
2929
constonReceive=(action:string|CR.Action)=>vscode.commands.executeCommand('coderoad.receive_action',action)
@@ -38,15 +38,6 @@ class ReactWebView {
3838
this.panel.reveal(vscode.ViewColumn.Two)
3939
}
4040

41-
this.panel.onDidDispose(()=>{
42-
updateWindows()
43-
})
44-
45-
// this.panel.onDidChangeViewState(() => {
46-
// console.log('onDidChangeViewState')
47-
// updateWindows()
48-
// })
49-
5041
// prevents new panels from going ontop of coderoad panel
5142
vscode.window.onDidChangeActiveTextEditor(param=>{
5243
if(!param||param.viewColumn!==vscode.ViewColumn.Two){
@@ -145,8 +136,8 @@ class ReactWebView {
145136
<link rel="stylesheet" type="text/css" href="${styleUri}">
146137
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; script-src 'nonce-${n1}' 'nonce-${n2}' 'nonce-${n3}'; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
147138
<base href="${vscode.Uri.file(path.join(this.extensionPath,'build')).with({
148-
scheme:'vscode-resource',
149-
})}/">
139+
scheme:'vscode-resource',
140+
})}/">
150141
<style></style>
151142
</head>
152143

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp