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';
16
16
import { Codicon } from 'vs/base/common/codicons' ;
17
17
import { ThemeIcon } from 'vs/base/common/themables' ;
18
18
import { EndOfLineSequence , ITextModel } from 'vs/editor/common/model' ;
19
+ import { isIOS } from 'vs/base/common/platform' ;
19
20
20
21
export interface IDiffLinesChange {
21
22
readonly originalStartLineNumber : number ;
@@ -145,8 +146,11 @@ export class InlineDiffMargin extends Disposable {
145
146
} ) ) ;
146
147
}
147
148
149
+ const useShadowDOM = editor . getOption ( EditorOption . useShadowDOM ) && ! isIOS ; // Do not use shadow dom on IOS #122035
150
+
148
151
const showContextMenu = ( x : number , y : number ) => {
149
152
this . _contextMenuService . showContextMenu ( {
153
+ domForShadowRoot : useShadowDOM ? editor . getDomNode ( ) ?? undefined : undefined ,
150
154
getAnchor : ( ) => {
151
155
return {
152
156
x,
You can’t perform that action at this time.
0 commit comments