Skip to content

Commit

Permalink
tree horizontal scrolling: wrap up debug hover and repl
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Jan 25, 2019
1 parent 0ed567b commit 63fc2e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/vs/workbench/parts/debug/browser/media/debugHover.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

.monaco-editor .debug-hover-widget .debug-hover-tree .monaco-list-row .monaco-tl-contents {
user-select: text;
white-space: pre;
}

/* Disable tree highlight in debug hover tree. */
Expand All @@ -60,6 +59,10 @@
max-height: 500px;
}

.monaco-editor .debug-hover-widget .monaco-tl-contents .value {
white-space: nowrap;
}

.monaco-editor .debug-hover-widget .error {
color: #E51400;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class DebugHoverWidget implements IContentWidget {
private layoutTreeAndContainer(): void {
const treeHeight = Math.min(MAX_TREE_HEIGHT, this.tree.visibleNodeCount * 18);
this.treeContainer.style.height = `${treeHeight}px`;
this.tree.layout(treeHeight);
this.tree.layout(treeHeight, 324);
}

hide(): void {
Expand Down
3 changes: 2 additions & 1 deletion src/vs/workbench/parts/debug/electron-browser/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
accessibilityProvider: new ReplAccessibilityProvider(),
identityProvider: { getId: element => element.getId() },
mouseSupport: false,
keyboardNavigationLabelProvider: { getKeyboardNavigationLabel: e => e }
keyboardNavigationLabelProvider: { getKeyboardNavigationLabel: e => e },
horizontalScrolling: false
}, this.contextKeyService, this.listService, this.themeService, this.configurationService, this.keybindingService);

this.toDispose.push(this.tree.onContextMenu(e => this.onContextMenu(e)));
Expand Down

0 comments on commit 63fc2e0

Please sign in to comment.