Как выделить строку editorError в редакторе - PullRequest
0 голосов
/ 26 сентября 2019

Существует возможность создания моей собственной темы в monaco-editor.

Но как я могу изменить стиль ошибки подчеркивания для выделения всей строки?

"monaco-editor":"^ 0.18.1",

monaco.editor.defineTheme('myCustomTheme', {
            base: 'vs-dark', // can also be vs-dark or hc-black
            inherit: true, // can also be false to completely replace the builtin rules
            rules: [
                { token: 'error', fontStyle: 'bold' },
                // { token: 'comment', foreground: 'ffa500', fontStyle: 'italic underline' },
                // { token: 'comment.js', foreground: '008800', fontStyle: 'bold' },
                // { token: 'comment.css', foreground: '0000ff' } // will inherit fontStyle from `comment` above
            ],
            colors: {
                'editorError.border': '2px solid red',
                'editorError.foreground': 'blue',
                errorForeground: 'red',
                'inputValidation.errorBackground': 'red',
            },
        });
...