Green squiggles are missing for Information diagnostics on the Insiders build. Fixes #38829
This commit is contained in:
parent
caf80525c2
commit
c64dd6ae57
1 changed files with 9 additions and 8 deletions
|
@ -31,6 +31,7 @@ import { IThemeService, registerThemingParticipant } from 'vs/platform/theme/com
|
||||||
import { editorErrorForeground, editorErrorBorder, editorWarningForeground, editorWarningBorder, editorInfoBorder, editorInfoForeground } from 'vs/editor/common/view/editorColorRegistry';
|
import { editorErrorForeground, editorErrorBorder, editorWarningForeground, editorWarningBorder, editorInfoBorder, editorInfoForeground } from 'vs/editor/common/view/editorColorRegistry';
|
||||||
import { Color } from 'vs/base/common/color';
|
import { Color } from 'vs/base/common/color';
|
||||||
import { IMouseEvent } from 'vs/base/browser/mouseEvent';
|
import { IMouseEvent } from 'vs/base/browser/mouseEvent';
|
||||||
|
import { ClassName } from 'vs/editor/common/model/intervalTree';
|
||||||
|
|
||||||
export abstract class CodeEditorWidget extends CommonCodeEditor implements editorBrowser.ICodeEditor {
|
export abstract class CodeEditorWidget extends CommonCodeEditor implements editorBrowser.ICodeEditor {
|
||||||
|
|
||||||
|
@ -477,28 +478,28 @@ function getSquigglySVGData(color: Color) {
|
||||||
registerThemingParticipant((theme, collector) => {
|
registerThemingParticipant((theme, collector) => {
|
||||||
let errorBorderColor = theme.getColor(editorErrorBorder);
|
let errorBorderColor = theme.getColor(editorErrorBorder);
|
||||||
if (errorBorderColor) {
|
if (errorBorderColor) {
|
||||||
collector.addRule(`.monaco-editor .squiggly-c-error { border-bottom: 4px double ${errorBorderColor}; }`);
|
collector.addRule(`.monaco-editor .${ClassName.EditorErrorDecoration} { border-bottom: 4px double ${errorBorderColor}; }`);
|
||||||
}
|
}
|
||||||
let errorForeground = theme.getColor(editorErrorForeground);
|
let errorForeground = theme.getColor(editorErrorForeground);
|
||||||
if (errorForeground) {
|
if (errorForeground) {
|
||||||
collector.addRule(`.monaco-editor .squiggly-c-error { background: url("data:image/svg+xml;utf8,${getSquigglySVGData(errorForeground)}") repeat-x bottom left; }`);
|
collector.addRule(`.monaco-editor .${ClassName.EditorErrorDecoration} { background: url("data:image/svg+xml;utf8,${getSquigglySVGData(errorForeground)}") repeat-x bottom left; }`);
|
||||||
}
|
}
|
||||||
|
|
||||||
let warningBorderColor = theme.getColor(editorWarningBorder);
|
let warningBorderColor = theme.getColor(editorWarningBorder);
|
||||||
if (warningBorderColor) {
|
if (warningBorderColor) {
|
||||||
collector.addRule(`.monaco-editor .squiggly-b-warning { border-bottom: 4px double ${warningBorderColor}; }`);
|
collector.addRule(`.monaco-editor .${ClassName.EditorWarningDecoration} { border-bottom: 4px double ${warningBorderColor}; }`);
|
||||||
}
|
}
|
||||||
let warningForeground = theme.getColor(editorWarningForeground);
|
let warningForeground = theme.getColor(editorWarningForeground);
|
||||||
if (warningForeground) {
|
if (warningForeground) {
|
||||||
collector.addRule(`.monaco-editor .squiggly-b-warning { background: url("data:image/svg+xml;utf8,${getSquigglySVGData(warningForeground)}") repeat-x bottom left; }`);
|
collector.addRule(`.monaco-editor .${ClassName.EditorWarningDecoration} { background: url("data:image/svg+xml;utf8,${getSquigglySVGData(warningForeground)}") repeat-x bottom left; }`);
|
||||||
}
|
}
|
||||||
|
|
||||||
let infoBorderColor = theme.getColor(editorInfoBorder);
|
let infoBorderColor = theme.getColor(editorInfoBorder);
|
||||||
if (warningBorderColor) {
|
if (infoBorderColor) {
|
||||||
collector.addRule(`.monaco-editor .squiggly-c-info { border-bottom: 4px double ${infoBorderColor}; }`);
|
collector.addRule(`.monaco-editor .${ClassName.EditorInfoDecoration} { border-bottom: 4px double ${infoBorderColor}; }`);
|
||||||
}
|
}
|
||||||
let infoForeground = theme.getColor(editorInfoForeground);
|
let infoForeground = theme.getColor(editorInfoForeground);
|
||||||
if (warningForeground) {
|
if (infoForeground) {
|
||||||
collector.addRule(`.monaco-editor .squiggly-c-info { background: url("data:image/svg+xml;utf8,${getSquigglySVGData(infoForeground)}") repeat-x bottom left; }`);
|
collector.addRule(`.monaco-editor .${ClassName.EditorInfoDecoration} { background: url("data:image/svg+xml;utf8,${getSquigglySVGData(infoForeground)}") repeat-x bottom left; }`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue