@@ -11,7 +11,7 @@ export interface IEditorModel {
1111 /**
1212 * Emitted when the model is disposed.
1313 */
14- onDispose : Event < void > ;
14+ readonly onDispose : Event < void > ;
1515
1616 /**
1717 * Loads the model.
@@ -34,12 +34,12 @@ export interface IBaseResourceInput {
3434 /**
3535 * Label to show for the diff editor
3636 */
37- label ?: string ;
37+ readonly label ?: string ;
3838
3939 /**
4040 * Description to show for the diff editor
4141 */
42- description ?: string ;
42+ readonly description ?: string ;
4343
4444 /**
4545 * Hint to indicate that this input should be treated as a file
@@ -48,7 +48,7 @@ export interface IBaseResourceInput {
4848 * Without this hint, the editor service will make a guess by
4949 * looking at the scheme of the resource(s).
5050 */
51- forceFile ?: boolean ;
51+ readonly forceFile ?: boolean ;
5252}
5353
5454export interface IResourceInput extends IBaseResourceInput {
@@ -61,7 +61,7 @@ export interface IResourceInput extends IBaseResourceInput {
6161 /**
6262 * The encoding of the text input if known.
6363 */
64- encoding ?: string ;
64+ readonly encoding ?: string ;
6565}
6666
6767export interface IEditorOptions {
@@ -112,10 +112,10 @@ export interface IEditorOptions {
112112}
113113
114114export interface ITextEditorSelection {
115- startLineNumber : number ;
116- startColumn : number ;
117- endLineNumber ?: number ;
118- endColumn ?: number ;
115+ readonly startLineNumber : number ;
116+ readonly startColumn : number ;
117+ readonly endLineNumber ?: number ;
118+ readonly endColumn ?: number ;
119119}
120120
121121export interface ITextEditorOptions extends IEditorOptions {
0 commit comments