Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rapidly updating TextDocumentContentProvider causes the previewHtml window to break #20122

Closed
spacehamster opened this issue Feb 7, 2017 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug webview Webview issues

Comments

@spacehamster
Copy link

  • VSCode Version: 1.9.0
  • OS Version: Windows 10

Steps to Reproduce:
Creating a TextDocumentContentProvider and having it emit an onDidChange event on every vscode.workspace.onDidChangeTextDocument event causes the following exceptions in the preview webview after a few keystrokes:
webview.ts:94[Embedded Page] Uncaught TypeError: Cannot read property 'scrollTop' of null
webview.ts:94[Embedded Page] Uncaught TypeError: Cannot read property 'setAttribute' of null

The preview window will stop displaying updated content until it is closed and reopened.

@mjbvz mjbvz self-assigned this Feb 7, 2017
@mjbvz mjbvz added webview Webview issues bug Issue identified by VS Code Team member as probable bug labels Feb 7, 2017
@mjbvz mjbvz closed this as completed in 4e745c2 Feb 7, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug webview Webview issues
Projects
None yet
Development

No branches or pull requests

2 participants