File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ export class AceEditorWrapper implements EditorWrapper {
2828 replaceRange ( range : Ace . Range , text : string ) : void {
2929 if ( ! range ) return ;
3030
31- this . _editor ? .session . replace ( range , text ) ;
31+ this . _editor . session . replace ( range , text ) ;
3232 }
3333
3434 getSelectedText ( ) {
35- return this . _editor ? .getSelectedText ( ) || "" ;
35+ return this . _editor . getSelectedText ( ) || "" ;
3636 }
3737
3838 replaceAllSelectionRanges ( text : string ) : void {
@@ -52,14 +52,14 @@ export class AceEditorWrapper implements EditorWrapper {
5252 }
5353
5454 getLanguage ( ) : LanguageName {
55- return this . _editor ? .getOption ( "mode" ) . split ( "/" ) . pop ( ) as LanguageName || LanguageName . TEXT ;
55+ return this . _editor . getOption ( "mode" ) . split ( "/" ) . pop ( ) as LanguageName || LanguageName . TEXT ;
5656 }
5757
5858 getTextRange ( range : Ace . Range ) : string {
59- return this . _editor ? .session . getTextRange ( range ) || "" ;
59+ return this . _editor . session . getTextRange ( range ) || "" ;
6060 }
6161
6262 getValue ( ) : string {
63- return this . _editor ? .session . getValue ( ) ;
63+ return this . _editor . session . getValue ( ) ;
6464 }
6565}
You can’t perform that action at this time.
0 commit comments