@@ -69,7 +69,6 @@ import { IExtensionService } from 'vs/workbench/services/extensions/common/exten
69
69
import { IHostService } from 'vs/workbench/services/host/browser/host' ;
70
70
import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService' ;
71
71
import { GettingStartedIndexList } from './gettingStartedList' ;
72
- import { IWorkbenchAssignmentService } from 'vs/workbench/services/assignment/common/assignmentService' ;
73
72
74
73
const SLIDE_TRANSITION_TIME_MS = 250 ;
75
74
const configurationKey = 'workbench.startupEditor' ;
@@ -148,7 +147,6 @@ export class GettingStartedPage extends EditorPane {
148
147
private recentlyOpenedList ?: GettingStartedIndexList < RecentEntry > ;
149
148
private startList ?: GettingStartedIndexList < IWelcomePageStartEntry > ;
150
149
private gettingStartedList ?: GettingStartedIndexList < IResolvedWalkthrough > ;
151
- private videoList ?: GettingStartedIndexList < IWelcomePageStartEntry > ;
152
150
153
151
private stepsSlide ! : HTMLElement ;
154
152
private categoriesSlide ! : HTMLElement ;
@@ -187,8 +185,7 @@ export class GettingStartedPage extends EditorPane {
187
185
@IHostService private readonly hostService : IHostService ,
188
186
@IWebviewService private readonly webviewService : IWebviewService ,
189
187
@IWorkspaceContextService private readonly workspaceContextService : IWorkspaceContextService ,
190
- @IAccessibilityService private readonly accessibilityService : IAccessibilityService ,
191
- @IWorkbenchAssignmentService private readonly tasExperimentService : IWorkbenchAssignmentService
188
+ @IAccessibilityService private readonly accessibilityService : IAccessibilityService
192
189
) {
193
190
194
191
super ( GettingStartedPage . ID , group , telemetryService , themeService , storageService ) ;
@@ -443,10 +440,6 @@ export class GettingStartedPage extends EditorPane {
443
440
}
444
441
break ;
445
442
}
446
- case 'hideVideos' : {
447
- this . hideVideos ( ) ;
448
- break ;
449
- }
450
443
case 'openLink' : {
451
444
this . openerService . open ( argument ) ;
452
445
break ;
@@ -465,11 +458,6 @@ export class GettingStartedPage extends EditorPane {
465
458
this . gettingStartedList ?. rerender ( ) ;
466
459
}
467
460
468
- private hideVideos ( ) {
469
- this . setHiddenCategories ( [ ...this . getHiddenCategories ( ) . add ( 'getting-started-videos' ) ] ) ;
470
- this . videoList ?. setEntries ( undefined ) ;
471
- }
472
-
473
461
private markAllStepsComplete ( ) {
474
462
if ( this . currentWalkthrough ) {
475
463
this . currentWalkthrough ?. steps . forEach ( step => {
@@ -821,29 +809,6 @@ export class GettingStartedPage extends EditorPane {
821
809
822
810
const startList = this . buildStartList ( ) ;
823
811
const recentList = this . buildRecentlyOpenedList ( ) ;
824
-
825
- const showVideoTutorials = await Promise . race ( [
826
- this . tasExperimentService ?. getTreatment < boolean > ( 'gettingStarted.showVideoTutorials' ) ,
827
- new Promise < boolean | undefined > ( resolve => setTimeout ( ( ) => resolve ( false ) , 200 ) )
828
- ] ) ;
829
-
830
- let videoList : GettingStartedIndexList < IWelcomePageStartEntry > ;
831
- if ( showVideoTutorials === true ) {
832
- this . showFeaturedWalkthrough = false ;
833
- videoList = this . buildVideosList ( ) ;
834
- const layoutVideos = ( ) => {
835
- if ( videoList ?. itemCount > 0 ) {
836
- reset ( rightColumn , videoList ?. getDomElement ( ) , gettingStartedList . getDomElement ( ) ) ;
837
- }
838
- else {
839
- reset ( rightColumn , gettingStartedList . getDomElement ( ) ) ;
840
- }
841
- setTimeout ( ( ) => this . categoriesPageScrollbar ?. scanDomNode ( ) , 50 ) ;
842
- layoutRecentList ( ) ;
843
- } ;
844
- videoList . onDidChange ( layoutVideos ) ;
845
- }
846
-
847
812
const gettingStartedList = this . buildGettingStartedWalkthroughsList ( ) ;
848
813
849
814
const footer = $ ( '.footer' , { } ,
@@ -855,31 +820,18 @@ export class GettingStartedPage extends EditorPane {
855
820
const layoutLists = ( ) => {
856
821
if ( gettingStartedList . itemCount ) {
857
822
this . container . classList . remove ( 'noWalkthroughs' ) ;
858
- if ( videoList ?. itemCount > 0 ) {
859
- this . container . classList . remove ( 'noVideos' ) ;
860
- reset ( rightColumn , videoList ?. getDomElement ( ) , gettingStartedList . getDomElement ( ) ) ;
861
- } else {
862
- this . container . classList . add ( 'noVideos' ) ;
863
- reset ( rightColumn , gettingStartedList . getDomElement ( ) ) ;
864
- }
823
+ reset ( rightColumn , gettingStartedList . getDomElement ( ) ) ;
865
824
}
866
825
else {
867
826
this . container . classList . add ( 'noWalkthroughs' ) ;
868
- if ( videoList ?. itemCount > 0 ) {
869
- this . container . classList . remove ( 'noVideos' ) ;
870
- reset ( rightColumn , videoList ?. getDomElement ( ) ) ;
871
- }
872
- else {
873
- this . container . classList . add ( 'noVideos' ) ;
874
- reset ( rightColumn ) ;
875
- }
827
+ reset ( rightColumn ) ;
876
828
}
877
829
setTimeout ( ( ) => this . categoriesPageScrollbar ?. scanDomNode ( ) , 50 ) ;
878
830
layoutRecentList ( ) ;
879
831
} ;
880
832
881
833
const layoutRecentList = ( ) => {
882
- if ( this . container . classList . contains ( 'noWalkthroughs' ) && this . container . classList . contains ( 'noVideos' ) ) {
834
+ if ( this . container . classList . contains ( 'noWalkthroughs' ) ) {
883
835
recentList . setLimit ( 10 ) ;
884
836
reset ( leftColumn , startList . getDomElement ( ) ) ;
885
837
reset ( rightColumn , recentList . getDomElement ( ) ) ;
@@ -1139,69 +1091,6 @@ export class GettingStartedPage extends EditorPane {
1139
1091
return gettingStartedList ;
1140
1092
}
1141
1093
1142
- private buildVideosList ( ) : GettingStartedIndexList < IWelcomePageStartEntry > {
1143
-
1144
- const renderFeaturedExtensions = ( entry : IWelcomePageStartEntry ) : HTMLElement => {
1145
-
1146
- const featuredBadge = $ ( '.featured-badge' , { } ) ;
1147
- const descriptionContent = $ ( '.description-content' , { } , ) ;
1148
-
1149
- reset ( featuredBadge , $ ( '.featured' , { } , $ ( 'span.featured-icon.codicon.codicon-star-full' ) ) ) ;
1150
- reset ( descriptionContent , ...renderLabelWithIcons ( entry . description ) ) ;
1151
-
1152
- const titleContent = $ ( 'h3.category-title.max-lines-3' , { 'x-category-title-for' : entry . id } ) ;
1153
- reset ( titleContent , ...renderLabelWithIcons ( entry . title ) ) ;
1154
-
1155
- return $ ( 'button.getting-started-category' + '.featured' ,
1156
- {
1157
- 'x-dispatch' : 'openLink:' + entry . command ,
1158
- 'title' : entry . title
1159
- } ,
1160
- featuredBadge ,
1161
- $ ( '.main-content' , { } ,
1162
- this . iconWidgetFor ( entry ) ,
1163
- titleContent ,
1164
- $ ( 'a.codicon.codicon-close.hide-category-button' , {
1165
- 'tabindex' : 0 ,
1166
- 'x-dispatch' : 'hideVideos' ,
1167
- 'title' : localize ( 'close' , "Hide" ) ,
1168
- 'role' : 'button' ,
1169
- 'aria-label' : localize ( 'closeAriaLabel' , "Hide" ) ,
1170
- } ) ,
1171
- ) ,
1172
- descriptionContent ) ;
1173
- } ;
1174
-
1175
- if ( this . videoList ) {
1176
- this . videoList . dispose ( ) ;
1177
- }
1178
- const videoList = this . videoList = new GettingStartedIndexList (
1179
- {
1180
- title : localize ( 'videos' , "Videos" ) ,
1181
- klass : 'getting-started-videos' ,
1182
- limit : 1 ,
1183
- renderElement : renderFeaturedExtensions ,
1184
- contextService : this . contextService ,
1185
- } ) ;
1186
-
1187
- if ( this . getHiddenCategories ( ) . has ( 'getting-started-videos' ) ) {
1188
- return videoList ;
1189
- }
1190
-
1191
- videoList . setEntries ( [ {
1192
- id : 'getting-started-videos' ,
1193
- title : localize ( 'videos-title' , 'Watch Getting Started Tutorials' ) ,
1194
- description : localize ( 'videos-description' , 'Learn VS Code\'s must-have features in short and practical videos' ) ,
1195
- command : 'https://aka.ms/vscode-getting-started-tutorials' ,
1196
- order : 0 ,
1197
- icon : { type : 'icon' , icon : Codicon . deviceCameraVideo } ,
1198
- when : ContextKeyExpr . true ( ) ,
1199
- } ] ) ;
1200
- videoList . onDidChange ( ( ) => this . registerDispatchListeners ( ) ) ;
1201
-
1202
- return videoList ;
1203
- }
1204
-
1205
1094
layout ( size : Dimension ) {
1206
1095
this . detailsScrollbar ?. scanDomNode ( ) ;
1207
1096
@@ -1211,7 +1100,6 @@ export class GettingStartedPage extends EditorPane {
1211
1100
this . startList ?. layout ( size ) ;
1212
1101
this . gettingStartedList ?. layout ( size ) ;
1213
1102
this . recentlyOpenedList ?. layout ( size ) ;
1214
- this . videoList ?. layout ( size ) ;
1215
1103
1216
1104
if ( this . editorInput ?. selectedStep && this . currentMediaType ) {
1217
1105
this . mediaDisposables . clear ( ) ;
0 commit comments