ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / workbench / contrib / welcomeOnboarding / browser / onboardingVariationA.ts 1271 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js' ;
import { Emitter, Event } from '../../../../base/common/event.js' ;
import { $, append, addDisposableListener, EventType, clearNode, getActiveWindow } from '../../../../base/browser/dom.js' ;
import { isCancellationError } from '../../../../base/common/errors.js' ;
import { StopWatch } from '../../../../base/common/stopwatch.js' ;
import { URI } from '../../../../base/common/uri.js' ;
import isWindows isMacintosh isLinux
assertDefined
FileAccess
ILayoutService
KeyCode
StandardKeyboardEvent
InputBox
localize
Codicon
ThemeIcon
renderIcon
Action
IWorkbenchThemeService
IExtensionGalleryService IExtensionManagementService
GitHubPaths IDefaultAccountService
CancellationToken
INotificationService Severity
ConfigurationTarget IConfigurationService
defaultInputBoxStyles
product
IFileService
IPathService
ITelemetryService
InstallChatEvent InstallChatClassification ChatSetupStrategy
ICommandService
IAccessibilityService
OnboardingStepId
AiCollaborationMode
IOnboardingThemeOption
getOnboardingStepTitle
getOnboardingStepSubtitle
GheParseResultKind
parseGheInstanceInput
IOnboardingService
owner
comment
step classification purpose comment
stepNumber classification purpose isMeasurement comment
step
stepNumber
owner
comment
action classification purpose comment
step classification purpose comment
argument classification purpose comment
action
step
argument
product defaultChatAgent
defaultChat product defaultChatAgent
_serviceBrand
_onDidComplete
onDidComplete Event _onDidComplete event
_onDidDismiss
onDidDismiss Event _onDidDismiss event
overlay HTMLElement
card HTMLElement
bodyEl HTMLElement
progressContainer HTMLElement
stepLabelEl HTMLElement
titleEl HTMLElement
subtitleEl HTMLElement
contentEl HTMLElement
backButton HTMLButtonElement
nextButton HTMLButtonElement
closeButton HTMLButtonElement
footerLeft HTMLElement
_footerSignInBtn HTMLButtonElement
currentStepIndex
steps
disposables
stepDisposables
previouslyFocusedElement HTMLElement
_isShowing
footerFocusableElements HTMLElement
stepFocusableElements HTMLElement
selectedThemeId
selectedKeymapId
_detectedEditorIds Set
_userSignedIn
selectedAiMode AiCollaborationMode AiCollaborationMode Balanced
enterpriseSignInUiState EnterpriseSignInUiState
enterpriseInstanceValue
enterpriseSignInWatch StopWatch
layoutService ILayoutService
themeService IWorkbenchThemeService
defaultAccountService IDefaultAccountService
extensionGalleryService IExtensionGalleryService
extensionManagementService IExtensionManagementService
configurationService IConfigurationService
notificationService INotificationService
fileService IFileService
pathService IPathService
telemetryService ITelemetryService
commandService ICommandService
accessibilityService IAccessibilityService
currentTheme themeService
allThemes product onboardingThemes
matchingTheme allThemes t t themeId currentTheme settingsId
matchingTheme
selectedThemeId matchingTheme id
ids _detectedEditorIds ids
_isShowing
overlay
_isShowing
previouslyFocusedElement document activeElement HTMLElement
container layoutService activeContainer
overlay container
overlay
overlay
overlay
card overlay
closeButton card
closeButton type
closeButton
closeButton Codicon close
header card
progressContainer header
stepLabelEl progressContainer
bodyEl card
titleEl bodyEl
subtitleEl bodyEl
contentEl bodyEl
footer card
footerLeft footer
footerRight footer
backButton footerRight
backButton textContent
backButton type
footerFocusableElements backButton
nextButton footerRight
nextButton type
footerFocusableElements nextButton
disposables closeButton EventType
disposables backButton EventType
currentStepIndex enterpriseSignInUiState
enterpriseSignInWatch
disposables nextButton EventType
steps currentStepIndex
currentStepIndex
disposables overlay EventType e MouseEvent
e target overlay
disposables overlay EventType e KeyboardEvent
event e
e
event keyCode KeyCode Escape
e
event keyCode KeyCode Tab
e event shiftKey
overlay classList
overlay classList
overlay classList
reason
overlay
reason
overlay classList
overlay classList
handled
handled
handled
reason
_onDidComplete
_onDidDismiss
overlay onTransitionEnd once
onTransitionEnd
currentStepIndex steps length
leavingStep steps currentStepIndex
leavingStep OnboardingStepId SignIn
enterpriseSignInUiState
enterpriseInstanceValue
enterpriseSignInWatch
leavingStep
currentStepIndex
stepId OnboardingStepId
stepId OnboardingStepId Personalize
selectedKeymapId
currentStepIndex
currentStepIndex
currentStepIndex steps length
progressContainer stepLabelEl
progressContainer
i i steps length i
dot progressContainer
i currentStepIndex
dot classList
i currentStepIndex
dot classList
progressContainer stepLabelEl
stepLabelEl textContent
currentStepIndex
steps length
titleEl subtitleEl contentEl
stepDisposables
stepFocusableElements length
stepId steps currentStepIndex
useSignInHero stepId OnboardingStepId SignIn
titleEl style display useSignInHero
subtitleEl style display useSignInHero
titleEl textContent stepId
stepId OnboardingStepId Personalize
subtitleEl
subtitleEl textContent stepId
contentEl
stepId
OnboardingStepId SignIn
contentEl
OnboardingStepId Personalize
contentEl
OnboardingStepId AiPreference
contentEl
bodyEl
currentStepIndex
steps length
stepId
backButton
showEnterpriseBack currentStepIndex enterpriseSignInUiState
backButton style display currentStepIndex showEnterpriseBack
nextButton
steps currentStepIndex OnboardingStepId SignIn
_userSignedIn
nextButton className
nextButton textContent
nextButton className
nextButton textContent
nextButton className
nextButton textContent
nextButton className
nextButton textContent
footerLeft
_footerSignInBtn
_footerSignInBtn
_footerSignInBtn
container HTMLElement
wrapper container
brand wrapper
brandIcon brand
brandIcon
brandIcon product nameLong
content wrapper
contentMain content
title contentMain
title textContent
subtitle contentMain
subtitle textContent
actions contentMain
_userSignedIn
signedIn actions
icon signedIn
icon classList ThemeIcon Codicon check
icon
text signedIn
text textContent
enterpriseSignInUiState
actions
actions
actions
footer wrapper
disclaimerCol footer
copilotDisclaimer disclaimerCol
copilotDisclaimer defaultChat provider default name
copilotDisclaimer defaultChat termsStatementUrl
copilotDisclaimer
copilotDisclaimer defaultChat privacyStatementUrl
copilotDisclaimer defaultChat provider default name
copilotDisclaimer defaultChat publicCodeMatchesUrl
copilotDisclaimer
copilotDisclaimer
copilotDisclaimer
copilotDisclaimer defaultAccountService GitHubPaths copilotSettings
copilotDisclaimer
actions HTMLElement
githubBtn actions
emphasized
label
stepDisposables githubBtn EventType
googleBtn actions
iconOnly
label
stepDisposables googleBtn EventType
appleBtn actions
iconOnly
label
stepDisposables appleBtn EventType
gheBtn actions
textOnly
label
stepDisposables gheBtn EventType
actions HTMLElement
enterprisePromptLabel
container actions
submitAction stepDisposables
ThemeIcon Codicon arrowRight
inputBox stepDisposables container
placeholder
ariaLabel enterprisePromptLabel
actions submitAction
inputBoxStyles defaultInputBoxStyles
inputBox value enterpriseInstanceValue
inputBox paddingRight OnboardingVariationA
input inputBox inputElement
result inputBox value
result kind GheParseResultKind Empty result kind GheParseResultKind Invalid
result resolvedUri
submitAction run submit
message container
validate
enterpriseInstanceValue inputBox value
inputBox element classList
message classList
result inputBox value
result kind
GheParseResultKind Empty
message textContent enterprisePromptLabel
submitAction enabled
GheParseResultKind SingleWord
message classList
message textContent result resolvedUri
submitAction enabled
GheParseResultKind FullUri
submitAction enabled
message textContent
GheParseResultKind Invalid
inputBox element classList
message classList
message textContent defaultChat provider enterprise name
submitAction enabled
stepDisposables inputBox
stepDisposables input EventType e
event e
event keyCode KeyCode Enter
e
submitAction
event keyCode KeyCode Escape
e
e
enterpriseSignInWatch
actions HTMLElement
container actions
container
spinner container
spinner classList ThemeIcon Codicon loading
spinner
message container
message textContent defaultChat provider enterprise name
defaultChat provider enterprise name
state EnterpriseSignInUiState
enterpriseSignInUiState state
steps currentStepIndex OnboardingStepId SignIn contentEl
parent HTMLElement providerClass label options emphasized iconOnly textOnly label HTMLButtonElement
isCompact options iconOnly options textOnly
btn parent isCompact
btn type
btn title options label label
btn options label label
options emphasized
btn classList
options textOnly
mark btn
mark classList providerClass
mark
providerClass providerClass
mark Codicon github
options iconOnly
labelEl btn
labelEl textContent label
btn
socialProvider
provider socialProvider
watch StopWatch
account defaultAccountService
extraAuthorizeParameters get_started_with
provider socialProvider
account
_userSignedIn
telemetryService installResult installDuration watch signUpErrorCode provider
commandService
disableChatViewReveal
setupStrategy ChatSetupStrategy DefaultSetup
error
error
telemetryService installResult installDuration watch signUpErrorCode provider
telemetryService installResult installDuration watch signUpErrorCode provider
notificationService
severity Severity Error
message
existingUri configurationService defaultChat providerUriSetting
existingUri existingUri
enterpriseInstanceValue existingUri
enterpriseSignInWatch StopWatch
enterpriseInstanceValue existingUri
resolvedUri
configurationService defaultChat providerUriSetting resolvedUri ConfigurationTarget
enterpriseInstanceValue resolvedUri
enterpriseSignInWatch
watch enterpriseSignInWatch StopWatch
provider defaultChat provider enterprise id
success commandService
disableChatViewReveal
setupStrategy ChatSetupStrategy SetupWithEnterpriseProvider
success
_userSignedIn
telemetryService installResult installDuration watch signUpErrorCode provider
error
error
telemetryService installResult installDuration watch signUpErrorCode provider
telemetryService installResult installDuration watch signUpErrorCode provider
enterpriseSignInWatch
notificationService
severity Severity Error
message
container HTMLElement
wrapper container
themeLabel wrapper
themeLabel textContent
themeHint wrapper
themeHint textContent
themeGrid wrapper
themeGrid
themeGrid
hasOtherEditors
allThemes product onboardingThemes
themes IOnboardingThemeOption hasOtherEditors
allThemes t t id
allThemes
hasOtherEditors
themeGrid classList
themeCards HTMLElement
theme themes
themeGrid theme themeCards
card themeCards
card
keymapOptions _detectedEditorIds
product onboardingKeymaps k _detectedEditorIds k id
hasOtherEditors
keymapLabel wrapper
keymapLabel textContent
keymapHint wrapper
keymapHint textContent
keymapList wrapper
keymapList
keymapList
keymapPills HTMLButtonElement
keymap keymapOptions
pill keymapList
pill type
pill
pill keymap id selectedKeymapId
pill title keymap description
keymapPills pill
labelSpan pill
labelSpan textContent keymap label
keymap id selectedKeymapId
pill classList
stepDisposables pill EventType
keymap id
selectedKeymapId keymap id
p keymapPills
p classList
p
pill classList
pill
accessibilityService keymap label
selectedKeymapIndex keymapOptions k k id selectedKeymapId
keymapPills Math selectedKeymapIndex
container HTMLElement
container
modifier isMacintosh
container
key comment modifier
parent HTMLElement theme IOnboardingThemeOption allCards HTMLElement
card parent
allCards card
card
card theme id selectedThemeId
card theme label
theme id selectedThemeId
card classList
preview card
img preview
img alt
img src FileAccess
label card
label textContent theme label
stepDisposables card EventType
theme id
theme
c allCards
c classList
c
card classList
card
accessibilityService theme label
stepDisposables card EventType e KeyboardEvent
e key e key
e
card
theme IOnboardingThemeOption
selectedThemeId theme id
allThemes themeService
match allThemes t t settingsId theme themeId
match
themeService match id ConfigurationTarget
keymapId
keymap product onboardingKeymaps k k id keymapId
keymap extensionId
gallery extensionGalleryService id keymap extensionId CancellationToken None
gallery length
extensionManagementService gallery context
notificationService
severity Severity Warning
message keymap label
keymapOptions _detectedEditorIds
product onboardingKeymaps k _detectedEditorIds k id
keymapOptions k k id
Set
detected
home pathService preferLocal
id paths
checks EditorCheck
isWindows
localAppData home
checks
id paths
id paths localAppData
id paths home localAppData localAppData
id paths
id paths
isMacintosh
checks
id paths
id paths
id paths home home home
id paths
id paths
isLinux
checks
id paths
id paths home
id paths home home home
id paths home
id paths
checks check
path check paths
fileService path
detected check id
detected
container HTMLElement
wrapper container
cards wrapper
cards
cards
allCards HTMLButtonElement
option
card cards
card type
card dataset id option id
card
card option id selectedAiMode
allCards card
option id selectedAiMode
card classList
iconEl card
iconEl
icon Codicon option icon Codicon Codicon sparkle
iconEl icon
titleEl card
titleEl textContent option label
descEl card
descEl textContent option description
stepDisposables card EventType
option id
selectedAiMode option id
c allCards
c classList c dataset id option id
c c dataset id option id
option id
accessibilityService option label
selectedAiIndex o o id selectedAiMode
allCards Math selectedAiIndex
hint wrapper
hint textContent
mode AiCollaborationMode
mode
AiCollaborationMode CodeFirst
configurationService ConfigurationTarget
AiCollaborationMode Balanced
configurationService ConfigurationTarget
AiCollaborationMode AgentForward
configurationService ConfigurationTarget
label HTMLElement
kbd
kbd textContent label
kbd
parent HTMLElement label href HTMLAnchorElement
link parent
link textContent label
link href href
link target
link rel
link
items HTMLElement selectedIndex
i i items length i
items i i selectedIndex
i i items length i
stepDisposables items i EventType e KeyboardEvent
event e
newIndex
event keyCode KeyCode RightArrow event keyCode KeyCode DownArrow
newIndex i items length
event keyCode KeyCode LeftArrow event keyCode KeyCode UpArrow
newIndex i items length items length
event keyCode KeyCode Home
newIndex
event keyCode KeyCode End
newIndex items length
newIndex
e
e
items i
items newIndex
items newIndex
items newIndex
e KeyboardEvent shiftKey
overlay
allFocusable
allFocusable length
e
first allFocusable
last allFocusable allFocusable length
shiftKey document activeElement first
e
last
shiftKey document activeElement last
e
first
HTMLElement
closeButton closeButton stepFocusableElements footerFocusableElements element element
stepFocusable stepFocusableElements element element
stepFocusable nextButton closeButton
element
stepFocusableElements element
element
element HTMLElement
element isConnected element element tabIndex element
computedStyle element
computedStyle display computedStyle visibility
stepId steps currentStepIndex
telemetryService
step stepId
stepNumber currentStepIndex
action stepOverride OnboardingStepId argument
telemetryService
action
step stepOverride steps currentStepIndex
argument argument
overlay
overlay
overlay
card
bodyEl
progressContainer
stepLabelEl
titleEl
subtitleEl
contentEl
backButton
nextButton
closeButton
footerLeft
_footerSignInBtn
footerFocusableElements length
stepFocusableElements length
enterpriseSignInUiState
enterpriseInstanceValue
enterpriseSignInWatch
_isShowing
disposables
stepDisposables
previouslyFocusedElement
previouslyFocusedElement
previouslyFocusedElement
currentStepIndex
override
{
,
,
}
from
'../../../../base/common/platform.js'
;
import
{
}
from
'../../../../base/common/types.js'
;
import
{
}
from
'../../../../base/common/network.js'
;
import
{
}
from
'../../../../platform/layout/browser/layoutService.js'
;
import
{
}
from
'../../../../base/common/keyCodes.js'
;
import
{
}
from
'../../../../base/browser/keyboardEvent.js'
;
import
{
}
from
'../../../../base/browser/ui/inputbox/inputBox.js'
;
import
{
}
from
'../../../../nls.js'
;
import
{
}
from
'../../../../base/common/codicons.js'
;
import
{
}
from
'../../../../base/common/themables.js'
;
import
{
}
from
'../../../../base/browser/ui/iconLabel/iconLabels.js'
;
import
{
}
from
'../../../../base/common/actions.js'
;
import
{
}
from
'../../../services/themes/common/workbenchThemeService.js'
;
import
{
EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT
,
,
}
from
'../../../../platform/extensionManagement/common/extensionManagement.js'
;
import
{
,
}
from
'../../../../platform/defaultAccount/common/defaultAccount.js'
;
import
{
}
from
'../../../../base/common/cancellation.js'
;
import
{
,
}
from
'../../../../platform/notification/common/notification.js'
;
import
{
,
}
from
'../../../../platform/configuration/common/configuration.js'
;
import
{
}
from
'../../../../platform/theme/browser/defaultStyles.js'
;
import
from
'../../../../platform/product/common/product.js'
;
import
{
}
from
'../../../../platform/files/common/files.js'
;
import
{
}
from
'../../../services/path/common/pathService.js'
;
import
{
}
from
'../../../../platform/telemetry/common/telemetry.js'
;
import
{
,
,
}
from
'../../chat/browser/chatSetup/chatSetup.js'
;
import
{
}
from
'../../../../platform/commands/common/commands.js'
;
import
{
}
from
'../../../../platform/accessibility/common/accessibility.js'
;
import
{
,
ONBOARDING_STEPS
,
ONBOARDING_AI_PREFERENCE_OPTIONS
,
,
,
,
,
GHE_FULL_URI_REGEX
,
,
,
}
from
'../common/onboardingTypes.js'
;
import
{
}
from
'../common/onboardingService.js'
;
type
OnboardingStepViewClassification
=
{
:
'cwebster-99'
;
:
'Tracks which onboarding step is viewed.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The step identifier.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
true
;
:
'The 1-based step index.'
}
;
}
;
type
OnboardingStepViewEvent
=
{
:
string
;
:
number
;
}
;
type
OnboardingActionClassification
=
{
:
'cwebster-99'
;
:
'Tracks actions taken on the onboarding wizard.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The action performed.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The step the action was performed on.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Optional context such as theme id, extension id, or provider.'
}
;
}
;
type
OnboardingActionEvent
=
{
:
string
;
:
string
;
:
string
|
undefined
;
}
;
type
EnterpriseSignInUiState
=
'options'
|
'instance'
|
'progress'
;
assertDefined
(
.
,
'Onboarding requires a default chat agent product configuration.'
)
;
const
=
.
;
export
class
OnboardingVariationA
extends
Disposable
implements
IOnboardingService
{
declare
readonly
:
undefined
;
private
readonly
=
this
.
_register
(
new
Emitter< void >
(
)
)
;
readonly
:
<
void
>
=
this
.
.
;
private
readonly
=
this
.
_register
(
new
Emitter< void >
(
)
)
;
readonly
:
<
void
>
=
this
.
.
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
:
|
undefined
;
private
=
0
;
private
readonly
=
ONBOARDING_STEPS
;
private
readonly
=
this
.
_register
(
new
DisposableStore
(
)
)
;
private
readonly
=
this
.
_register
(
new
DisposableStore
(
)
)
;
private
:
|
undefined
;
private
=
false
;
private
readonly
:
[
]
=
[
]
;
private
readonly
:
[
]
=
[
]
;
private
=
'dark-2026'
;
private
=
'vscode'
;
private
:
<
string
>
|
undefined
;
private
=
false
;
private
:
=
.
;
private
:
=
'options'
;
private
=
''
;
private
:
|
undefined
;
constructor
(
@ ILayoutService
private
readonly
:
,
@ IWorkbenchThemeService
private
readonly
:
,
@ IDefaultAccountService
private
readonly
:
,
@ IExtensionGalleryService
private
readonly
:
,
@ IExtensionManagementService
private
readonly
:
,
@ IConfigurationService
private
readonly
:
,
@ INotificationService
private
readonly
:
,
@ IFileService
private
readonly
:
,
@ IPathService
private
readonly
:
,
@ ITelemetryService
private
readonly
:
,
@ ICommandService
private
readonly
:
,
@ IAccessibilityService
private
readonly
:
,
)
{
super
(
)
;
const
=
this
.
.
getColorTheme
(
)
;
const
=
.
??
[
]
;
const
=
.
find
(
=>
.
===
.
)
;
if
(
)
{
this
.
=
.
;
}
this
.
_detectInstalledEditors
(
)
.
then
(
=>
{
this
.
=
;
}
)
;
}
get
isShowing
(
)
:
boolean
{
return
this
.
;
}
show
(
)
:
void
{
if
(
this
.
)
{
return
;
}
this
.
=
true
;
this
.
=
getActiveWindow
(
)
.
.
as
|
undefined
;
const
=
this
.
.
;
this
.
=
append
(
,
$
(
'.onboarding-a-overlay'
)
)
;
this
.
.
setAttribute
(
'role'
,
'dialog'
)
;
this
.
.
setAttribute
(
'aria-modal'
,
'true'
)
;
this
.
.
setAttribute
(
'aria-label'
,
localize
(
'onboarding.a.aria'
,
"Welcome to Visual Studio Code"
)
)
;
this
.
=
append
(
this
.
,
$
(
'.onboarding-a-card'
)
)
;
this
.
=
append
(
this
.
,
$ < HTMLButtonElement>
(
'button.onboarding-a-close-btn'
)
)
;
this
.
.
=
'button'
;
this
.
.
setAttribute
(
'aria-label'
,
localize
(
'onboarding.close'
,
"Close"
)
)
;
this
.
.
appendChild
(
renderIcon
(
.
)
)
;
const
=
append
(
this
.
,
$
(
'.onboarding-a-header'
)
)
;
this
.
=
append
(
,
$
(
'.onboarding-a-progress'
)
)
;
this
.
=
append
(
this
.
,
$
(
'span.onboarding-a-step-label'
)
)
;
this
.
_renderProgress
(
)
;
this
.
=
append
(
this
.
,
$
(
'.onboarding-a-body'
)
)
;
this
.
=
append
(
this
.
,
$
(
'h2.onboarding-a-step-title'
)
)
;
this
.
=
append
(
this
.
,
$
(
'p.onboarding-a-step-subtitle'
)
)
;
this
.
=
append
(
this
.
,
$
(
'.onboarding-a-step-content'
)
)
;
this
.
_renderStep
(
)
;
this
.
_logStepView
(
)
;
const
=
append
(
this
.
,
$
(
'.onboarding-a-footer'
)
)
;
this
.
=
append
(
,
$
(
'.onboarding-a-footer-left'
)
)
;
const
=
append
(
,
$
(
'.onboarding-a-footer-right'
)
)
;
this
.
=
append
(
,
$ < HTMLButtonElement>
(
'button.onboarding-a-btn.onboarding-a-btn-secondary'
)
)
;
this
.
.
=
localize
(
'onboarding.back'
,
"Back"
)
;
this
.
.
=
'button'
;
this
.
.
push
(
this
.
)
;
this
.
=
append
(
,
$ < HTMLButtonElement>
(
'button.onboarding-a-btn.onboarding-a-btn-primary'
)
)
;
this
.
.
=
'button'
;
this
.
.
push
(
this
.
)
;
this
.
_updateButtonStates
(
)
;
this
.
.
add
(
addDisposableListener
(
this
.
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'skip'
)
;
this
.
_dismiss
(
'skip'
)
;
}
)
)
;
this
.
.
add
(
addDisposableListener
(
this
.
,
.
CLICK
,
(
)
=>
{
if
(
this
.
===
0
&&
this
.
===
'instance'
)
{
this
.
_logAction
(
'cancelEnterpriseInstancePrompt'
)
;
this
.
=
undefined
;
this
.
_setEnterpriseSignInUiState
(
'options'
)
;
return
;
}
this
.
_logAction
(
'back'
)
;
this
.
_prevStep
(
)
;
}
)
)
;
this
.
.
add
(
addDisposableListener
(
this
.
,
.
CLICK
,
(
)
=>
{
if
(
this
.
_isLastStep
(
)
)
{
this
.
_applyStepSelections
(
this
.
[
this
.
]
)
;
this
.
_logAction
(
'complete'
)
;
this
.
_dismiss
(
'complete'
)
;
}
else
if
(
this
.
===
0
)
{
this
.
_logAction
(
'continueWithoutSignIn'
)
;
this
.
_nextStep
(
)
;
}
else
{
this
.
_logAction
(
'next'
)
;
this
.
_nextStep
(
)
;
}
}
)
)
;
this
.
.
add
(
addDisposableListener
(
this
.
,
.
MOUSE_DOWN
,
(
:
)
=>
{
if
(
.
===
this
.
)
{
this
.
_dismiss
(
'skip'
)
;
}
}
)
)
;
this
.
.
add
(
addDisposableListener
(
this
.
,
.
KEY_DOWN
,
(
:
)
=>
{
const
=
new
StandardKeyboardEvent
(
)
;
.
stopPropagation
(
)
;
if
(
.
===
.
)
{
.
preventDefault
(
)
;
this
.
_dismiss
(
'skip'
)
;
return
;
}
if
(
.
===
.
)
{
this
.
_trapTab
(
,
.
)
;
}
}
)
)
;
this
.
.
.
add
(
'entering'
)
;
getActiveWindow
(
)
.
requestAnimationFrame
(
(
)
=>
{
this
.
?.
.
remove
(
'entering'
)
;
this
.
?.
.
add
(
'visible'
)
;
}
)
;
this
.
_focusCurrentStepElement
(
)
;
}
private
_dismiss
(
:
'complete'
|
'skip'
)
:
void
{
if
(
!
this
.
)
{
return
;
}
this
.
_logAction
(
'dismiss'
,
undefined
,
)
;
this
.
.
.
remove
(
'visible'
)
;
this
.
.
.
add
(
'exiting'
)
;
let
=
false
;
const
onTransitionEnd
=
(
)
=>
{
if
(
)
{
return
;
}
=
true
;
this
.
_removeFromDOM
(
)
;
if
(
===
'complete'
)
{
this
.
.
fire
(
)
;
}
this
.
.
fire
(
)
;
}
;
this
.
.
addEventListener
(
'transitionend'
,
,
{
:
true
}
)
;
setTimeout
(
,
400
)
;
}
private
_nextStep
(
)
:
void
{
if
(
this
.
<
this
.
.
-
1
)
{
const
=
this
.
[
this
.
]
;
if
(
===
.
)
{
this
.
=
'options'
;
this
.
=
''
;
this
.
=
undefined
;
}
this
.
_applyStepSelections
(
)
;
this
.
++
;
this
.
_renderStep
(
)
;
this
.
_renderProgress
(
)
;
this
.
_updateButtonStates
(
)
;
this
.
_focusCurrentStepElement
(
)
;
this
.
_logStepView
(
)
;
}
}
private
_applyStepSelections
(
:
)
:
void
{
if
(
===
.
)
{
this
.
_applyKeymap
(
this
.
)
;
}
}
private
_prevStep
(
)
:
void
{
if
(
this
.
>
0
)
{
this
.
--
;
this
.
_renderStep
(
)
;
this
.
_renderProgress
(
)
;
this
.
_updateButtonStates
(
)
;
this
.
_focusCurrentStepElement
(
)
;
this
.
_logStepView
(
)
;
}
}
private
_isLastStep
(
)
:
boolean
{
return
this
.
===
this
.
.
-
1
;
}
private
_renderProgress
(
)
:
void
{
if
(
!
this
.
||
!
this
.
)
{
return
;
}
clearNode
(
this
.
)
;
for
(
let
=
0
;
<
this
.
.
;
++
)
{
const
=
append
(
this
.
,
$
(
'span.onboarding-a-progress-dot'
)
)
;
if
(
===
this
.
)
{
.
.
add
(
'active'
)
;
}
else
if
(
<
this
.
)
{
.
.
add
(
'completed'
)
;
}
}
this
.
.
appendChild
(
this
.
)
;
this
.
.
=
localize
(
'onboarding.stepOf'
,
"{0} of {1}"
,
this
.
+
1
,
this
.
.
)
;
}
private
_renderStep
(
)
:
void
{
if
(
!
this
.
||
!
this
.
||
!
this
.
)
{
return
;
}
this
.
.
clear
(
)
;
this
.
.
=
0
;
const
=
this
.
[
this
.
]
;
const
=
===
.
;
this
.
.
.
=
?
'none'
:
''
;
this
.
.
.
=
?
'none'
:
''
;
this
.
.
=
getOnboardingStepTitle
(
)
;
if
(
===
.
)
{
this
.
_renderPersonalizeSubtitle
(
this
.
)
;
}
else
{
this
.
.
=
getOnboardingStepSubtitle
(
)
;
}
clearNode
(
this
.
)
;
switch
(
)
{
case
.
:
this
.
_renderSignInStep
(
this
.
)
;
break
;
case
.
:
this
.
_renderPersonalizeStep
(
this
.
)
;
break
;
case
.
:
this
.
_renderAiPreferenceStep
(
this
.
)
;
break
;
}
this
.
?.
setAttribute
(
'aria-label'
,
localize
(
'onboarding.step.aria'
,
"Step {0} of {1}: {2}"
,
this
.
+
1
,
this
.
.
,
getOnboardingStepTitle
(
)
)
)
;
}
private
_updateButtonStates
(
)
:
void
{
if
(
this
.
)
{
const
=
this
.
===
0
&&
this
.
===
'instance'
;
this
.
.
.
=
(
this
.
===
0
&&
!
)
?
'none'
:
''
;
}
if
(
this
.
)
{
if
(
this
.
[
this
.
]
===
.
)
{
if
(
this
.
)
{
this
.
.
=
'onboarding-a-btn onboarding-a-btn-primary'
;
this
.
.
=
localize
(
'onboarding.continue'
,
"Continue"
)
;
}
else
{
this
.
.
=
'onboarding-a-btn onboarding-a-btn-secondary'
;
this
.
.
=
localize
(
'onboarding.continueWithoutSignIn'
,
"Continue without Signing In"
)
;
}
}
else
if
(
this
.
_isLastStep
(
)
)
{
this
.
.
=
'onboarding-a-btn onboarding-a-btn-primary'
;
this
.
.
=
localize
(
'onboarding.getStarted'
,
"Get Started"
)
;
}
else
{
this
.
.
=
'onboarding-a-btn onboarding-a-btn-primary'
;
this
.
.
=
localize
(
'onboarding.next'
,
"Continue"
)
;
}
}
if
(
this
.
)
{
if
(
this
.
)
{
this
.
.
remove
(
)
;
this
.
=
undefined
;
}
}
}
private
_renderSignInStep
(
:
)
:
void
{
const
=
append
(
,
$
(
'.onboarding-a-signin'
)
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-brand'
)
)
;
const
=
append
(
,
$
(
'span.onboarding-a-signin-brand-icon'
)
)
;
.
setAttribute
(
'role'
,
'img'
)
;
.
setAttribute
(
'aria-label'
,
.
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-content'
)
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-content-main'
)
)
;
const
=
append
(
,
$
(
'h2.onboarding-a-signin-title'
)
)
;
.
=
localize
(
'onboarding.signIn.heroTitle'
,
"Welcome to VS Code"
)
;
const
=
append
(
,
$
(
'p.onboarding-a-signin-subtitle'
)
)
;
.
=
localize
(
'onboarding.signIn.heroSubtitle'
,
"Sign in to use GitHub Copilot."
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-actions'
)
)
;
if
(
this
.
)
{
const
=
append
(
,
$
(
'.onboarding-a-signin-confirmation'
)
)
;
const
=
append
(
,
$
(
'span'
)
)
;
.
.
add
(
...
.
asClassNameArray
(
.
)
)
;
.
setAttribute
(
'aria-hidden'
,
'true'
)
;
const
=
append
(
,
$
(
'span'
)
)
;
.
=
localize
(
'onboarding.signIn.signedIn'
,
"You're signed in. You can continue to the next step."
)
;
}
else
{
switch
(
this
.
)
{
case
'instance'
:
this
.
_renderEnterpriseInstanceForm
(
)
;
break
;
case
'progress'
:
this
.
_renderEnterpriseSignInProgress
(
)
;
break
;
default
:
this
.
_renderDefaultSignInActions
(
)
;
break
;
}
}
const
=
append
(
,
$
(
'.onboarding-a-signin-footer'
)
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-disclaimer-col'
)
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-disclaimer'
)
)
;
.
append
(
localize
(
'onboarding.signIn.disclaimer.prefix'
,
"By signing in, you agree to {0}'s "
,
.
.
.
)
)
;
this
.
_createInlineLink
(
,
localize
(
'onboarding.signIn.disclaimer.terms'
,
"Terms"
)
,
.
)
;
.
append
(
localize
(
'onboarding.signIn.disclaimer.middle'
,
" and "
)
)
;
this
.
_createInlineLink
(
,
localize
(
'onboarding.signIn.disclaimer.privacy'
,
"Privacy Statement"
)
,
.
)
;
.
append
(
localize
(
'onboarding.signIn.disclaimer.copilotPrefix'
,
". {0} Copilot may show "
,
.
.
.
)
)
;
this
.
_createInlineLink
(
,
localize
(
'onboarding.signIn.disclaimer.publicCode'
,
"public code"
)
,
.
)
;
.
append
(
localize
(
'onboarding.signIn.disclaimer.improveSuffix'
,
" suggestions and use your data to improve the product."
)
)
;
.
append
(
' '
)
;
.
append
(
localize
(
'onboarding.signIn.disclaimer.settingsPrefix'
,
"You can change these "
)
)
;
this
.
_createInlineLink
(
,
localize
(
'onboarding.signIn.disclaimer.settings'
,
"settings"
)
,
this
.
.
resolveGitHubUrl
(
.
)
)
;
.
append
(
localize
(
'onboarding.signIn.disclaimer.suffix'
,
" anytime."
)
)
;
}
private
_renderDefaultSignInActions
(
:
)
:
void
{
const
=
this
.
_registerStepFocusable
(
this
.
_createSignInButton
(
,
'github'
,
localize
(
'onboarding.signIn.github'
,
"Continue with GitHub"
)
,
{
:
true
,
:
localize
(
'onboarding.signIn.github.aria'
,
"Continue with GitHub"
)
}
)
)
;
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'signIn'
,
undefined
,
'github'
)
;
this
.
_handleSignIn
(
)
;
}
)
)
;
const
=
this
.
_registerStepFocusable
(
this
.
_createSignInButton
(
,
'google'
,
localize
(
'onboarding.signIn.google'
,
"Continue with Google"
)
,
{
:
true
,
:
localize
(
'onboarding.signIn.google'
,
"Continue with Google"
)
}
)
)
;
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'signIn'
,
undefined
,
'google'
)
;
this
.
_handleSignIn
(
'google'
)
;
}
)
)
;
const
=
this
.
_registerStepFocusable
(
this
.
_createSignInButton
(
,
'apple'
,
localize
(
'onboarding.signIn.apple'
,
"Continue with Apple"
)
,
{
:
true
,
:
localize
(
'onboarding.signIn.apple'
,
"Continue with Apple"
)
}
)
)
;
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'signIn'
,
undefined
,
'apple'
)
;
this
.
_handleSignIn
(
'apple'
)
;
}
)
)
;
const
=
this
.
_registerStepFocusable
(
this
.
_createSignInButton
(
,
'github-enterprise'
,
localize
(
'onboarding.signIn.ghe'
,
"GHE"
)
,
{
:
true
,
:
localize
(
'onboarding.signIn.ghe.aria'
,
"Continue with GitHub Enterprise"
)
}
)
)
;
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'signIn'
,
undefined
,
'github-enterprise'
)
;
void
this
.
_handleEnterpriseSignIn
(
)
;
}
)
)
;
}
private
static
readonly
GHE_INPUT_ACTION_PADDING
=
28
;
private
_renderEnterpriseInstanceForm
(
:
)
:
void
{
const
=
this
.
_getEnterpriseInstancePromptLabel
(
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-ghe-input'
)
)
;
const
=
this
.
.
add
(
new
Action
(
'onboarding.signIn.enterprise.submit'
,
localize
(
'onboarding.signIn.enterprise.continue'
,
"Continue"
)
,
.
asClassName
(
.
)
,
false
,
)
)
;
const
=
this
.
.
add
(
new
InputBox
(
,
undefined
,
{
:
localize
(
'onboarding.signIn.enterprise.placeholder'
,
'i.e. "octocat" or "https://octocat.ghe.com"...'
)
,
:
,
:
[
]
,
:
,
}
)
)
;
.
=
this
.
;
.
=
.
GHE_INPUT_ACTION_PADDING
;
const
=
this
.
_registerStepFocusable
(
.
)
;
const
submit
=
async
(
)
=>
{
const
=
parseGheInstanceInput
(
.
)
;
if
(
.
===
.
||
.
===
.
)
{
validate
(
)
;
return
;
}
await
this
.
_submitEnterpriseInstance
(
.
)
;
}
;
.
=
;
const
=
append
(
,
$
(
'.onboarding-a-signin-ghe-message'
)
)
;
const
=
(
)
:
boolean
=>
{
this
.
=
.
;
.
.
.
remove
(
'error'
)
;
.
.
remove
(
'error'
,
'info'
)
;
const
=
parseGheInstanceInput
(
.
)
;
switch
(
.
)
{
case
.
:
.
=
;
.
=
false
;
return
false
;
case
.
:
.
.
add
(
'info'
)
;
.
=
localize
(
'onboarding.signIn.enterprise.resolve'
,
"Will resolve to {0}"
,
.
)
;
.
=
true
;
return
true
;
case
.
:
.
=
true
;
.
=
''
;
return
true
;
case
.
:
.
.
.
add
(
'error'
)
;
.
.
add
(
'error'
)
;
.
=
localize
(
'onboarding.signIn.enterprise.invalid'
,
'You must enter a valid {0} instance (i.e. "octocat" or "https://octocat.ghe.com")'
,
.
.
.
)
;
.
=
false
;
return
false
;
}
}
;
this
.
.
add
(
.
onDidChange
(
(
)
=>
{
validate
(
)
;
}
)
)
;
this
.
.
add
(
addDisposableListener
(
,
.
KEY_DOWN
,
=>
{
const
=
new
StandardKeyboardEvent
(
)
;
if
(
.
===
.
)
{
.
preventDefault
(
)
;
void
.
run
(
)
;
return
;
}
if
(
.
===
.
)
{
.
preventDefault
(
)
;
.
stopPropagation
(
)
;
this
.
_logAction
(
'cancelEnterpriseInstancePrompt'
)
;
this
.
=
undefined
;
this
.
_setEnterpriseSignInUiState
(
'options'
)
;
}
}
)
)
;
validate
(
)
;
}
private
_renderEnterpriseSignInProgress
(
:
)
:
void
{
const
=
append
(
,
$
(
'.onboarding-a-signin-ghe-progress'
)
)
;
.
setAttribute
(
'aria-live'
,
'polite'
)
;
const
=
append
(
,
$
(
'span'
)
)
;
.
.
add
(
...
.
asClassNameArray
(
.
)
,
'codicon-modifier-spin'
)
;
.
setAttribute
(
'aria-hidden'
,
'true'
)
;
const
=
append
(
,
$
(
'.onboarding-a-signin-ghe-progress-message'
)
)
;
.
=
localize
(
'onboarding.signIn.enterprise.progress'
,
"Waiting for {0} sign-in to complete..."
,
.
.
.
)
;
}
private
_getEnterpriseInstancePromptLabel
(
)
:
string
{
return
localize
(
'onboarding.signIn.enterprise.prompt'
,
"What is your {0} instance?"
,
.
.
.
)
;
}
private
_setEnterpriseSignInUiState
(
:
)
:
void
{
this
.
=
;
if
(
this
.
[
this
.
]
===
.
&&
this
.
)
{
this
.
_renderStep
(
)
;
this
.
_updateButtonStates
(
)
;
this
.
_focusCurrentStepElement
(
)
;
}
}
private
_createSignInButton
(
:
,
:
'github'
|
'github-enterprise'
|
'google'
|
'apple'
,
:
string
,
?
:
{
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
string
}
)
:
{
const
=
?.
||
?.
;
const
=
append
(
,
$ < HTMLButtonElement>
(
?
'button.onboarding-a-signin-icon-btn'
:
'button.onboarding-a-signin-btn'
)
)
;
.
=
'button'
;
.
=
?.
??
;
.
setAttribute
(
'aria-label'
,
?.
??
)
;
if
(
?.
)
{
.
.
add
(
'primary'
)
;
}
if
(
!
?.
)
{
const
=
append
(
,
$
(
'span.onboarding-a-provider-mark'
)
)
;
.
.
add
(
)
;
.
setAttribute
(
'aria-hidden'
,
'true'
)
;
if
(
===
'github'
||
===
'github-enterprise'
)
{
.
appendChild
(
renderIcon
(
.
)
)
;
}
}
if
(
!
?.
)
{
const
=
append
(
,
$
(
'span.onboarding-a-signin-btn-label'
)
)
;
.
=
;
}
return
;
}
private
async
_handleSignIn
(
?
:
string
)
:
Promise
<
void
>
{
const
=
??
'github'
;
const
=
.
create
(
)
;
try
{
const
=
await
this
.
.
signIn
(
{
:
{
:
'copilot-vscode'
}
,
:
,
}
)
;
if
(
)
{
this
.
=
true
;
this
.
.
publicLog2 < InstallChatEvent, InstallChatClassification>
(
'commandCenter.chatInstall'
,
{
:
'installed'
,
:
.
elapsed
(
)
,
:
undefined
,
}
)
;
this
.
.
executeCommand
(
'workbench.action.chat.triggerSetup'
,
undefined
,
{
:
true
,
:
.
,
}
)
;
this
.
_nextStep
(
)
;
}
}
catch
(
)
{
if
(
isCancellationError
(
)
)
{
this
.
.
publicLog2 < InstallChatEvent, InstallChatClassification>
(
'commandCenter.chatInstall'
,
{
:
'cancelled'
,
:
.
elapsed
(
)
,
:
undefined
,
}
)
;
return
;
}
this
.
.
publicLog2 < InstallChatEvent, InstallChatClassification>
(
'commandCenter.chatInstall'
,
{
:
'failedNotSignedIn'
,
:
.
elapsed
(
)
,
:
undefined
,
}
)
;
this
.
.
notify
(
{
:
.
,
:
localize
(
'onboarding.signIn.error'
,
"Sign-in failed. You can try again later from the Accounts menu."
)
,
}
)
;
}
}
private
async
_handleEnterpriseSignIn
(
)
:
Promise
<
void
>
{
const
=
this
.
.
getValue < string >
(
.
)
;
if
(
typeof
!==
'string'
||
!
GHE_FULL_URI_REGEX
.
test
(
)
)
{
this
.
=
??
''
;
this
.
=
.
create
(
)
;
this
.
_setEnterpriseSignInUiState
(
'instance'
)
;
return
;
}
this
.
=
;
await
this
.
_runEnterpriseSignInSetup
(
)
;
}
private
async
_submitEnterpriseInstance
(
:
string
)
:
Promise
<
void
>
{
try
{
await
this
.
.
updateValue
(
.
,
,
.
USER
)
;
this
.
=
;
await
this
.
_runEnterpriseSignInSetup
(
)
;
}
catch
{
this
.
=
undefined
;
this
.
_setEnterpriseSignInUiState
(
'instance'
)
;
this
.
_notifyEnterpriseSignInError
(
)
;
}
}
private
async
_runEnterpriseSignInSetup
(
)
:
Promise
<
void
>
{
const
=
this
.
??
.
create
(
)
;
const
=
.
.
.
;
this
.
_setEnterpriseSignInUiState
(
'progress'
)
;
try
{
const
=
await
this
.
.
executeCommand < boolean >
(
'workbench.action.chat.triggerSetup'
,
undefined
,
{
:
true
,
:
.
,
}
)
;
if
(
)
{
this
.
=
true
;
this
.
.
publicLog2 < InstallChatEvent, InstallChatClassification>
(
'commandCenter.chatInstall'
,
{
:
'installed'
,
:
.
elapsed
(
)
,
:
undefined
,
}
)
;
this
.
_nextStep
(
)
;
}
else
{
this
.
_setEnterpriseSignInUiState
(
'options'
)
;
}
}
catch
(
)
{
if
(
isCancellationError
(
)
)
{
this
.
_setEnterpriseSignInUiState
(
'options'
)
;
this
.
.
publicLog2 < InstallChatEvent, InstallChatClassification>
(
'commandCenter.chatInstall'
,
{
:
'cancelled'
,
:
.
elapsed
(
)
,
:
undefined
,
}
)
;
return
;
}
this
.
_setEnterpriseSignInUiState
(
'instance'
)
;
this
.
.
publicLog2 < InstallChatEvent, InstallChatClassification>
(
'commandCenter.chatInstall'
,
{
:
'failedNotSignedIn'
,
:
.
elapsed
(
)
,
:
undefined
,
}
)
;
this
.
_notifyEnterpriseSignInError
(
)
;
}
finally
{
this
.
=
undefined
;
}
}
private
_notifyEnterpriseSignInError
(
)
:
void
{
this
.
.
notify
(
{
:
.
,
:
localize
(
'onboarding.signIn.enterprise.error'
,
"GitHub Enterprise sign-in failed. Check your instance URL and try again."
)
,
}
)
;
}
private
_renderPersonalizeStep
(
:
)
:
void
{
const
=
append
(
,
$
(
'.onboarding-a-personalize'
)
)
;
const
=
append
(
,
$
(
'div.onboarding-a-section-label'
)
)
;
.
=
localize
(
'onboarding.personalize.theme'
,
"Color Theme"
)
;
const
=
append
(
,
$
(
'div.onboarding-a-theme-hint'
)
)
;
.
=
localize
(
'onboarding.personalize.themeHint'
,
"You can browse and install more themes later from the Extensions view."
)
;
const
=
append
(
,
$
(
'.onboarding-a-theme-grid'
)
)
;
.
setAttribute
(
'role'
,
'radiogroup'
)
;
.
setAttribute
(
'aria-label'
,
localize
(
'onboarding.personalize.themeLabel'
,
"Choose a color theme"
)
)
;
const
=
this
.
_hasOtherEditors
(
)
;
const
=
.
??
[
]
;
const
:
readonly
[
]
=
?
.
filter
(
=>
!
.
.
startsWith
(
'solarized'
)
)
:
;
if
(
!
)
{
.
.
add
(
'theme-grid-expanded'
)
;
}
const
:
[
]
=
[
]
;
for
(
const
of
)
{
this
.
_createThemeCard
(
,
,
)
;
}
for
(
const
of
)
{
.
setAttribute
(
'tabindex'
,
'0'
)
;
}
const
=
this
.
?
(
.
??
[
]
)
.
filter
(
=>
this
.
!
.
has
(
.
)
)
:
[
]
;
if
(
)
{
const
=
append
(
,
$
(
'div.onboarding-a-section-label.onboarding-a-section-label-keymap'
)
)
;
.
=
localize
(
'onboarding.personalize.keymap'
,
"Keyboard Mapping"
)
;
const
=
append
(
,
$
(
'div.onboarding-a-theme-hint'
)
)
;
.
=
localize
(
'onboarding.personalize.keymapHint'
,
"Coming from another editor? Import your keyboard mapping to feel right at home."
)
;
const
=
append
(
,
$
(
'.onboarding-a-keymap-list'
)
)
;
.
setAttribute
(
'role'
,
'radiogroup'
)
;
.
setAttribute
(
'aria-label'
,
localize
(
'onboarding.personalize.keymapLabel'
,
"Choose a keyboard mapping"
)
)
;
const
:
[
]
=
[
]
;
for
(
const
of
)
{
const
=
this
.
_registerStepFocusable
(
append
(
,
$ < HTMLButtonElement>
(
'button.onboarding-a-keymap-pill'
)
)
)
;
.
=
'button'
;
.
setAttribute
(
'role'
,
'radio'
)
;
.
setAttribute
(
'aria-checked'
,
.
===
this
.
?
'true'
:
'false'
)
;
.
=
.
;
.
push
(
)
;
const
=
append
(
,
$
(
'span'
)
)
;
.
=
.
;
if
(
.
===
this
.
)
{
.
.
add
(
'selected'
)
;
}
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'selectKeymap'
,
undefined
,
.
)
;
this
.
=
.
;
for
(
const
of
)
{
.
.
remove
(
'selected'
)
;
.
setAttribute
(
'aria-checked'
,
'false'
)
;
}
.
.
add
(
'selected'
)
;
.
setAttribute
(
'aria-checked'
,
'true'
)
;
this
.
.
alert
(
localize
(
'onboarding.keymap.selected.alert'
,
"{0} keyboard mapping selected"
,
.
)
)
;
}
)
)
;
}
const
=
.
findIndex
(
=>
.
===
this
.
)
;
this
.
_setupRadioGroupNavigation
(
,
.
max
(
0
,
)
)
;
}
}
private
_renderPersonalizeSubtitle
(
:
)
:
void
{
clearNode
(
)
;
const
=
?
'Cmd'
:
'Ctrl'
;
.
append
(
localize
(
'onboarding.personalize.tip.prefix'
,
"Tip: Press "
)
,
this
.
_createKbd
(
localize
(
{
:
'onboarding.personalize.tip.modifier'
,
:
[
'This is a keyboard modifier key, Ctrl on Windows/Linux or Cmd on Mac'
]
}
,
"{0}"
,
)
)
,
'+'
,
this
.
_createKbd
(
localize
(
'onboarding.personalize.tip.shift'
,
"Shift"
)
)
,
'+'
,
this
.
_createKbd
(
localize
(
'onboarding.personalize.tip.p'
,
"P"
)
)
,
localize
(
'onboarding.personalize.tip.suffix'
,
" to access all VS Code commands."
)
,
)
;
}
private
_createThemeCard
(
:
,
:
,
:
[
]
)
:
void
{
const
=
this
.
_registerStepFocusable
(
append
(
,
$
(
'div.onboarding-a-theme-card'
)
)
)
;
.
push
(
)
;
.
setAttribute
(
'role'
,
'radio'
)
;
.
setAttribute
(
'aria-checked'
,
.
===
this
.
?
'true'
:
'false'
)
;
.
setAttribute
(
'aria-label'
,
.
)
;
if
(
.
===
this
.
)
{
.
.
add
(
'selected'
)
;
}
const
=
append
(
,
$
(
'div.onboarding-a-theme-preview'
)
)
;
const
=
append
(
,
$ < HTMLImageElement>
(
'img.onboarding-a-theme-preview-img'
)
)
;
.
=
''
;
.
=
.
asBrowserUri
(
` vs/workbench/contrib/welcomeOnboarding/browser/media/theme-preview- ${ theme. id} .svg `
)
.
toString
(
true
)
;
const
=
append
(
,
$
(
'div.onboarding-a-theme-label'
)
)
;
.
=
.
;
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'selectTheme'
,
undefined
,
.
)
;
this
.
_selectTheme
(
)
;
for
(
const
of
)
{
.
.
remove
(
'selected'
)
;
.
setAttribute
(
'aria-checked'
,
'false'
)
;
}
.
.
add
(
'selected'
)
;
.
setAttribute
(
'aria-checked'
,
'true'
)
;
this
.
.
alert
(
localize
(
'onboarding.theme.selected.alert'
,
"{0} theme selected"
,
.
)
)
;
}
)
)
;
this
.
.
add
(
addDisposableListener
(
,
.
KEY_DOWN
,
(
:
)
=>
{
if
(
.
===
'Enter'
||
.
===
' '
)
{
.
preventDefault
(
)
;
.
click
(
)
;
}
}
)
)
;
}
private
async
_selectTheme
(
:
)
:
Promise
<
void
>
{
this
.
=
.
;
const
=
await
this
.
.
getColorThemes
(
)
;
const
=
.
find
(
=>
.
===
.
)
;
if
(
)
{
this
.
.
setColorTheme
(
.
,
.
USER
)
;
}
}
private
async
_applyKeymap
(
:
string
)
:
Promise
<
void
>
{
const
=
(
.
??
[
]
)
.
find
(
=>
.
===
)
;
if
(
!
?.
)
{
return
;
}
try
{
const
=
await
this
.
.
getExtensions
(
[
{
:
.
}
]
,
.
)
;
if
(
.
>
0
)
{
await
this
.
.
installFromGallery
(
[
0
]
,
{
:
{
[
EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT
]
:
true
}
}
)
;
}
}
catch
{
this
.
.
notify
(
{
:
.
,
:
localize
(
'onboarding.keymap.installError'
,
"Could not install {0} keymap. You can install it later from Extensions."
,
.
)
,
}
)
;
}
}
private
_hasOtherEditors
(
)
:
boolean
{
const
=
this
.
?
(
.
??
[
]
)
.
filter
(
=>
this
.
!
.
has
(
.
)
)
:
[
]
;
return
.
some
(
=>
.
!==
'vscode'
)
;
}
private
async
_detectInstalledEditors
(
)
:
Promise
<
<
string
>>
{
const
=
new
Set< string >
(
[
'vscode'
]
)
;
const
=
this
.
.
userHome
(
{
:
true
}
)
;
interface
EditorCheck
{
:
string
;
:
URI
[
]
}
const
:
[
]
=
[
]
;
if
(
)
{
const
=
URI
.
joinPath
(
,
'AppData'
,
'Local'
)
;
.
push
(
{
:
'sublime'
,
:
[
URI
.
file
(
'C:\\Program Files\\Sublime Text\\sublime_text.exe'
)
,
URI
.
file
(
'C:\\Program Files\\Sublime Text 3\\sublime_text.exe'
)
]
}
,
{
:
'intellij'
,
:
[
URI
.
joinPath
(
,
'JetBrains'
,
'Toolbox'
)
]
}
,
{
:
'vim'
,
:
[
URI
.
joinPath
(
,
'_vimrc'
)
,
URI
.
joinPath
(
,
'nvim'
,
'init.vim'
)
,
URI
.
joinPath
(
,
'nvim'
,
'init.lua'
)
]
}
,
{
:
'eclipse'
,
:
[
URI
.
file
(
'C:\\Program Files\\Eclipse\\eclipse.exe'
)
,
URI
.
file
(
'C:\\Program Files\\eclipse\\eclipse.exe'
)
]
}
,
{
:
'notepadpp'
,
:
[
URI
.
file
(
'C:\\Program Files\\Notepad++\\notepad++.exe'
)
,
URI
.
file
(
'C:\\Program Files (x86)\\Notepad++\\notepad++.exe'
)
]
}
,
)
;
}
else
if
(
)
{
.
push
(
{
:
'sublime'
,
:
[
URI
.
file
(
'/Applications/Sublime Text.app'
)
]
}
,
{
:
'intellij'
,
:
[
URI
.
file
(
'/Applications/IntelliJ IDEA.app'
)
,
URI
.
file
(
'/Applications/IntelliJ IDEA CE.app'
)
]
}
,
{
:
'vim'
,
:
[
URI
.
joinPath
(
,
'.vimrc'
)
,
URI
.
joinPath
(
,
'.config'
,
'nvim'
,
'init.vim'
)
,
URI
.
joinPath
(
,
'.config'
,
'nvim'
,
'init.lua'
)
]
}
,
{
:
'eclipse'
,
:
[
URI
.
file
(
'/Applications/Eclipse.app'
)
,
URI
.
file
(
'/Applications/Eclipse IDE.app'
)
]
}
,
{
:
'notepadpp'
,
:
[
URI
.
file
(
'/Applications/Notepad++.app'
)
]
}
,
)
;
}
else
if
(
)
{
.
push
(
{
:
'sublime'
,
:
[
URI
.
file
(
'/usr/bin/subl'
)
,
URI
.
file
(
'/opt/sublime_text/sublime_text'
)
]
}
,
{
:
'intellij'
,
:
[
URI
.
joinPath
(
,
'.local'
,
'share'
,
'JetBrains'
,
'Toolbox'
)
,
URI
.
file
(
'/opt/idea'
)
]
}
,
{
:
'vim'
,
:
[
URI
.
joinPath
(
,
'.vimrc'
)
,
URI
.
joinPath
(
,
'.config'
,
'nvim'
,
'init.vim'
)
,
URI
.
joinPath
(
,
'.config'
,
'nvim'
,
'init.lua'
)
]
}
,
{
:
'eclipse'
,
:
[
URI
.
file
(
'/usr/bin/eclipse'
)
,
URI
.
file
(
'/opt/eclipse/eclipse'
)
,
URI
.
joinPath
(
,
'eclipse'
,
'eclipse'
)
]
}
,
{
:
'notepadpp'
,
:
[
URI
.
file
(
'/usr/bin/notepadqq'
)
,
URI
.
file
(
'/snap/notepad-plus-plus/current'
)
]
}
,
)
;
}
await
Promise
.
all
(
.
map
(
async
=>
{
for
(
const
of
.
)
{
try
{
if
(
await
this
.
.
exists
(
)
)
{
.
add
(
.
)
;
return
;
}
}
catch
{
}
}
}
)
)
;
return
;
}
private
_renderAiPreferenceStep
(
:
)
:
void
{
const
=
append
(
,
$
(
'.onboarding-a-ai-pref'
)
)
;
const
=
append
(
,
$
(
'.onboarding-a-ai-pref-cards'
)
)
;
.
setAttribute
(
'role'
,
'radiogroup'
)
;
.
setAttribute
(
'aria-label'
,
localize
(
'onboarding.aiPref.label'
,
"Choose your AI collaboration style"
)
)
;
const
:
[
]
=
[
]
;
for
(
const
of
ONBOARDING_AI_PREFERENCE_OPTIONS
)
{
const
=
this
.
_registerStepFocusable
(
append
(
,
$ < HTMLButtonElement>
(
'button.onboarding-a-ai-pref-card'
)
)
)
;
.
=
'button'
;
.
.
=
.
;
.
setAttribute
(
'role'
,
'radio'
)
;
.
setAttribute
(
'aria-checked'
,
.
===
this
.
?
'true'
:
'false'
)
;
.
push
(
)
;
if
(
.
===
this
.
)
{
.
.
add
(
'selected'
)
;
}
const
=
append
(
,
$
(
'span.onboarding-a-ai-pref-card-icon'
)
)
;
.
setAttribute
(
'aria-hidden'
,
'true'
)
;
const
=
[
.
as
keyof
typeof
]
??
.
;
.
appendChild
(
renderIcon
(
)
)
;
const
=
append
(
,
$
(
'div.onboarding-a-ai-pref-card-title'
)
)
;
.
=
.
;
const
=
append
(
,
$
(
'div.onboarding-a-ai-pref-card-desc'
)
)
;
.
=
.
;
this
.
.
add
(
addDisposableListener
(
,
.
CLICK
,
(
)
=>
{
this
.
_logAction
(
'selectAiMode'
,
undefined
,
.
)
;
this
.
=
.
;
for
(
const
of
)
{
.
.
toggle
(
'selected'
,
.
.
===
.
)
;
.
setAttribute
(
'aria-checked'
,
.
.
===
.
?
'true'
:
'false'
)
;
}
this
.
_applyAiPreference
(
.
)
;
this
.
.
alert
(
localize
(
'onboarding.aiPref.selected.alert'
,
"{0} selected"
,
.
)
)
;
}
)
)
;
}
const
=
ONBOARDING_AI_PREFERENCE_OPTIONS
.
findIndex
(
=>
.
===
this
.
)
;
this
.
_setupRadioGroupNavigation
(
,
.
max
(
0
,
)
)
;
const
=
append
(
,
$
(
'div.onboarding-a-ai-pref-hint'
)
)
;
.
=
localize
(
'onboarding.aiPref.hint'
,
"You can change this anytime in Settings."
)
;
}
private
_applyAiPreference
(
:
)
:
void
{
switch
(
)
{
case
.
:
this
.
.
updateValue
(
'chat.agent.autoFix'
,
false
,
.
USER
)
;
break
;
case
.
:
this
.
.
updateValue
(
'chat.agent.autoFix'
,
true
,
.
USER
)
;
break
;
case
.
:
this
.
.
updateValue
(
'chat.agent.autoFix'
,
true
,
.
USER
)
;
break
;
}
}
private
_createKbd
(
:
string
)
:
{
const
=
$
(
'kbd.onboarding-a-kbd'
)
;
.
=
;
return
;
}
private
_createInlineLink
(
:
,
:
string
,
:
string
)
:
{
const
=
this
.
_registerStepFocusable
(
append
(
,
$ < HTMLAnchorElement>
(
'a.onboarding-a-inline-link'
)
)
)
;
.
=
;
.
=
;
.
=
'_blank'
;
.
=
'noopener'
;
return
;
}
private
_setupRadioGroupNavigation
(
:
[
]
,
:
number
)
:
void
{
for
(
let
=
0
;
<
.
;
++
)
{
[
]
.
setAttribute
(
'tabindex'
,
===
?
'0'
:
'-1'
)
;
}
for
(
let
=
0
;
<
.
;
++
)
{
this
.
.
add
(
addDisposableListener
(
[
]
,
.
KEY_DOWN
,
(
:
)
=>
{
const
=
new
StandardKeyboardEvent
(
)
;
let
:
number
|
undefined
;
if
(
.
===
.
||
.
===
.
)
{
=
(
+
1
)
%
.
;
}
else
if
(
.
===
.
||
.
===
.
)
{
=
(
-
1
+
.
)
%
.
;
}
else
if
(
.
===
.
)
{
=
0
;
}
else
if
(
.
===
.
)
{
=
.
-
1
;
}
if
(
!==
undefined
)
{
.
preventDefault
(
)
;
.
stopPropagation
(
)
;
[
]
.
setAttribute
(
'tabindex'
,
'-1'
)
;
[
]
.
setAttribute
(
'tabindex'
,
'0'
)
;
[
]
.
focus
(
)
;
[
]
.
click
(
)
;
}
}
)
)
;
}
}
private
_trapTab
(
:
,
:
boolean
)
:
void
{
if
(
!
this
.
)
{
return
;
}
const
=
this
.
_getFocusableElements
(
)
;
if
(
.
===
0
)
{
.
preventDefault
(
)
;
return
;
}
const
=
[
0
]
;
const
=
[
.
-
1
]
;
if
(
&&
getActiveWindow
(
)
.
.
===
)
{
.
preventDefault
(
)
;
.
focus
(
)
;
}
else
if
(
!
&&
getActiveWindow
(
)
.
.
===
)
{
.
preventDefault
(
)
;
.
focus
(
)
;
}
}
private
_getFocusableElements
(
)
:
[
]
{
return
[
...
(
this
.
?
[
this
.
]
:
[
]
)
,
...
this
.
,
...
this
.
]
.
filter
(
=>
this
.
_isTabbable
(
)
)
;
}
private
_focusCurrentStepElement
(
)
:
void
{
const
=
this
.
.
find
(
=>
this
.
_isTabbable
(
)
)
;
(
??
this
.
??
this
.
)
?.
focus
(
)
;
}
private
_registerStepFocusable < T extends HTMLElement>
(
:
T
)
:
T
{
this
.
.
push
(
)
;
return
;
}
private
_isTabbable
(
:
)
:
boolean
{
if
(
!
.
||
.
getAttribute
(
'aria-hidden'
)
===
'true'
||
.
===
-
1
||
.
hasAttribute
(
'disabled'
)
)
{
return
false
;
}
const
=
getActiveWindow
(
)
.
getComputedStyle
(
)
;
return
.
!==
'none'
&&
.
!==
'hidden'
;
}
private
_logStepView
(
)
:
void
{
const
=
this
.
[
this
.
]
;
this
.
.
publicLog2 < OnboardingStepViewEvent, OnboardingStepViewClassification>
(
'welcomeOnboarding.stepView'
,
{
:
,
:
this
.
+
1
,
}
)
;
}
private
_logAction
(
:
string
,
?
:
,
?
:
string
)
:
void
{
this
.
.
publicLog2 < OnboardingActionEvent, OnboardingActionClassification>
(
'welcomeOnboarding.actionExecuted'
,
{
,
:
??
this
.
[
this
.
]
,
:
??
undefined
,
}
)
;
}
private
_removeFromDOM
(
)
:
void
{
if
(
this
.
)
{
this
.
.
remove
(
)
;
this
.
=
undefined
;
}
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
=
undefined
;
this
.
.
=
0
;
this
.
.
=
0
;
this
.
=
'options'
;
this
.
=
''
;
this
.
=
undefined
;
this
.
=
false
;
this
.
.
clear
(
)
;
this
.
.
clear
(
)
;
if
(
this
.
)
{
this
.
.
focus
(
)
;
this
.
=
undefined
;
}
this
.
=
0
;
}
dispose
(
)
:
void
{
this
.
_removeFromDOM
(
)
;
super
.
dispose
(
)
;
}
}