Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/sessions/browser/parts/editorParts.ts
13394 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import './media/editorPart.css';
7
import { InstantiationType, registerSingleton } from '../../../platform/instantiation/common/extensions.js';
8
import { EditorParts as EditorPartsBase } from '../../../workbench/browser/parts/editor/editorParts.js';
9
import { IEditorGroupsService } from '../../../workbench/services/editor/common/editorGroupsService.js';
10
import { MainEditorPart } from './editorPart.js';
11
12
export class EditorParts extends EditorPartsBase {
13
protected override createMainEditorPart(): MainEditorPart {
14
return this.instantiationService.createInstance(MainEditorPart, this);
15
}
16
}
17
18
registerSingleton(IEditorGroupsService, EditorParts, InstantiationType.Eager);
19
20