Aadd messge when getting started empty

closes #119496
This commit is contained in:
Jackson Kearl 2021-03-24 14:59:02 -07:00
parent d115bb2a97
commit c45540033a
No known key found for this signature in database
GPG key ID: DA09A59C409FC400
2 changed files with 20 additions and 2 deletions

View file

@ -175,13 +175,20 @@
}
.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlide.categories .getting-started-categories-container {
/* display: flex;
flex-wrap: wrap; */
justify-content: center;
max-width: 900px;
margin: 32px auto;
}
.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlide.categories .getting-started-categories-container .no-categories {
display: none;
}
.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlide.categories .getting-started-categories-container .no-categories:first-child {
display: block;
padding-left: 6px;
}
.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlide.categories .getting-started-categories-scrolling-container {
overflow: scroll;
height: 100%;

View file

@ -214,6 +214,10 @@ export class GettingStartedPage extends EditorPane {
this.commandService.executeCommand('workbench.action.openRecent');
break;
}
case 'configureVisibility': {
this.commandService.executeCommand('workbench.action.openSettings', hiddenEntriesConfigurationKey);
break;
}
case 'openFolder': {
this.commandService.executeCommand(isMacintosh ? 'workbench.action.files.openFileFolder' : 'workbench.action.files.openFolder');
break;
@ -403,6 +407,13 @@ export class GettingStartedPage extends EditorPane {
categoriesContainer.appendChild(element);
});
categoriesContainer.appendChild(
$('.no-categories', {},
localize('no categories', "No remaining walkthroughs."),
$('button.button-link', { 'x-dispatch': 'configureVisibility' }, localize('configure visiblity', "Configure visibility?")))
);
categoryScrollContainer.appendChild(categoriesContainer);
if (this.categoriesScrollbar) { this.categoriesScrollbar.dispose(); }