mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
24 lines
976 B
TypeScript
24 lines
976 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
import { BaseTextEditorModel } from 'vs/workbench/common/editor/textEditorModel';
|
|
import URI from 'vs/base/common/uri';
|
|
import { IModeService } from 'vs/editor/common/services/modeService';
|
|
import { IModelService } from 'vs/editor/common/services/modelService';
|
|
|
|
/**
|
|
* An editor model whith an in-memory, readonly content that is backed by an existing editor model.
|
|
*/
|
|
export class ResourceEditorModel extends BaseTextEditorModel {
|
|
|
|
constructor(
|
|
resource: URI,
|
|
@IModeService modeService: IModeService,
|
|
@IModelService modelService: IModelService
|
|
) {
|
|
super(modelService, modeService, resource);
|
|
}
|
|
} |