Add a description field to decorations to be able to find leaks

This commit is contained in:
Alex Dima
2021-05-27 15:39:55 +02:00
parent a56fe2b397
commit f523f65f39
64 changed files with 171 additions and 78 deletions

View File

@@ -11,6 +11,7 @@ import { ExtHostTextEditor, TextEditorDecorationType } from 'vs/workbench/api/co
import * as TypeConverters from 'vs/workbench/api/common/extHostTypeConverters';
import { TextEditorSelectionChangeKind } from 'vs/workbench/api/common/extHostTypes';
import type * as vscode from 'vscode';
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
export class ExtHostEditors implements ExtHostEditorsShape {
@@ -91,8 +92,8 @@ export class ExtHostEditors implements ExtHostEditorsShape {
}
}
createTextEditorDecorationType(options: vscode.DecorationRenderOptions): vscode.TextEditorDecorationType {
return new TextEditorDecorationType(this._proxy, options).value;
createTextEditorDecorationType(extension: IExtensionDescription, options: vscode.DecorationRenderOptions): vscode.TextEditorDecorationType {
return new TextEditorDecorationType(this._proxy, extension, options).value;
}
// --- called from main thread