constisReadonly=!isUntitled;// all string editors are readonly except for the untitled one
options.readOnly=isReadonly;
letariaLabel:string;
letinputName=input&&input.getName();
constinputName=input&&input.getName();
if(isReadonly){
ariaLabel=inputName?nls.localize('readonlyEditorWithInputAriaLabel',"{0}. Readonly text editor.",inputName):nls.localize('readonlyEditorAriaLabel',"Readonly text editor.");
}else{
...
...
@@ -157,12 +157,12 @@ export class StringEditor extends BaseTextEditor {
* If smart reveal is true will only reveal the last line if the line before last is visible #3351
@@ -112,23 +112,23 @@ export class TextDiffEditor extends BaseTextEditor {
});
// Create a special child of instantiator that will delegate all calls to openEditor() to the same diff editor if the input matches with the modified one
ariaLabel=inputName?nls.localize('readonlyEditorWithInputAriaLabel',"{0}. Readonly text compare editor.",inputName):nls.localize('readonlyEditorAriaLabel',"Readonly text compare editor.");
}else{
...
...
@@ -236,7 +236,7 @@ export class TextDiffEditor extends BaseTextEditor {