提交 1b8c3957 编写于 作者: B Benjamin Pasero

workaround for #52196

上级 a05419de
...@@ -212,7 +212,7 @@ class DecorationTypeOptionsProvider implements IModelDecorationOptionsProvider { ...@@ -212,7 +212,7 @@ class DecorationTypeOptionsProvider implements IModelDecorationOptionsProvider {
const _CSS_MAP: { [prop: string]: string; } = { const _CSS_MAP: { [prop: string]: string; } = {
color: 'color:{0} !important;', color: 'color:{0} !important;',
opacity: 'opacity:{0};', opacity: 'opacity:{0}; will-change: opacity;',
backgroundColor: 'background-color:{0};', backgroundColor: 'background-color:{0};',
outline: 'outline:{0};', outline: 'outline:{0};',
......
...@@ -1805,7 +1805,7 @@ registerThemingParticipant((theme, collector) => { ...@@ -1805,7 +1805,7 @@ registerThemingParticipant((theme, collector) => {
const unnecessaryForeground = theme.getColor(editorUnnecessaryCodeOpacity); const unnecessaryForeground = theme.getColor(editorUnnecessaryCodeOpacity);
if (unnecessaryForeground) { if (unnecessaryForeground) {
collector.addRule(`.${SHOW_UNUSED_ENABLED_CLASS} .monaco-editor .${ClassName.EditorUnnecessaryInlineDecoration} { opacity: ${unnecessaryForeground.rgba.a}; }`); collector.addRule(`.${SHOW_UNUSED_ENABLED_CLASS} .monaco-editor .${ClassName.EditorUnnecessaryInlineDecoration} { opacity: ${unnecessaryForeground.rgba.a}; will-change: opacity; }`);
} }
const unnecessaryBorder = theme.getColor(editorUnnecessaryCodeBorder); const unnecessaryBorder = theme.getColor(editorUnnecessaryCodeBorder);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册