Add more logging for webview state parse failures

For #97503
This commit is contained in:
Matt Bierner 2020-06-01 20:06:01 -07:00
parent ce14facbe7
commit 9d856be662

View file

@ -280,8 +280,8 @@ export class MainThreadWebviews extends Disposable implements extHostProtocol.Ma
if (webviewInput.webview.state) {
try {
state = JSON.parse(webviewInput.webview.state);
} catch {
// noop
} catch (e) {
console.error('Could not load webview state', e, webviewInput.webview.state);
}
}