constnlsScreenReaderDetectedTitle=nls.localize('screenReaderDetectedExtra',"If you are not using a Screen Reader, please change the setting `editor.accessibilitySupport` to \"off\".");
classStatusBarItem{
private_showing=true;
...
...
@@ -248,15 +289,15 @@ class StatusBarItem {
this.element.title=title;
}
publicsettextContent(value:string){
settextContent(value:string){
this.element.textContent=value;
}
publicsetonclick(value:()=>void){
setonclick(value:()=>void){
this.element.onclick=value;
}
publicsetVisible(shouldShow:boolean):void{
setVisible(shouldShow:boolean):void{
if(shouldShow!==this._showing){
this._showing=shouldShow;
this.element.style.display=shouldShow?'':'none';
...
...
@@ -264,7 +305,6 @@ class StatusBarItem {
}
}
exportclassEditorStatusimplementsIStatusbarItem{
privatestate:State;
privateelement:HTMLElement;
...
...
@@ -661,7 +701,7 @@ export class EditorStatus implements IStatusbarItem {
returnmodeService.createByFilepathOrFirstLine(this.resource.fsPath,firstLineText);// lookup mode via resource path if the provided modeId is unspecific
@@ -75,7 +79,7 @@ class FileServiceProvider extends Disposable {
}
}
suite('Editor service',()=>{
suite('EditorService',()=>{
functionregisterTestEditorInput():void{
Registry.as<IEditorRegistry>(Extensions.Editors).registerEditor(newEditorDescriptor(TestEditorControl,'MyTestEditorForEditorService','My Test Editor For Next Editor Service'),newSyncDescriptor(TestEditorInput));