提交 aa204b03 编写于 作者: J Johannes Rieken

fix - keep webview alive when scrolling

上级 8246c164
......@@ -312,7 +312,7 @@ export class CodeInsetController implements editorCommon.IEditorContribution {
const widgetPromises = widgetRequests.map(request => {
const symbol = request.symbol;
if (typeof request.provider.resolveCodeInset === 'function') {
if (!symbol.webviewHandle && typeof request.provider.resolveCodeInset === 'function') {
const mainThreadWebviews = this.getWebviewService();
symbol.webviewHandle = insetWidgets[r].createWebview(mainThreadWebviews, request.provider.extensionLocation);
return request.provider.resolveCodeInset(model, symbol, token);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册