letisReadonly=!isUntitled;// all string editors are readonly except for the untitled one
constisReadonly=!isUntitled;// all string editors are readonly except for the untitled one
options.readOnly=isReadonly;
options.readOnly=isReadonly;
letariaLabel:string;
letariaLabel:string;
letinputName=input&&input.getName();
constinputName=input&&input.getName();
if(isReadonly){
if(isReadonly){
ariaLabel=inputName?nls.localize('readonlyEditorWithInputAriaLabel',"{0}. Readonly text editor.",inputName):nls.localize('readonlyEditorAriaLabel',"Readonly text editor.");
ariaLabel=inputName?nls.localize('readonlyEditorWithInputAriaLabel',"{0}. Readonly text editor.",inputName):nls.localize('readonlyEditorAriaLabel',"Readonly text editor.");
}else{
}else{
...
@@ -157,12 +157,12 @@ export class StringEditor extends BaseTextEditor {
...
@@ -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
* 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 {
...
@@ -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
// 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.");
ariaLabel=inputName?nls.localize('readonlyEditorWithInputAriaLabel',"{0}. Readonly text compare editor.",inputName):nls.localize('readonlyEditorAriaLabel',"Readonly text compare editor.");
}else{
}else{
...
@@ -236,7 +236,7 @@ export class TextDiffEditor extends BaseTextEditor {
...
@@ -236,7 +236,7 @@ export class TextDiffEditor extends BaseTextEditor {