@@ -23,7 +23,8 @@ import { IContextViewDelegate, IContextViewService } from 'vs/platform/contextvi
23
23
import { IInstantiationService , createDecorator } from 'vs/platform/instantiation/common/instantiation' ;
24
24
import { IOpenerService } from 'vs/platform/opener/common/opener' ;
25
25
import { alert } from 'vs/base/browser/ui/aria/aria' ;
26
- import { IEditorOptions } from 'vs/editor/common/config/editorOptions' ;
26
+ import { getSimpleEditorOptions } from 'vs/workbench/contrib/codeEditor/browser/simpleEditorOptions' ;
27
+ import { SelectionClipboardContributionID } from 'vs/workbench/contrib/codeEditor/browser/selectionClipboard' ;
27
28
28
29
const enum DEFAULT {
29
30
WIDTH = 800 ,
@@ -79,7 +80,7 @@ class AccessibleView extends Disposable {
79
80
this . _editorContainer = document . createElement ( 'div' ) ;
80
81
this . _editorContainer . classList . add ( 'accessible-view' ) ;
81
82
const codeEditorWidgetOptions : ICodeEditorWidgetOptions = {
82
- contributions : EditorExtensionsRegistry . getSomeEditorContributions ( [ LinkDetector . ID , 'editor.contrib.selectionClipboard' , 'editor.contrib.selectionAnchorController' ] )
83
+ contributions : EditorExtensionsRegistry . getSomeEditorContributions ( [ LinkDetector . ID , SelectionClipboardContributionID , 'editor.contrib.selectionAnchorController' ] )
83
84
} ;
84
85
const editorOptions : IEditorConstructionOptions = {
85
86
...getSimpleEditorOptions ( this . _configurationService ) ,
@@ -226,34 +227,3 @@ export class AccessibleViewService extends Disposable implements IAccessibleView
226
227
this . _accessibleView . show ( provider ) ;
227
228
}
228
229
}
229
- function getSimpleEditorOptions ( configurationService : IConfigurationService ) : IEditorOptions {
230
- return {
231
- wordWrap : 'on' ,
232
- overviewRulerLanes : 0 ,
233
- glyphMargin : false ,
234
- lineNumbers : 'off' ,
235
- folding : false ,
236
- selectOnLineNumbers : false ,
237
- hideCursorInOverviewRuler : true ,
238
- selectionHighlight : false ,
239
- scrollbar : {
240
- horizontal : 'hidden'
241
- } ,
242
- lineDecorationsWidth : 0 ,
243
- overviewRulerBorder : false ,
244
- scrollBeyondLastLine : false ,
245
- renderLineHighlight : 'none' ,
246
- fixedOverflowWidgets : true ,
247
- acceptSuggestionOnEnter : 'smart' ,
248
- dragAndDrop : false ,
249
- revealHorizontalRightPadding : 5 ,
250
- minimap : {
251
- enabled : false
252
- } ,
253
- guides : {
254
- indentation : false
255
- } ,
256
- accessibilitySupport : configurationService . getValue < 'auto' | 'off' | 'on' > ( 'editor.accessibilitySupport' ) ,
257
- cursorBlinking : configurationService . getValue < 'blink' | 'smooth' | 'phase' | 'expand' | 'solid' > ( 'editor.cursorBlinking' )
258
- } ;
259
- }
0 commit comments