Skip to content

Commit 982a719

Browse files
author
Benjamin Pasero
committed
Let read-only editors show problems (fixes microsoft#89057)
1 parent 2fc7c60 commit 982a719

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/vs/workbench/browser/parts/editor/textEditor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ export abstract class BaseTextEditor extends BaseEditor implements ITextEditor {
109109
overviewRulerLanes: 3,
110110
lineNumbersMinChars: 3,
111111
fixedOverflowWidgets: true,
112-
readOnly: this.input?.isReadonly()
112+
readOnly: this.input?.isReadonly(),
113+
// render problems even in readonly editors
114+
// https://github.com/microsoft/vscode/issues/89057
115+
renderValidationDecorations: 'on'
113116
};
114117
}
115118

src/vs/workbench/contrib/output/browser/logViewer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class LogViewer extends AbstractTextResourceEditor {
6363
options.wordWrap = 'off'; // all log viewers do not wrap
6464
options.folding = false;
6565
options.scrollBeyondLastLine = false;
66+
options.renderValidationDecorations = 'editable';
6667
return options;
6768
}
6869
}

src/vs/workbench/contrib/output/browser/outputPanel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export class OutputPanel extends AbstractTextResourceEditor {
9595
options.scrollBeyondLastLine = false;
9696
options.renderLineHighlight = 'none';
9797
options.minimap = { enabled: false };
98+
options.renderValidationDecorations = 'editable';
9899

99100
const outputConfig = this.configurationService.getValue<any>('[Log]');
100101
if (outputConfig) {

src/vs/workbench/contrib/preferences/browser/preferencesEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ export class DefaultPreferencesEditor extends BaseTextEditor {
10211021
options.minimap = {
10221022
enabled: false
10231023
};
1024+
options.renderValidationDecorations = 'editable';
10241025
}
10251026
return options;
10261027
}

0 commit comments

Comments
 (0)