@@ -16,7 +16,7 @@ import { ViewController } from 'vs/editor/browser/view/viewController';
1616import { PartFingerprint , PartFingerprints , ViewPart } from 'vs/editor/browser/view/viewPart' ;
1717import { LineNumbersOverlay } from 'vs/editor/browser/viewParts/lineNumbers/lineNumbers' ;
1818import { Margin } from 'vs/editor/browser/viewParts/margin/margin' ;
19- import { RenderLineNumbersType , EditorOptionId } from 'vs/editor/common/config/editorOptions' ;
19+ import { RenderLineNumbersType , EditorOption } from 'vs/editor/common/config/editorOptions' ;
2020import { BareFontInfo } from 'vs/editor/common/config/fontInfo' ;
2121import { WordCharacterClass , getMapForWordSeparators } from 'vs/editor/common/controller/wordCharacterClassifier' ;
2222import { Position } from 'vs/editor/common/core/position' ;
@@ -120,9 +120,9 @@ export class TextAreaHandler extends ViewPart {
120120
121121 const conf = this . _context . configuration . editor ;
122122 const options = this . _context . configuration . options ;
123- const layoutInfo = options . get ( EditorOptionId . layoutInfo ) ;
123+ const layoutInfo = options . get ( EditorOption . layoutInfo ) ;
124124
125- this . _accessibilitySupport = options . get ( EditorOptionId . accessibilitySupport ) ;
125+ this . _accessibilitySupport = options . get ( EditorOption . accessibilitySupport ) ;
126126 this . _contentLeft = layoutInfo . contentLeft ;
127127 this . _contentWidth = layoutInfo . contentWidth ;
128128 this . _contentHeight = layoutInfo . contentHeight ;
@@ -145,7 +145,7 @@ export class TextAreaHandler extends ViewPart {
145145 this . textArea . setAttribute ( 'autocapitalize' , 'off' ) ;
146146 this . textArea . setAttribute ( 'autocomplete' , 'off' ) ;
147147 this . textArea . setAttribute ( 'spellcheck' , 'false' ) ;
148- this . textArea . setAttribute ( 'aria-label' , options . get ( EditorOptionId . ariaLabel ) ) ;
148+ this . textArea . setAttribute ( 'aria-label' , options . get ( EditorOption . ariaLabel ) ) ;
149149 this . textArea . setAttribute ( 'role' , 'textbox' ) ;
150150 this . textArea . setAttribute ( 'aria-multiline' , 'true' ) ;
151151 this . textArea . setAttribute ( 'aria-haspopup' , 'false' ) ;
@@ -379,19 +379,19 @@ export class TextAreaHandler extends ViewPart {
379379 this . _fontInfo = conf . fontInfo ;
380380 }
381381 if ( e . viewInfo ) {
382- this . textArea . setAttribute ( 'aria-label' , options . get ( EditorOptionId . ariaLabel ) ) ;
382+ this . textArea . setAttribute ( 'aria-label' , options . get ( EditorOption . ariaLabel ) ) ;
383383 }
384- if ( e . hasChanged ( EditorOptionId . layoutInfo ) ) {
385- const layoutInfo = options . get ( EditorOptionId . layoutInfo ) ;
384+ if ( e . hasChanged ( EditorOption . layoutInfo ) ) {
385+ const layoutInfo = options . get ( EditorOption . layoutInfo ) ;
386386 this . _contentLeft = layoutInfo . contentLeft ;
387387 this . _contentWidth = layoutInfo . contentWidth ;
388388 this . _contentHeight = layoutInfo . contentHeight ;
389389 }
390390 if ( e . lineHeight ) {
391391 this . _lineHeight = conf . lineHeight ;
392392 }
393- if ( e . hasChanged ( EditorOptionId . accessibilitySupport ) ) {
394- this . _accessibilitySupport = options . get ( EditorOptionId . accessibilitySupport ) ;
393+ if ( e . hasChanged ( EditorOption . accessibilitySupport ) ) {
394+ this . _accessibilitySupport = options . get ( EditorOption . accessibilitySupport ) ;
395395 this . _textAreaInput . writeScreenReaderContent ( 'strategy changed' ) ;
396396 }
397397 if ( e . emptySelectionClipboard ) {
@@ -553,7 +553,7 @@ export class TextAreaHandler extends ViewPart {
553553 if ( this . _context . configuration . editor . viewInfo . glyphMargin ) {
554554 tac . setClassName ( 'monaco-editor-background textAreaCover ' + Margin . OUTER_CLASS_NAME ) ;
555555 } else {
556- const renderLineNumbers = options . get ( EditorOptionId . renderLineNumbers ) ;
556+ const renderLineNumbers = options . get ( EditorOption . renderLineNumbers ) ;
557557 if ( renderLineNumbers . renderType !== RenderLineNumbersType . Off ) {
558558 tac . setClassName ( 'monaco-editor-background textAreaCover ' + LineNumbersOverlay . CLASS_NAME ) ;
559559 } else {
0 commit comments