File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
notebook/browser/view/renderers Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1281,7 +1281,6 @@ ${formatRule(Codicon.menuSubmenu)}
1281
1281
.monaco-menu .monaco-action-bar.vertical .keybinding {
1282
1282
font-size: inherit;
1283
1283
padding: 0 2em;
1284
- overflow: hidden;
1285
1284
max-height: 100%;
1286
1285
}
1287
1286
Original file line number Diff line number Diff line change @@ -587,14 +587,14 @@ async function webviewPreloads(ctx: PreloadContext) {
587
587
}
588
588
589
589
if ( node . hasAttribute ( 'recentlyScrolled' ) ) {
590
- if ( lastTimeScrolled && Date . now ( ) - lastTimeScrolled > 300 ) {
590
+ if ( lastTimeScrolled && Date . now ( ) - lastTimeScrolled > 400 ) {
591
591
// it has been a while since we actually scrolled
592
- // if scroll velocity increases, it's likely a new scroll event
593
- if ( ! ! previousDelta && deltaY < 0 && deltaY < previousDelta - 2 ) {
592
+ // if scroll velocity increases significantly , it's likely a new scroll event
593
+ if ( ! ! previousDelta && deltaY < 0 && deltaY < previousDelta - 8 ) {
594
594
clearTimeout ( scrollTimeout ) ;
595
595
scrolledElement ?. removeAttribute ( 'recentlyScrolled' ) ;
596
596
return false ;
597
- } else if ( ! ! previousDelta && deltaY > 0 && deltaY > previousDelta + 2 ) {
597
+ } else if ( ! ! previousDelta && deltaY > 0 && deltaY > previousDelta + 8 ) {
598
598
clearTimeout ( scrollTimeout ) ;
599
599
scrolledElement ?. removeAttribute ( 'recentlyScrolled' ) ;
600
600
return false ;
Original file line number Diff line number Diff line change @@ -975,7 +975,13 @@ class MultiRunTestDecoration extends RunTestDecoration implements ITestDecoratio
975
975
let testSubmenus : IAction [ ] = testItems . map ( ( { currentLabel, testItem } ) => {
976
976
const actions = this . getTestContextMenuActions ( testItem . test , testItem . resultItem ) ;
977
977
disposable . add ( actions ) ;
978
- return new SubmenuAction ( testItem . test . item . extId , stripIcons ( currentLabel ) , actions . object ) ;
978
+ let label = stripIcons ( currentLabel ) ;
979
+ const lf = label . indexOf ( '\n' ) ;
980
+ if ( lf !== - 1 ) {
981
+ label = label . slice ( 0 , lf ) ;
982
+ }
983
+
984
+ return new SubmenuAction ( testItem . test . item . extId , label , actions . object ) ;
979
985
} ) ;
980
986
981
987
You can’t perform that action at this time.
0 commit comments