Skip to content

Commit ae95c24

Browse files
committed
debug: error editor same style as binary editor
microsoft#9062
1 parent 6cb1643 commit ae95c24

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/vs/workbench/parts/debug/browser/debugErrorEditor.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ export class DebugErrorEditor extends BaseEditor {
2121
}
2222

2323
public createEditor(parent: Builder): void {
24-
this.container = dom.append(parent.getHTMLElement(), $('.'));
25-
this.container.style.paddingLeft = '20px';
24+
this.container = dom.append(parent.getHTMLElement(), $('.debug-error-editor'));
2625
}
2726

2827
public layout(dimension: Dimension): void {
29-
// we take the padding we set on create into account
30-
this.container.style.width = `${Math.max(dimension.width - 20, 0)}px`;
28+
this.container.style.width = `${dimension.width}px`;
3129
this.container.style.height = `${dimension.height}px`;
3230
}
3331

src/vs/workbench/parts/debug/browser/media/debug.contribution.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@
7171
background: #CC6633 !important;
7272
}
7373

74+
/* Error editor */
75+
.debug-error-editor:focus {
76+
outline: none !important;
77+
}
78+
79+
.debug-error-editor {
80+
padding: 5px 0 0 10px;
81+
box-sizing: border-box;
82+
}
83+
7484
/* Actionbar actions */
7585

7686
.monaco-workbench .debug-action.step-over,

0 commit comments

Comments
 (0)