Skip to content

Prevent closing webview if the user didn't save the changes #242335

Closed
@bk201-

Description

@bk201-

Hi, I'm a developer of Azure CosmosDB extension.

Using extension the user can edit cosmosdb documents in webview tab. However, webview doesn't have onBeforeUnload event or similar functionality to prevent closing webview when the user edited the document, if the user close webview tab it always closes without any prompt like confirmation dialog for unsaved document.

This would be useful if vscode provides functionality to prevent closing webview.

Metadata

Metadata

Assignees

Labels

webviewWebview issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions