@codingame/monaco-vscode-walkthrough-service-override 11.1.2 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/multi-file-edits.svg +513 -0
- package/index.d.ts +2 -1
- package/index.js +19 -1
- package/package.json +24 -8
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +67 -66
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +153 -150
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +84 -32
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +3 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +41 -37
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +3 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +3 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +10 -8
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.d.ts +147 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +86 -83
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +43 -38
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +208 -165
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +7 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +7 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +6 -5
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +11 -8
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +6 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +34 -31
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +5 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +3 -2
- package/walkthrough.js +0 -18
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".file-icons-enabled .show-file-icons .vscode_getting_started_page-name-file-icon.file-icon:before{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik0xMDI0IDEwMjRIMFYwaDEwMjR2MTAyNHoiIHN0eWxlPSJmaWxsOiNmNmY2ZjY7ZmlsbC1vcGFjaXR5OjAiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTAyNCA4NS4zMzN2ODUzLjMzM0gwVjg1LjMzM2gxMDI0eiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0wIDg1LjMzM2gyOTguNjY3djg1My4zMzNIMFY4NS4zMzN6bTEwMjQgMHY4NTMuMzMzSDM4NFY4NS4zMzNoNjQwem0tNTU0LjY2NyAxNjBoMzQxLjMzM3YtNjRINDY5LjMzM3Y2NHptMzQxLjMzNCA1MzMuMzM0SDQ2OS4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0xMjgtMTQ5LjMzNEg1OTcuMzMzdjY0aDM0MS4zMzNsLjAwMS02NHptMC0xNDkuMzMzSDU5Ny4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0wLTE0OS4zMzNINTk3LjMzM3Y2NGgzNDEuMzMzbC4wMDEtNjR6IiBzdHlsZT0iZmlsbDojMTY3YWJmIi8+PC9zdmc+\");content:\" \"}.monaco-workbench .part.editor>.content .gettingStartedContainer{box-sizing:border-box;height:inherit;line-height:22px;outline:none;overflow:hidden;position:relative;user-select:auto;-webkit-user-select:initial;width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer.loading{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer img{max-height:100%;max-width:100%;object-fit:contain;pointer-events:none}.monaco-workbench .part.editor>.content .gettingStartedContainer{font-size:13px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStarted{height:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer h1{border:none;font-size:2.7em;font-weight:400;margin:0;padding:5px 0 0;white-space:nowrap}.monaco-workbench .part.editor>.content .gettingStartedContainer .title{flex:1 100%;margin-bottom:1em;margin-top:1em}.monaco-workbench .part.editor>.content .gettingStartedContainer .subtitle{display:block;font-size:2em;margin-top:.6em}.monaco-workbench.hc-black .part.editor>.content .gettingStartedContainer .subtitle,.monaco-workbench.hc-light .part.editor>.content .gettingStartedContainer .subtitle{font-weight:200}.monaco-workbench .part.editor>.content .gettingStartedContainer h2{font-size:1.5em;font-weight:400;line-height:normal;margin-bottom:5px;margin-top:0}.monaco-workbench .part.editor>.content .gettingStartedContainer a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide{box-sizing:border-box;height:100%;left:0;padding:0;position:absolute;top:0;width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories{padding:12px 24px}.monaco-workbench .part.editor>.content .gettingStartedContainer.animatable .gettingStartedSlide{transition:left .25s,opacity .25s}.monaco-workbench.reduce-motion .part.editor>.content .gettingStartedContainer .gettingStartedSlide,.monaco-workbench.reduce-motion .part.editor>.content .gettingStartedContainer.animatable .gettingStartedSlide{transition:left 0s,opacity 0s}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer{display:grid;grid-template-areas:\". header header header .\" \". left-column . right-column .\" \". footer footer footer .\";grid-template-columns:1fr 6fr 1fr 6fr 1fr;grid-template-rows:25% minmax(min-content,auto) min-content;height:100%;margin:0 auto;max-width:1200px}.monaco-workbench .part.editor>.content .gettingStartedContainer.width-constrained .gettingStartedSlideCategories>.gettingStartedCategoriesContainer{grid-template-areas:\"header\" \"left-column\" \"right-column\" \"footer\";grid-template-columns:1fr;grid-template-rows:auto min-content minmax(min-content,auto) min-content}.monaco-workbench .part.editor>.content .gettingStartedContainer.height-constrained .gettingStartedSlideCategories>.gettingStartedCategoriesContainer{grid-template-areas:\"header\" \"left-column right-column\" \"footer footer\";grid-template-rows:auto minmax(min-content,auto) min-content}.monaco-workbench .part.editor>.content .gettingStartedContainer.height-constrained.width-constrained .gettingStartedSlideCategories>.gettingStartedCategoriesContainer{grid-template-areas:\"left-column\" \"right-column\" \"footer\";grid-template-columns:1fr;grid-template-rows:min-content minmax(min-content,auto) min-content}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories li.showWalkthroughsEntry,.monaco-workbench .part.editor>.content .gettingStartedContainer.height-constrained .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.header,.monaco-workbench .part.editor>.content .gettingStartedContainer.width-constrained .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.header{display:none}.gettingStartedContainer.noExtensions,.monaco-workbench .part.editor>.content .gettingStartedContainer.noWalkthroughs .gettingStartedSlideCategories li.showWalkthroughsEntry{display:unset}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>*{overflow:hidden;text-overflow:ellipsis}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.categories-column>div{margin-bottom:32px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.categories-column-left{grid-area:left-column}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.categories-column-right{grid-area:right-column}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.header{align-self:end;grid-area:header}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.footer{grid-area:footer;justify-self:center;text-align:center}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .categories-slide-container{max-width:1200px;width:90%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .gap{flex:150px 0 1000}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .category-title{display:inline-block;font-size:14px;font-weight:500;margin:4px 0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .category-progress{bottom:0;left:0;position:absolute;width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category.no-progress{padding:3px 6px}.monaco-workbench .part.editor>.content .gettingStartedContainer .getting-started-category.no-progress .category-progress{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories ul{line-height:24px;list-style:none;margin:0;padding-left:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories li{list-style:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .path{padding-left:1em}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .featured-icon,.monaco-workbench .part.editor>.content .gettingStartedContainer .icon-widget{font-size:20px;padding-right:8px;position:relative;top:3px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .codicon:not(.icon-widget,.featured-icon,.hide-category-button){margin:0 2px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .codicon:first-child{margin-left:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .start-container img{max-height:16px;max-width:16px;padding-right:8px;position:relative;top:3px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .keybinding-label{padding-left:1em}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .progress-bar-outer{height:4px;margin-top:4px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .progress-bar-inner{height:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category{box-sizing:border-box;font-size:13px;line-height:normal;margin:8px 8px 8px 0;padding:3px 6px 6px;text-align:left;width:calc(100% - 16px)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .getting-started-category{border-radius:6px;overflow:hidden;position:relative}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .main-content{align-items:center;display:flex;justify-content:flex-start;width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .description-content{margin-left:28px;text-align:left}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .description-content>.codicon{font-size:16px;padding-right:1px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .description-content:not(:empty){margin-bottom:8px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .new-badge{align-self:flex-start;border-radius:4px;font-size:11px;justify-self:flex-end;margin:4px;padding:2px 4px;white-space:nowrap}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .featured-badge{left:-8px;position:relative;top:-4px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .featured{border-right:40px solid transparent;border-top:30px solid var(--vscode-activityBarBadge-background);box-sizing:border-box;height:20px;position:absolute;width:30px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .featured .featured-icon{font-size:14px;left:4px;top:-30px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .codicon.hide-category-button{margin-left:auto;right:8px;top:4px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category.featured .icon-widget{visibility:hidden}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .getting-started-category img.category-icon{max-height:20px;max-width:20px;padding-right:8px;position:relative;top:auto}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .getting-started-category img.featured-icon{border-radius:4px;max-height:24px;max-width:24px;padding-right:8px;position:relative;top:auto}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-category img.category-icon{margin-left:10px;margin-right:10px;max-height:32px;max-width:32px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails{display:flex;flex-direction:column;overflow:hidden}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gap{flex:150px 0 1000}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-category{display:flex;margin-bottom:24px;min-height:auto}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-columns .gap{flex:150px 1 1000}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.getting-started-category>.codicon-getting-started-setup{font-size:28px;margin-right:8px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-columns{display:flex;justify-content:flex-start;max-height:calc(100% - 40px);padding:40px 40px 0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step{border-radius:6px;display:flex;overflow:hidden;width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .button-container:not(:last-of-type){margin-bottom:6px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded{border:1px solid var(--vscode-welcomePage-tileBorder);cursor:default!important}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded h3{color:var(--vscode-walkthrough-stepTitle-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded>.codicon{cursor:pointer!important}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step:not(.expanded){background:none;color:var(--vscode-descriptionForeground);height:48px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step:not(.expanded):hover{background:var(--vscode-welcomePage-tileHoverBackground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step:not(.expanded) .step-title{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:inherit}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-title .codicon{position:relative;top:2px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-columns .getting-started-detail-left>div{width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step:not(.expanded) .step-description-container{visibility:hidden}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-container{width:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description{padding-top:8px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .actions{align-items:center;display:flex;margin-top:12px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .shortcut-message{color:var(--vscode-descriptionForeground);display:flex;font-size:12px;margin-top:12px;white-space:pre}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .shortcut-message .keybinding{font-weight:600}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .shortcut-message .monaco-keybinding>.monaco-keybinding-key{border-radius:2px;border-style:solid;border-width:1px;display:inline-block;font-size:10px;margin:0 2px;padding:2px 3px;vertical-align:top}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-next{margin-left:auto;margin-right:10px;padding:6px 12px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon.hidden{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon-getting-started-step-checked,.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon-getting-started-step-unchecked{margin-right:8px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step-action{font-size:13px;margin-bottom:0;padding:6px 12px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-left{display:flex;flex-direction:column;max-width:400px;min-width:330px;width:40%}.monaco-workbench .part.editor>.content .gettingStartedContainer .full-height-scrollable,.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-container{height:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent{display:grid;grid-template-areas:\". back . media .\" \". title . media .\" \". steps . media .\" \". . . media .\" \". footer footer footer .\";grid-template-columns:1fr 5fr 1fr 8fr;grid-template-rows:calc(25% - 100px) auto auto 1fr auto;height:100%;margin:0 auto;max-width:1200px;padding:0 32px}.monaco-workbench .part.editor>.content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent{grid-template-areas:\"back\" \"title\" \"steps\" \"media\" \"footer\";grid-template-columns:auto;grid-template-rows:30px max-content minmax(30%,max-content) minmax(30%,1fr) auto;max-width:500px;row-gap:4px}.monaco-workbench .part.editor>.content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.markdown{grid-template-rows:30px max-content minmax(30%,max-content) minmax(40%,1fr) auto}.monaco-workbench .part.editor>.content .gettingStartedContainer.width-semi-constrained.height-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent{grid-template-rows:0 max-content minmax(25%,max-content) minmax(25%,1fr) auto}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.prev-button{grid-area:back}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.getting-started-category{align-self:flex-end;grid-area:title}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.steps-container{grid-area:steps;height:100%}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.getting-started-media{align-self:center;grid-area:media}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent.markdown>.getting-started-media{height:inherit}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent.image>.getting-started-media{align-self:unset;display:flex;grid-area:title-start/media-start/steps-end/media-end;justify-content:center}.monaco-workbench .part.editor>.content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.image>.getting-started-media{display:flex;grid-area:media;height:inherit;justify-content:center;width:inherit}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.getting-started-footer{align-self:flex-end;grid-area:footer;justify-self:center;text-align:center}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-right{align-items:flex-start;display:flex;justify-content:center;max-width:800px;min-height:300px;min-width:400px;padding:0 0 20px 44px;width:66%}.monaco-workbench .part.editor>.content .gettingStartedContainer .index-list.getting-started .button-link{margin:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .index-list.getting-started .see-all-walkthroughs{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer.someWalkthroughsHidden .index-list.getting-started .see-all-walkthroughs{display:inline}.monaco-workbench .part.editor>.content .gettingStartedContainer.noWalkthroughs .index-list.getting-started{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-right img{cursor:unset;object-fit:contain}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-detail-right img.clickable{cursor:pointer}.monaco-workbench .part.editor>.content .gettingStartedContainer button{border:none;color:inherit;font-family:inherit;font-size:13px;margin:1px 0;padding:16px;text-align:left}.monaco-workbench .part.editor>.content .gettingStartedContainer button:hover{cursor:pointer}.monaco-workbench .part.editor>.content .gettingStartedContainer button:focus{outline:none}.monaco-workbench .part.editor>.content .gettingStartedContainer button:focus-visible{outline:1px solid var(--vscode-focusBorder);outline-offset:-1px}.monaco-workbench .part.editor>.content .gettingStartedContainer .prev-button.button-link{display:none;left:40px;margin:10px;padding:0 2px 2px;position:absolute;top:5px;z-index:1}.monaco-workbench .part.editor>.content .gettingStartedContainer.height-constrained .prev-button.button-link,.monaco-workbench .part.editor>.content .gettingStartedContainer.width-semi-constrained .prev-button.button-link{left:0;top:-10px}.monaco-workbench .part.editor>.content .gettingStartedContainer.height-constrained .prev-button.button-link .codicon{font-size:20px}.monaco-workbench .part.editor>.content .gettingStartedContainer.height-constrained .prev-button.button-link .moreText{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer .prev-button:hover{cursor:pointer}.monaco-workbench .part.editor>.content .gettingStartedContainer .prev-button .codicon{left:-4px;position:relative;top:3px}.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link .codicon-arrow-right{padding-left:4px}.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link .codicon-check-all{padding-right:4px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .skip{display:block;margin:2px auto;text-align:center;width:fit-content}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails h2{font-size:26px;font-weight:400;margin:0 0 8px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails h2 .codicon{font-size:20px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails h3{font-size:13px;font-weight:600;margin:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .subtitle{font-size:16px;margin:0;padding:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStarted.showCategories .gettingStartedSlideDetails{left:100%;opacity:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStarted.showDetails .gettingStartedSlideCategories{left:-100%;opacity:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStarted.showDetails .categoriesScrollbar .scrollbar.vertical{display:none}.monaco-workbench .part.editor>.content .gettingStartedContainer .done-next-container{display:flex;padding:16px}.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link{background:transparent;cursor:pointer;margin:2px;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis}.monaco-workbench .part.editor>.content .gettingStartedContainer .done-next-container .button-link{align-items:center;display:flex}.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link.next{margin-left:auto}.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link:hover{background:transparent}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .openAWalkthrough>button,.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .showOnStartup{align-items:center;display:flex;gap:8px;justify-content:center;text-align:center}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-checkbox{border:1px solid transparent;border-radius:3px;color:inherit!important;height:18px;margin-right:9px;padding:0;width:18px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-checkbox.codicon:not(.checked):before{opacity:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.footer p{margin:0}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer .index-list.start-container{margin-bottom:16px;min-height:156px}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories>.gettingStartedCategoriesContainer>.footer>button{text-align:center}.monaco-workbench .part.editor>.content .gettingStartedContainer .getting-started-category .codicon{top:0}.monaco-workbench .part.editor>.content .getting-started-category .codicon-star-full:before{vertical-align:middle}.monaco-workbench .part.editor>.content .gettingStartedContainer .hide-category-button{visibility:hidden}.monaco-workbench .part.editor>.content .gettingStartedContainer .getting-started-category:focus-within .hide-category-button,.monaco-workbench .part.editor>.content .gettingStartedContainer .getting-started-category:hover .hide-category-button{visibility:visible}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description-container span{line-height:1.3em}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description-container .monaco-button,.monaco-workbench .part.editor>.content .gettingStartedContainer .max-lines-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description-container .monaco-button{align-items:center;display:flex;height:24px;min-width:max-content;padding:0 11px;width:fit-content}.monaco-workbench .part.editor>.content .gettingStartedContainer .hide-category-button{border-radius:5px;padding:3px}.monaco-workbench .part.editor>.content .gettingStartedContainer .hide-category-button:before{vertical-align:unset}.monaco-workbench .part.editor>.content .gettingStartedContainer .hide-category-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .part.editor>.content .gettingStartedContainer{background:var(--vscode-welcomePage-background);color:var(--vscode-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .description{color:var(--vscode-descriptionForeground);line-height:1.4em}.monaco-workbench .part.editor>.content .gettingStartedContainer .category-progress .message,.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent>.getting-started-footer{color:var(--vscode-descriptionForeground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon-getting-started-step-checked,.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded .codicon-getting-started-step-unchecked,.monaco-workbench .part.editor>.content .gettingStartedContainer .icon-widget{color:var(--vscode-textLink-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer button{background:var(--vscode-welcomePage-tileBackground)}.monaco-workbench .part.editor>.content .gettingStartedContainer button:hover{background:var(--vscode-welcomePage-tileHoverBackground);outline-color:var(--vscode-contrastActiveBorder,var(--vscode-focusBorder))}.monaco-workbench .part.editor>.content .gettingStartedContainer button.expanded:hover{background:var(--vscode-welcomePage-tileBackground)}.monaco-workbench .part.editor>.content .gettingStartedContainer button.emphasis{background:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon-getting-started-step-unchecked{color:var(--vscode-descriptionForeground)}.monaco-workbench .part.editor>.content .gettingStartedContainer button.emphasis:hover{background:var(--vscode-button-hoverBackground)}.monaco-workbench .part.editor>.content .gettingStartedContainer a:not(.hide-category-button){color:var(--vscode-textLink-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link{color:var(--vscode-textLink-foreground);text-decoration:var(--text-link-decoration)}.monaco-workbench .part.editor>.content .gettingStartedContainer .start-container .button-link{line-height:24px}.monaco-workbench .part.editor>.content .gettingStartedContainer a:not(.hide-category-button):active,.monaco-workbench .part.editor>.content .gettingStartedContainer a:not(.hide-category-button):hover,.monaco-workbench .part.editor>.content .gettingStartedContainer button.button-link:hover,.monaco-workbench .part.editor>.content .gettingStartedContainer button.button-link:hover .codicon{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .part.editor>.content .gettingStartedContainer a:not(.codicon-close):focus{outline-color:var(--vscode-focusBorder)}.monaco-workbench .part.editor>.content .gettingStartedContainer button{border:1px solid var(--vscode-contrastBorder)}.monaco-workbench .part.editor>.content .gettingStartedContainer button.button-link{border:inherit}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .progress-bar-outer{background-color:var(--vscode-welcomePage-progress-background)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideCategories .progress-bar-inner{background-color:var(--vscode-welcomePage-progress-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .featured .featured-icon,.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .new-badge{color:var(--vscode-activityBarBadge-foreground)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-category .new-badge{background-color:var(--vscode-activityBarBadge-background)}.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .getting-started-checkbox{background-color:var(--vscode-checkbox-background)!important;border-color:var(--vscode-checkbox-border)!important;color:var(--vscode-checkbox-foreground)!important}";
|
|
4
4
|
n(css,{});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
2
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
3
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
5
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
6
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
|
+
import { IWorkingCopyBackupService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service";
|
|
8
|
+
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
9
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
10
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
11
|
+
import { IWorkbenchLayoutService } from "vscode/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
12
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
13
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
14
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
15
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
16
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
17
|
+
import { IEditorResolverService } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
18
|
+
export declare const restoreWalkthroughsConfigurationKey = "workbench.welcomePage.restorableWalkthroughs";
|
|
19
|
+
export type RestoreWalkthroughsConfigurationValue = {
|
|
20
|
+
folder: string;
|
|
21
|
+
category?: string;
|
|
22
|
+
step?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare class StartupPageEditorResolverContribution implements IWorkbenchContribution {
|
|
25
|
+
private readonly instantiationService;
|
|
26
|
+
static readonly ID = "workbench.contrib.startupPageEditorResolver";
|
|
27
|
+
constructor(instantiationService: IInstantiationService, editorResolverService: IEditorResolverService);
|
|
28
|
+
}
|
|
29
|
+
export declare class StartupPageRunnerContribution extends Disposable implements IWorkbenchContribution {
|
|
30
|
+
private readonly configurationService;
|
|
31
|
+
private readonly editorService;
|
|
32
|
+
private readonly workingCopyBackupService;
|
|
33
|
+
private readonly fileService;
|
|
34
|
+
private readonly contextService;
|
|
35
|
+
private readonly lifecycleService;
|
|
36
|
+
private readonly layoutService;
|
|
37
|
+
private readonly productService;
|
|
38
|
+
private readonly commandService;
|
|
39
|
+
private readonly environmentService;
|
|
40
|
+
private readonly storageService;
|
|
41
|
+
private readonly logService;
|
|
42
|
+
private readonly notificationService;
|
|
43
|
+
static readonly ID = "workbench.contrib.startupPageRunner";
|
|
44
|
+
constructor(configurationService: IConfigurationService, editorService: IEditorService, workingCopyBackupService: IWorkingCopyBackupService, fileService: IFileService, contextService: IWorkspaceContextService, lifecycleService: ILifecycleService, layoutService: IWorkbenchLayoutService, productService: IProductService, commandService: ICommandService, environmentService: IWorkbenchEnvironmentService, storageService: IStorageService, logService: ILogService, notificationService: INotificationService);
|
|
45
|
+
private run;
|
|
46
|
+
private tryOpenWalkthroughForFolder;
|
|
47
|
+
private openReadme;
|
|
48
|
+
private openGettingStarted;
|
|
49
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
3
4
|
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
4
5
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
6
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
6
7
|
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
7
|
-
import { UNKNOWN_EMPTY_WINDOW_WORKSPACE } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
8
|
+
import { UNKNOWN_EMPTY_WINDOW_WORKSPACE, WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
8
9
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
9
10
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
11
|
import { IWorkingCopyBackupService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service';
|
|
12
|
+
import { LifecyclePhase, StartupKind } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
11
13
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
12
14
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
13
15
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
@@ -15,14 +17,17 @@ import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
|
15
17
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
16
18
|
import { GettingStartedInput, gettingStartedInputTypeId } from './gettingStartedInput.js';
|
|
17
19
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
20
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
18
21
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
19
22
|
import { getTelemetryLevel } from 'vscode/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
23
|
+
import { TelemetryLevel } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
20
24
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
21
25
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
22
26
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
23
27
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
24
28
|
import { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
25
29
|
import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
30
|
+
import { TerminalCommandId } from '@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common/vscode/vs/workbench/contrib/terminal/common/terminal';
|
|
26
31
|
|
|
27
32
|
const restoreWalkthroughsConfigurationKey = 'workbench.welcomePage.restorableWalkthroughs';
|
|
28
33
|
const configurationKey = 'workbench.startupEditor';
|
|
@@ -34,7 +39,7 @@ let StartupPageEditorResolverContribution = class StartupPageEditorResolverContr
|
|
|
34
39
|
this.instantiationService = instantiationService;
|
|
35
40
|
editorResolverService.registerEditor(`${GettingStartedInput.RESOURCE.scheme}:/**`, {
|
|
36
41
|
id: GettingStartedInput.ID,
|
|
37
|
-
label: ( localize(
|
|
42
|
+
label: ( localize(10822, "Welcome Page")),
|
|
38
43
|
priority: RegisteredEditorPriority.builtin,
|
|
39
44
|
}, {
|
|
40
45
|
singlePerResource: false,
|
|
@@ -52,10 +57,10 @@ let StartupPageEditorResolverContribution = class StartupPageEditorResolverContr
|
|
|
52
57
|
});
|
|
53
58
|
}
|
|
54
59
|
};
|
|
55
|
-
StartupPageEditorResolverContribution = (
|
|
56
|
-
(
|
|
57
|
-
(
|
|
58
|
-
], StartupPageEditorResolverContribution))
|
|
60
|
+
StartupPageEditorResolverContribution = ( __decorate([
|
|
61
|
+
( __param(0, IInstantiationService)),
|
|
62
|
+
( __param(1, IEditorResolverService))
|
|
63
|
+
], StartupPageEditorResolverContribution));
|
|
59
64
|
let StartupPageRunnerContribution = class StartupPageRunnerContribution extends Disposable {
|
|
60
65
|
static { this.ID = 'workbench.contrib.startupPageRunner'; }
|
|
61
66
|
constructor(configurationService, editorService, workingCopyBackupService, fileService, contextService, lifecycleService, layoutService, productService, commandService, environmentService, storageService, logService, notificationService) {
|
|
@@ -82,13 +87,13 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
82
87
|
}));
|
|
83
88
|
}
|
|
84
89
|
async run() {
|
|
85
|
-
await this.lifecycleService.when(
|
|
90
|
+
await this.lifecycleService.when(LifecyclePhase.Restored);
|
|
86
91
|
if (this.productService.enableTelemetry
|
|
87
92
|
&& this.productService.showTelemetryOptOut
|
|
88
|
-
&& getTelemetryLevel(this.configurationService) !==
|
|
93
|
+
&& getTelemetryLevel(this.configurationService) !== TelemetryLevel.NONE
|
|
89
94
|
&& !this.environmentService.skipWelcome
|
|
90
|
-
&& !this.storageService.get(telemetryOptOutStorageKey,
|
|
91
|
-
this.storageService.store(telemetryOptOutStorageKey, true,
|
|
95
|
+
&& !this.storageService.get(telemetryOptOutStorageKey, StorageScope.PROFILE)) {
|
|
96
|
+
this.storageService.store(telemetryOptOutStorageKey, true, StorageScope.PROFILE, StorageTarget.USER);
|
|
92
97
|
await this.openGettingStarted(true);
|
|
93
98
|
return;
|
|
94
99
|
}
|
|
@@ -96,7 +101,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
96
101
|
return;
|
|
97
102
|
}
|
|
98
103
|
const enabled = isStartupPageEnabled(this.configurationService, this.contextService, this.environmentService);
|
|
99
|
-
if (enabled && this.lifecycleService.startupKind !==
|
|
104
|
+
if (enabled && this.lifecycleService.startupKind !== StartupKind.ReloadedWindow) {
|
|
100
105
|
const hasBackups = await this.workingCopyBackupService.hasBackups();
|
|
101
106
|
if (hasBackups) {
|
|
102
107
|
return;
|
|
@@ -117,36 +122,36 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
117
122
|
await this.openGettingStarted();
|
|
118
123
|
}
|
|
119
124
|
else if (startupEditorSetting.value === 'terminal') {
|
|
120
|
-
this.commandService.executeCommand(
|
|
125
|
+
this.commandService.executeCommand(TerminalCommandId.CreateTerminalEditor);
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
}
|
|
124
129
|
}
|
|
125
130
|
tryOpenWalkthroughForFolder() {
|
|
126
|
-
const toRestore = this.storageService.get(restoreWalkthroughsConfigurationKey,
|
|
131
|
+
const toRestore = this.storageService.get(restoreWalkthroughsConfigurationKey, StorageScope.PROFILE);
|
|
127
132
|
if (!toRestore) {
|
|
128
133
|
return false;
|
|
129
134
|
}
|
|
130
135
|
else {
|
|
131
136
|
const restoreData = JSON.parse(toRestore);
|
|
132
137
|
const currentWorkspace = this.contextService.getWorkspace();
|
|
133
|
-
if (restoreData.folder === UNKNOWN_EMPTY_WINDOW_WORKSPACE.id || restoreData.folder === (
|
|
138
|
+
if (restoreData.folder === UNKNOWN_EMPTY_WINDOW_WORKSPACE.id || restoreData.folder === ( currentWorkspace.folders[0].uri.toString())) {
|
|
134
139
|
const options = { selectedCategory: restoreData.category, selectedStep: restoreData.step, pinned: false };
|
|
135
140
|
this.editorService.openEditor({
|
|
136
141
|
resource: GettingStartedInput.RESOURCE,
|
|
137
142
|
options
|
|
138
143
|
});
|
|
139
|
-
this.storageService.remove(restoreWalkthroughsConfigurationKey,
|
|
144
|
+
this.storageService.remove(restoreWalkthroughsConfigurationKey, StorageScope.PROFILE);
|
|
140
145
|
return true;
|
|
141
146
|
}
|
|
142
147
|
}
|
|
143
148
|
return false;
|
|
144
149
|
}
|
|
145
150
|
async openReadme() {
|
|
146
|
-
const readmes = coalesce(await Promise.all((
|
|
151
|
+
const readmes = coalesce(await Promise.all(( this.contextService.getWorkspace().folders.map(async (folder) => {
|
|
147
152
|
const folderUri = folder.uri;
|
|
148
153
|
const folderStat = await this.fileService.resolve(folderUri).catch(onUnexpectedError);
|
|
149
|
-
const files = folderStat?.children ? (
|
|
154
|
+
const files = folderStat?.children ? ( folderStat.children.map(child => child.name)).sort() : [];
|
|
150
155
|
const file = files.find(file => file.toLowerCase() === 'readme.md') || files.find(file => file.toLowerCase().startsWith('readme'));
|
|
151
156
|
if (file) {
|
|
152
157
|
return joinPath(folderUri, file);
|
|
@@ -154,19 +159,19 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
154
159
|
else {
|
|
155
160
|
return undefined;
|
|
156
161
|
}
|
|
157
|
-
}))))
|
|
162
|
+
}))));
|
|
158
163
|
if (!this.editorService.activeEditor) {
|
|
159
164
|
if (readmes.length) {
|
|
160
165
|
const isMarkDown = (readme) => readme.path.toLowerCase().endsWith('.md');
|
|
161
166
|
await Promise.all([
|
|
162
167
|
this.commandService.executeCommand('markdown.showPreview', null, readmes.filter(isMarkDown), { locked: true }).catch(error => {
|
|
163
168
|
this.notificationService.error(( localize(
|
|
164
|
-
|
|
169
|
+
10823,
|
|
165
170
|
'Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.',
|
|
166
171
|
error.message
|
|
167
172
|
)));
|
|
168
173
|
}),
|
|
169
|
-
this.editorService.openEditors((
|
|
174
|
+
this.editorService.openEditors(( readmes.filter(readme => !isMarkDown(readme)).map(readme => ({ resource: readme })))),
|
|
170
175
|
]);
|
|
171
176
|
}
|
|
172
177
|
else {
|
|
@@ -177,7 +182,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
177
182
|
async openGettingStarted(showTelemetryNotice) {
|
|
178
183
|
const startupEditorTypeID = gettingStartedInputTypeId;
|
|
179
184
|
const editor = this.editorService.activeEditor;
|
|
180
|
-
if (editor?.typeId === startupEditorTypeID || (
|
|
185
|
+
if (editor?.typeId === startupEditorTypeID || ( this.editorService.editors.some(e => e.typeId === startupEditorTypeID))) {
|
|
181
186
|
return;
|
|
182
187
|
}
|
|
183
188
|
const options = editor ? { pinned: false, index: 0, showTelemetryNotice } : { pinned: false, showTelemetryNotice };
|
|
@@ -189,21 +194,21 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
189
194
|
}
|
|
190
195
|
}
|
|
191
196
|
};
|
|
192
|
-
StartupPageRunnerContribution = (
|
|
193
|
-
(
|
|
194
|
-
(
|
|
195
|
-
(
|
|
196
|
-
(
|
|
197
|
-
(
|
|
198
|
-
(
|
|
199
|
-
(
|
|
200
|
-
(
|
|
201
|
-
(
|
|
202
|
-
(
|
|
203
|
-
(
|
|
204
|
-
(
|
|
205
|
-
(
|
|
206
|
-
], StartupPageRunnerContribution))
|
|
197
|
+
StartupPageRunnerContribution = ( __decorate([
|
|
198
|
+
( __param(0, IConfigurationService)),
|
|
199
|
+
( __param(1, IEditorService)),
|
|
200
|
+
( __param(2, IWorkingCopyBackupService)),
|
|
201
|
+
( __param(3, IFileService)),
|
|
202
|
+
( __param(4, IWorkspaceContextService)),
|
|
203
|
+
( __param(5, ILifecycleService)),
|
|
204
|
+
( __param(6, IWorkbenchLayoutService)),
|
|
205
|
+
( __param(7, IProductService)),
|
|
206
|
+
( __param(8, ICommandService)),
|
|
207
|
+
( __param(9, IWorkbenchEnvironmentService)),
|
|
208
|
+
( __param(10, IStorageService)),
|
|
209
|
+
( __param(11, ILogService)),
|
|
210
|
+
( __param(12, INotificationService))
|
|
211
|
+
], StartupPageRunnerContribution));
|
|
207
212
|
function isStartupPageEnabled(configurationService, contextService, environmentService) {
|
|
208
213
|
if (environmentService.skipWelcome) {
|
|
209
214
|
return false;
|
|
@@ -217,7 +222,7 @@ function isStartupPageEnabled(configurationService, contextService, environmentS
|
|
|
217
222
|
}
|
|
218
223
|
return startupEditor.value === 'welcomePage'
|
|
219
224
|
|| startupEditor.value === 'readme' && (startupEditor.userValue === 'readme' || startupEditor.defaultValue === 'readme')
|
|
220
|
-
|| (contextService.getWorkbenchState() ===
|
|
225
|
+
|| (contextService.getWorkbenchState() === WorkbenchState.EMPTY && startupEditor.value === 'welcomePageInEmptyWorkbench')
|
|
221
226
|
|| startupEditor.value === 'terminal';
|
|
222
227
|
}
|
|
223
228
|
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ThemeIcon } from "vscode/vscode/vs/base/common/themables";
|
|
2
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
+
interface IGettingStartedContentProvider {
|
|
4
|
+
(): string;
|
|
5
|
+
}
|
|
6
|
+
declare class GettingStartedContentProviderRegistry {
|
|
7
|
+
private readonly providers;
|
|
8
|
+
registerProvider(moduleId: string, provider: IGettingStartedContentProvider): void;
|
|
9
|
+
getProvider(moduleId: string): IGettingStartedContentProvider | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const gettingStartedContentRegistry: GettingStartedContentProviderRegistry;
|
|
12
|
+
export declare function moduleToContent(resource: URI): Promise<string>;
|
|
13
|
+
export type BuiltinGettingStartedStep = {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
completionEvents?: string[];
|
|
18
|
+
when?: string;
|
|
19
|
+
media: {
|
|
20
|
+
type: "image";
|
|
21
|
+
path: string | {
|
|
22
|
+
hc: string;
|
|
23
|
+
hcLight?: string;
|
|
24
|
+
light: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
};
|
|
27
|
+
altText: string;
|
|
28
|
+
} | {
|
|
29
|
+
type: "svg";
|
|
30
|
+
path: string;
|
|
31
|
+
altText: string;
|
|
32
|
+
} | {
|
|
33
|
+
type: "markdown";
|
|
34
|
+
path: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type BuiltinGettingStartedCategory = {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
description: string;
|
|
41
|
+
isFeatured: boolean;
|
|
42
|
+
next?: string;
|
|
43
|
+
icon: ThemeIcon;
|
|
44
|
+
when?: string;
|
|
45
|
+
content: {
|
|
46
|
+
type: "steps";
|
|
47
|
+
steps: BuiltinGettingStartedStep[];
|
|
48
|
+
};
|
|
49
|
+
walkthroughPageTitle: string;
|
|
50
|
+
};
|
|
51
|
+
export type BuiltinGettingStartedStartEntry = {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
icon: ThemeIcon;
|
|
56
|
+
when?: string;
|
|
57
|
+
content: {
|
|
58
|
+
type: "startEntry";
|
|
59
|
+
command: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type GettingStartedWalkthroughContent = BuiltinGettingStartedCategory[];
|
|
63
|
+
type GettingStartedStartEntryContent = BuiltinGettingStartedStartEntry[];
|
|
64
|
+
export declare const startEntries: GettingStartedStartEntryContent;
|
|
65
|
+
export declare const walkthroughs: GettingStartedWalkthroughContent;
|
|
66
|
+
export {};
|