mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Rename IModel to ITextModel
This commit is contained in:
@@ -17,7 +17,7 @@ import { ExtHostContext, MainThreadDocumentsShape, ExtHostDocumentsShape, IExtHo
|
||||
import { ITextModelService } from 'vs/editor/common/services/resolverService';
|
||||
import { MainThreadDocumentsAndEditors } from './mainThreadDocumentsAndEditors';
|
||||
import { ITextEditorModel } from 'vs/workbench/common/editor';
|
||||
import { IModel } from 'vs/editor/common/model/model';
|
||||
import { ITextModel } from 'vs/editor/common/model';
|
||||
|
||||
export class BoundModelReferenceCollection {
|
||||
|
||||
@@ -134,7 +134,7 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
|
||||
return model && !model.isTooLargeForHavingARichMode();
|
||||
}
|
||||
|
||||
private _onModelAdded(model: IModel): void {
|
||||
private _onModelAdded(model: ITextModel): void {
|
||||
// Same filter as in mainThreadEditorsTracker
|
||||
if (model.isTooLargeForHavingARichMode()) {
|
||||
// don't synchronize too large models
|
||||
@@ -147,7 +147,7 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
|
||||
});
|
||||
}
|
||||
|
||||
private _onModelModeChanged(event: { model: IModel; oldModeId: string; }): void {
|
||||
private _onModelModeChanged(event: { model: ITextModel; oldModeId: string; }): void {
|
||||
let { model, oldModeId } = event;
|
||||
let modelUrl = model.uri;
|
||||
if (!this._modelIsSynced[modelUrl.toString()]) {
|
||||
|
||||
Reference in New Issue
Block a user