mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 22:42:35 +01:00
The TestTextFileEditor doesn't use editor contribution anymore.
This is because not every test disposes its code editors correctly and leaking contributions (like the `FoldingController`) have weird side-effects (still listening etc). Also, tests at the workbench level don't need editor contribution and editor construction is faster without them fyi @bpasero
This commit is contained in:
@@ -194,7 +194,7 @@ export class TestTextResourceEditor extends TextResourceEditor {
|
||||
export class TestTextFileEditor extends TextFileEditor {
|
||||
|
||||
protected override createEditorControl(parent: HTMLElement, configuration: any): void {
|
||||
this.editorControl = this.instantiationService.createInstance(TestCodeEditor, parent, configuration, {});
|
||||
this.editorControl = this.instantiationService.createInstance(TestCodeEditor, parent, configuration, { contributions: [] });
|
||||
}
|
||||
|
||||
setSelection(selection: Selection | undefined, reason: EditorPaneSelectionChangeReason): void {
|
||||
|
||||
Reference in New Issue
Block a user