File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/vs/editor/browser/widget Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { EditorOption } from 'vs/editor/common/config/editorOptions';
1616import { Codicon } from 'vs/base/common/codicons' ;
1717import { ThemeIcon } from 'vs/base/common/themables' ;
1818import { EndOfLineSequence , ITextModel } from 'vs/editor/common/model' ;
19+ import { isIOS } from 'vs/base/common/platform' ;
1920
2021export interface IDiffLinesChange {
2122 readonly originalStartLineNumber : number ;
@@ -145,8 +146,11 @@ export class InlineDiffMargin extends Disposable {
145146 } ) ) ;
146147 }
147148
149+ const useShadowDOM = editor . getOption ( EditorOption . useShadowDOM ) && ! isIOS ; // Do not use shadow dom on IOS #122035
150+
148151 const showContextMenu = ( x : number , y : number ) => {
149152 this . _contextMenuService . showContextMenu ( {
153+ domForShadowRoot : useShadowDOM ? editor . getDomNode ( ) ?? undefined : undefined ,
150154 getAnchor : ( ) => {
151155 return {
152156 x,
You can’t perform that action at this time.
0 commit comments