提交 09ac3c5d 编写于 作者: M Matt Bierner

Marking some more editor interface fields readonly

上级 b7b1088b
......@@ -39,7 +39,7 @@ export interface ITextEditorModel extends IEditorModel {
/**
* Provides access to the underlying `ITextModel`.
*/
textEditorModel: ITextModel;
readonly textEditorModel: ITextModel;
isReadonly(): boolean;
}
......@@ -11,7 +11,7 @@ export interface IEditorModel {
/**
* Emitted when the model is disposed.
*/
onDispose: Event<void>;
readonly onDispose: Event<void>;
/**
* Loads the model.
......@@ -34,12 +34,12 @@ export interface IBaseResourceInput {
/**
* Label to show for the diff editor
*/
label?: string;
readonly label?: string;
/**
* Description to show for the diff editor
*/
description?: string;
readonly description?: string;
/**
* Hint to indicate that this input should be treated as a file
......@@ -48,7 +48,7 @@ export interface IBaseResourceInput {
* Without this hint, the editor service will make a guess by
* looking at the scheme of the resource(s).
*/
forceFile?: boolean;
readonly forceFile?: boolean;
}
export interface IResourceInput extends IBaseResourceInput {
......@@ -61,7 +61,7 @@ export interface IResourceInput extends IBaseResourceInput {
/**
* The encoding of the text input if known.
*/
encoding?: string;
readonly encoding?: string;
}
export interface IEditorOptions {
......@@ -112,10 +112,10 @@ export interface IEditorOptions {
}
export interface ITextEditorSelection {
startLineNumber: number;
startColumn: number;
endLineNumber?: number;
endColumn?: number;
readonly startLineNumber: number;
readonly startColumn: number;
readonly endLineNumber?: number;
readonly endColumn?: number;
}
export interface ITextEditorOptions extends IEditorOptions {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册