ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / build / gulpfile.vscode.ts 899 строк · изменён 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
import { gulp, rename, replace, filter, jsonEditor } from './lib/gulp/facade.ts' ;
import * as fs from 'fs' ;
import * as path from 'path' ;
import es from 'event-stream' ;
import vfs from 'vinyl-fs' ;
import electron from '@vscode/gulp-electron' ;
import * as util from './lib/util.ts' ;
import { getVersion } from './lib/getVersion.ts' ;
import { readISODate writeISODate
task
buildfile
optimize
inlineMeta
packageJson type
product type
crypto
cp
i18n
getProductionDependencies
config
createAsar
minimist
compileBuildWithoutManglingTask compileBuildWithManglingTask
compileNonNativeExtensionsBuildTask compileNativeExtensionsBuildTask compileAllExtensionsBuildTask compileExtensionMediaBuildTask cleanExtensionsBuildTask compileCopilotExtensionBuildTask
copyCodiconsTask
ensureCopilotPlatformPackage getCopilotExcludeFilter getCopilotRuntimePrebuildFiles getCopilotTgrepExcludeFilter getMxcExcludeFilter getRipgrepExcludeFilter prepareBuiltInCopilotRipgrepShim
ensureOSProxyResolverPlatformPackage getOSProxyResolverExcludeFilter getOSProxyResolverPlatformFiles
readAgentSdkResults
readDictationRuntimeResults
useEsbuildTranspile
promisify
globCallback
rceditCallback
spawnTsgo
runEsbuildTranspile runEsbuildBundle
glob globCallback
rcedit rceditCallback
root path meta dirname
commit root
packageLock fs path root
packages Readonly Record version
packageName
version packageLock packages version
version
version
vscodeEntryPoints
buildfile workerEditor
buildfile workerExtensionHost
buildfile workerNotebook
buildfile workerLanguageDetection
buildfile workerLocalFileSearch
buildfile workerProfileAnalysis
buildfile workerOutputLinks
buildfile workerBackgroundTokenization
buildfile workbenchDesktop
buildfile code
vscodeResourceIncludes
vscodeResources
vscodeResourceIncludes
bootstrapEntryPoints
bundleVSCodeTask task task
util
optimize
out
esm
src
entryPoints
vscodeEntryPoints
bootstrapEntryPoints
resources vscodeResources
entryPoint entryPoint entryPoint
task bundleVSCodeTask
sourceMappingURLBase
isCI process env process env process env
useCdnSourceMapsForPackagingTasks isCI
stripSourceMapsInPackagingTasks isCI
minifyVSCodeTask task task
bundleVSCodeTask
util
optimize
task minifyVSCodeTask
task task task
task task Task
task
task task Task
task task Task
task task Task
task task task
copyCodiconsTask
compileNonNativeExtensionsBuildTask
compileExtensionMediaBuildTask
task path root taskName noEmit
task
task
task
task
task
out filenames Record
result Record
filenames filename
fullPath path process out filename
result filename fullPath
result
filename
contents fs filename
hash crypto
contents
hash
destinationFolderName
versionedResourcesFolder util commit
cwd path path root destinationFolderName
versionedResourcesFolder
versioned path cwd versionedResourcesFolder
fs versioned
required
missing required name fs path versioned name
missing length
entry fs promises versioned withFileTypes
source path versioned entry name
target path cwd entry name
entry
entry name
asar path source
fs asar
fs promises target recursive
fs promises asar path target
fs promises source target recursive force
entry name
fs promises source target
targetDefaultApp path cwd
electronDefaultApp path root
fs targetDefaultApp
fs electronDefaultApp
fs promises path targetDefaultApp recursive
fs promises electronDefaultApp targetDefaultApp
platform arch sourceFolderName destinationFolderName _opts stats
destination path path root destinationFolderName
platform platform process platform
out sourceFolderName
versionedResourcesFolder util platform commit
checksums out
src gulp out base
path path dirname path dirname out
util
platformSpecificBuiltInExtensionsExclusions product builtInExtensions ext
ext platforms platforms
set ext platforms platforms
set platform
ext
extensions gulp platformSpecificBuiltInExtensionsExclusions base dot
sourceFilterPattern stripSourceMapsInPackagingTasks
sources es src extensions
sourceFilterPattern dot
version packageJson version
quality product quality quality
quality quality
version quality
name product nameShort
packageJsonUpdates Record name version
platform
packageJsonUpdates desktopName
packageJsonContents
packageJsonStream gulp base
packageJsonUpdates
es file
packageJsonContents file contents
file
productJsonContents
productJsonStream gulp base
json Record
json commit commit
json date out
json checksums checksums
json version version
json copilotVersions
runtime
sdk
agentSdks
Object agentSdks length
json agentSdks agentSdks
dictationRuntime
dictationRuntime
json dictationRuntime dictationRuntime
json
es file
productJsonContents file contents
file
license gulp product licenseFileName base allowEmpty
api gulp
telemetry gulp base dot
jsFilter util data data data path
root path path meta dirname
productionDependencies root
dependenciesSrc productionDependencies d path root d d
depFilterPattern
stripSourceMapsInPackagingTasks
depFilterPattern
cleanedDeps gulp dependenciesSrc base dot
depFilterPattern
util path meta dirname
util path meta dirname
platform arch
copilotRuntimePrebuilds gulp platform arch base dot allowEmpty
platform arch
osProxyResolverPlatformPackage gulp platform arch base dot allowEmpty
deps es cleanedDeps copilotRuntimePrebuilds osProxyResolverPlatformPackage
platform arch
platform arch
platform arch
arch
platform arch
jsFilter
util sourceMappingURLBase
jsFilter restore
path process
mergeStreams
packageJsonStream
productJsonStream
license
api
telemetry
sources
deps
all es mergeStreams
platform
all es all gulp
base
platform
policyDest gulp base
f f dirname
all es all gulp base policyDest
platform
shortcut gulp
product applicationName
product nameShort
policyDest gulp base
f f dirname
all es all shortcut policyDest
electronConfig
config
platform
arch arch arch
ffmpegChromium
result NodeJS ReadWriteStream all
util
util
dot
electronConfig
platform
platform
dot
platform
result es result gulp base
product applicationName
f f basename product applicationName
result es result gulp base
product applicationName
f f basename product applicationName
platform
result es result gulp base allowEmpty
versionedResourcesFolder
result es result gulp base
product nameShort
versionedResourcesFolder
f f basename product applicationName
result es result gulp base
product nameShort
product nameLong
version
commit
product applicationName
versionedResourcesFolder
product serverDataFolderName
quality
f f basename product applicationName f extname
result es result gulp base
product nameShort
f f basename product applicationName
result es result gulp base
product nameShort
product nameLong
version
commit
product applicationName
product serverDataFolderName
quality
f f basename product applicationName f extname
result es result gulp base
versionedResourcesFolder
product nameShort
result es result gulp base
f f dirname
quality quality
result es result gulp base
rawVersion version
appxVersion
result es result gulp base
product win32AppUserModelId
appxVersion
product nameLong
product win32NameVersion
product win32RegValueName
product nameShort
quality
product win32ContextMenu Record clsid win32ContextMenu arch clsid
f f dirname
platform
result es result gulp base
product nameLong
product applicationName
product applicationName
result result
targetPaths bootstrapEntryPoints
packageJsonContents
productJsonContents
result vfs destination
task taskName
task
filePath
resolve
proc cp filePath
proc
proc code code
filePath
filePath
resolve reject
proc cp filePath
out
proc stdout chunk out chunk
proc stderr chunk out chunk
proc reject
proc code
code
process stderr out
destinationFolderName
cwd path path root destinationFolderName
versionedResourcesFolder util commit
deps
cwd ignore
cwd
cwd
cwd
cwd
o o
packageJson fs promises path cwd versionedResourcesFolder
product fs promises path cwd versionedResourcesFolder
baseVersion packageJson version
patchPromises deps dep
basename path dep
fullPath path cwd dep
fullPath
fingerprint
baseVersion
product nameLong
packageJson version
basename
basename
product nameLong
packageJson version
attempt attempt
fullPath fingerprint
error
attempt
resolve resolve attempt
patchPromises
error
platform arch destinationFolderName
outputDir path path root destinationFolderName
versionedResourcesFolder util platform commit
appBase platform
path outputDir
path outputDir versionedResourcesFolder
appNodeModulesDir path appBase
builtInCopilotExtensionDir path appBase
fs builtInCopilotExtensionDir
platform arch builtInCopilotExtensionDir appNodeModulesDir
buildRoot path root
platform arch
platform arch
platform arch opts stats
platform arch opts stats
platform arch
platform arch
platform arch
buildTarget
str str
platform buildTarget platform
arch buildTarget arch
opts buildTarget opts
vscode vscodeMin minified
sourceFolderName
destinationFolderName
packageTasks task Task
compileNativeExtensionsBuildTask
util path buildRoot destinationFolderName
platform arch sourceFolderName destinationFolderName opts
platform arch destinationFolderName
platform
packageTasks destinationFolderName
packageTasks destinationFolderName
vscodeTaskCI task task packageTasks
task vscodeTaskCI
vscodeTask task Task
useEsbuildTranspile
esbuildBundleTask task
sourceFolderName
minified
minified useCdnSourceMapsForPackagingTasks
vscodeTask task task
copyCodiconsTask
cleanExtensionsBuildTask
compileNonNativeExtensionsBuildTask
compileCopilotExtensionBuildTask
compileExtensionMediaBuildTask
esbuildBundleTask
vscodeTaskCI
vscodeTask task task
minified compileBuildWithManglingTask compileBuildWithoutManglingTask
cleanExtensionsBuildTask
compileNonNativeExtensionsBuildTask
compileCopilotExtensionBuildTask
compileExtensionMediaBuildTask
minified minifyVSCodeTask bundleVSCodeTask
vscodeTaskCI
task vscodeTask
vscodeTask
process platform platform process arch arch
task task task vscode
task task task vscodeMin
task task
task
task task Task
compileAllExtensionsBuildTask
pathToMetadata
pathToExtensions
pathToSetup
es
gulp pathToMetadata i18n
gulp pathToSetup i18n
gulp pathToExtensions i18n
vfs
task
options process argv
location
es i18n defaultLanguages i18n extraLanguages language
id language id
gulp
i18n language
vfs
,
}
from
'./lib/date.ts'
;
import
*
as
from
'./lib/gulp/task.ts'
;
import
from
'./buildfile.ts'
;
import
*
as
from
'./lib/optimize.ts'
;
import
{
}
from
'./lib/inlineMeta.ts'
;
import
from
'../package.json'
with
{
:
'json'
}
;
import
from
'../product.json'
with
{
:
'json'
}
;
import
*
as
from
'crypto'
;
import
*
as
from
'child_process'
;
import
*
as
from
'./lib/i18n.ts'
;
import
{
}
from
'./lib/dependencies.ts'
;
import
{
}
from
'./lib/electron.ts'
;
import
{
}
from
'./lib/asar.ts'
;
import
from
'minimist'
;
import
{
,
}
from
'./gulpfile.compile.ts'
;
import
{
,
,
,
,
,
}
from
'./gulpfile.extensions.ts'
;
import
{
}
from
'./lib/compilation.ts'
;
import
{
,
,
,
,
,
,
}
from
'./lib/copilot.ts'
;
import
{
,
,
}
from
'./lib/osProxyResolver.ts'
;
import
{
}
from
'./agent-sdk/common.ts'
;
import
{
}
from
'./dictation-runtime/common.ts'
;
import
{
}
from
'./buildConfig.ts'
;
import
{
}
from
'util'
;
import
from
'glob'
;
import
from
'rcedit'
;
import
{
}
from
'./lib/tsgo.ts'
;
import
{
,
}
from
'./lib/esbuild.ts'
;
const
=
promisify
(
)
;
const
=
promisify
(
)
;
const
=
.
dirname
(
import
.
.
)
;
const
=
getVersion
(
)
;
const
=
JSON
.
parse
(
.
readFileSync
(
.
join
(
,
'package-lock.json'
)
,
'utf8'
)
)
as
{
readonly
?
:
<
<
string
,
{
readonly
?
:
string
}
>>
;
}
;
function
getLockedPackageVersion
(
:
string
)
:
string
{
const
=
.
?.
[
` node_modules/ ${ packageName} `
]
?.
;
if
(
!
)
{
throw
new
Error
(
` Package ${ packageName} is missing a version in package-lock.json. `
)
;
}
return
;
}
const
=
[
.
,
.
,
.
,
.
,
.
,
.
,
.
,
.
,
.
,
.
]
.
flat
(
)
;
const
=
[
'out-build/nls.messages.json'
,
'out-build/nls.keys.json'
,
'out-build/vs/code/electron-browser/workbench/workbench.html'
,
'out-build/vs/sessions/electron-browser/sessions.html'
,
'out-build/vs/base/parts/sandbox/electron-browser/preload.js'
,
'out-build/vs/base/parts/sandbox/electron-browser/preload-aux.js'
,
'out-build/vs/platform/browserView/electron-browser/preload-browserView.js'
,
'out-build/vs/base/node/{terminateProcess.sh,cpuUsage.sh,ps.sh}'
,
'out-build/vs/workbench/browser/parts/editor/media/*.png'
,
'out-build/vs/workbench/contrib/debug/browser/media/*.png'
,
'out-build/vs/workbench/contrib/externalTerminal/**/*.scpt'
,
'out-build/vs/workbench/contrib/terminal/common/scripts/*.fish'
,
'out-build/vs/workbench/contrib/terminal/common/scripts/*.ps1'
,
'out-build/vs/workbench/contrib/terminal/common/scripts/*.psm1'
,
'out-build/vs/workbench/contrib/terminal/common/scripts/*.sh'
,
'out-build/vs/workbench/contrib/terminal/common/scripts/*.zsh'
,
'out-build/vs/workbench/contrib/terminal/common/scripts/psreadline/**'
,
'out-build/vs/platform/accessibilitySignal/browser/media/*.mp3'
,
'out-build/vs/workbench/contrib/agentsVoice/browser/media/*.mp3'
,
'out-build/vs/workbench/contrib/welcomeGettingStarted/common/media/**/*.{svg,png}'
,
'out-build/vs/workbench/contrib/welcomeOnboarding/browser/media/*.svg'
,
'out-build/vs/workbench/contrib/chat/browser/widget/media/chatPet/**/*.{gif,png}'
,
'out-build/vs/sessions/contrib/chat/browser/media/*.svg'
,
'out-build/vs/sessions/contrib/welcome/browser/media/*.svg'
,
'out-build/vs/sessions/contrib/welcome/browser/media/themePreviews/*.svg'
,
'out-build/vs/sessions/prompts/*.prompt.md'
,
'out-build/vs/sessions/skills/**/SKILL.md'
,
'out-build/vs/workbench/contrib/extensions/browser/media/{theme-icon.png,language-icon.svg}'
,
'out-build/vs/workbench/services/extensionManagement/common/media/*.{svg,png}'
,
'out-build/vs/workbench/contrib/webview/browser/pre/*.{js,html}'
,
'out-build/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html'
,
'out-build/vs/editor/common/languages/highlights/*.scm'
,
'out-build/vs/editor/common/languages/injections/*.scm'
]
;
const
=
[
...
,
'!out-build/vs/code/browser/**'
,
'!out-build/vs/editor/standalone/**'
,
'!out-build/vs/code/**/*-dev.html'
,
'!out-build/vs/workbench/contrib/issue/**/*-dev.html'
,
'!**/test/**'
]
;
const
=
[
'out-build/main.js'
,
'out-build/cli.js'
,
'out-build/bootstrap-fork.js'
]
;
const
=
.
define
(
'bundle-vscode'
,
.
series
(
.
rimraf
(
'out-vscode'
)
,
.
bundleTask
(
{
:
'out-vscode'
,
:
{
:
'out-build'
,
:
[
...
,
...
]
,
:
,
skipTSBoilerplateRemoval
:
=>
===
'vs/code/electron-browser/workbench/workbench'
||
===
'vs/sessions/electron-browser/sessions'
}
}
)
)
)
;
.
task
(
)
;
const
=
` https://main.vscode-cdn.net/sourcemaps/ ${ commit} `
;
const
=
!
!
.
[
'CI'
]
||
!
!
.
[
'BUILD_ARTIFACTSTAGINGDIRECTORY'
]
||
!
!
.
[
'GITHUB_WORKSPACE'
]
;
const
=
;
const
=
;
const
=
.
define
(
'minify-vscode'
,
.
series
(
,
.
rimraf
(
'out-vscode-min'
)
,
.
minifyTask
(
'out-vscode'
,
` ${ sourceMappingURLBase} /core `
)
)
)
;
.
task
(
)
;
.
task
(
.
define
(
'core-ci-old'
,
.
series
(
.
task
(
'compile-build-with-mangling'
)
as
.
,
.
parallel
(
.
task
(
'minify-vscode'
)
as
.
,
.
task
(
'minify-vscode-reh'
)
as
.
,
.
task
(
'minify-vscode-reh-web'
)
as
.
,
)
)
)
)
;
.
task
(
.
define
(
'core-ci'
,
.
series
(
,
,
,
writeISODate
(
'out-build'
)
,
.
define
(
'tsgo-typecheck'
,
(
)
=>
spawnTsgo
(
.
join
(
,
'src'
,
'tsconfig.json'
)
,
{
:
'tsgo-typecheck'
,
:
true
}
)
)
,
.
define
(
'esbuild-out-build'
,
(
)
=>
runEsbuildTranspile
(
'out-build'
,
false
)
)
,
.
parallel
(
.
define
(
'esbuild-vscode-min'
,
(
)
=>
runEsbuildBundle
(
'out-vscode-min'
,
true
,
true
,
'desktop'
,
` ${ sourceMappingURLBase} /core `
)
)
,
.
define
(
'esbuild-vscode-reh-min'
,
(
)
=>
runEsbuildBundle
(
'out-vscode-reh-min'
,
true
,
true
,
'server'
,
` ${ sourceMappingURLBase} /core `
)
)
,
.
define
(
'esbuild-vscode-reh-web-min'
,
(
)
=>
runEsbuildBundle
(
'out-vscode-reh-web-min'
,
true
,
true
,
'server-web'
,
` ${ sourceMappingURLBase} /core `
)
)
,
)
)
)
)
;
function
computeChecksums
(
:
string
,
:
string
[
]
)
:
<
string
,
string
>
{
const
:
<
string
,
string
>
=
{
}
;
.
forEach
(
function
(
)
{
const
=
.
join
(
.
cwd
(
)
,
,
)
;
[
]
=
computeChecksum
(
)
;
}
)
;
return
;
}
function
computeChecksum
(
:
string
)
:
string
{
const
=
.
readFileSync
(
)
;
const
=
.
createHash
(
'sha256'
)
.
update
(
)
.
digest
(
'base64'
)
.
replace
(
/ =+ $ /
,
''
)
;
return
;
}
function
getFoundryLocalExcludeFilter
(
)
:
string
[
]
{
return
[
'**'
,
'!**/foundry-local-sdk/prebuilds/**'
,
'!**/foundry-local-sdk/foundry-local-core/**'
,
]
;
}
function
restoreElectronRootForVersionedLayoutTask
(
:
string
)
{
const
=
.
getVersionedResourcesFolder
(
'win32'
,
!
)
;
const
=
.
join
(
.
dirname
(
)
,
)
;
return
async
(
)
=>
{
if
(
!
)
{
return
;
}
const
=
.
join
(
,
)
;
if
(
!
.
existsSync
(
)
)
{
throw
new
Error
(
` [versioned-layout] нет папки версии ${ versioned} `
)
;
}
const
=
[
'icudtl.dat'
,
'resources.pak'
,
'snapshot_blob.bin'
,
'v8_context_snapshot.bin'
,
'version'
]
;
const
=
.
filter
(
=>
!
.
existsSync
(
.
join
(
,
)
)
)
;
if
(
.
)
{
throw
new
Error
(
` [versioned-layout] в папке версии нет ${ missing. join ( ', ' ) } — Electron не запустится `
)
;
}
for
(
const
of
await
.
.
readdir
(
,
{
:
true
}
)
)
{
const
=
.
join
(
,
.
)
;
const
=
.
join
(
,
.
)
;
if
(
.
isDirectory
(
)
)
{
if
(
.
===
'resources'
)
{
const
=
.
join
(
,
'default_app.asar'
)
;
if
(
.
existsSync
(
)
)
{
await
.
.
mkdir
(
,
{
:
true
}
)
;
await
.
.
copyFile
(
,
.
join
(
,
'default_app.asar'
)
)
;
}
continue
;
}
await
.
.
cp
(
,
,
{
:
true
,
:
true
}
)
;
continue
;
}
if
(
.
.
toLowerCase
(
)
.
endsWith
(
'.exe'
)
)
{
continue
;
}
await
.
.
copyFile
(
,
)
;
}
const
=
.
join
(
,
'resources'
,
'default_app.asar'
)
;
const
=
.
join
(
,
'.build'
,
'electron'
,
'resources'
,
'default_app.asar'
)
;
if
(
!
.
existsSync
(
)
)
{
if
(
!
.
existsSync
(
)
)
{
throw
new
Error
(
` [versioned-layout] нет ${ electronDefaultApp} — Electron не запустится без resources/default_app.asar `
)
;
}
await
.
.
mkdir
(
.
dirname
(
)
,
{
:
true
}
)
;
await
.
.
copyFile
(
,
)
;
}
}
;
}
function
packageTask
(
:
string
,
:
string
,
:
string
,
:
string
,
?
:
{
?
:
boolean
}
)
{
const
=
.
join
(
.
dirname
(
)
,
)
;
=
||
.
;
const
task
=
(
)
=>
{
const
=
;
const
=
.
getVersionedResourcesFolder
(
,
!
)
;
const
=
computeChecksums
(
,
[
'vs/base/parts/sandbox/electron-browser/preload.js'
,
'vs/workbench/workbench.desktop.main.js'
,
'vs/workbench/workbench.desktop.main.css'
,
'vs/workbench/api/node/extensionHostProcess.js'
,
'vs/code/electron-browser/workbench/workbench.html'
,
'vs/code/electron-browser/workbench/workbench.js'
,
'vs/sessions/sessions.desktop.main.js'
,
'vs/sessions/sessions.desktop.main.css'
,
'vs/sessions/electron-browser/sessions.html'
,
'vs/sessions/electron-browser/sessions.js'
]
)
;
const
=
.
src
(
+
'/**'
,
{
:
'.'
}
)
.
pipe
(
rename
(
function
(
)
{
.
=
.
!
.
replace
(
new
RegExp
(
'^'
+
)
,
'out'
)
;
}
)
)
.
pipe
(
.
setExecutableBit
(
[
'**/*.sh'
]
)
)
;
const
=
.
.
filter
(
=>
{
if
(
!
(
as
{
?
:
string
[
]
}
)
.
)
{
return
false
;
}
const
=
new
Set
(
(
as
{
?
:
string
[
]
}
)
.
)
;
return
!
.
has
(
)
;
}
)
.
map
(
=>
` !.build/extensions/ ${ ext. name} /** `
)
;
const
=
.
src
(
[
'.build/extensions/**'
,
...
]
,
{
:
'.build'
,
:
true
}
)
;
const
=
?
[
'**'
,
'!**/*.{js,css}.map'
]
:
[
'**'
]
;
const
=
.
merge
(
,
)
.
pipe
(
filter
(
,
{
:
true
}
)
)
;
let
=
.
;
const
=
(
as
{
?
:
string
}
)
.
;
if
(
&&
!==
'stable'
)
{
+=
'-'
+
;
}
const
=
.
;
const
:
<
string
,
unknown
>
=
{
,
}
;
if
(
===
'linux'
)
{
.
=
` ${ product. applicationName} .desktop `
;
}
let
:
string
;
const
=
.
src
(
[
'package.json'
]
,
{
:
'.'
}
)
.
pipe
(
jsonEditor
(
)
)
.
pipe
(
.
through
(
function
(
)
{
=
.
.
toString
(
)
;
this
.
emit
(
'data'
,
)
;
}
)
)
;
let
:
string
;
const
=
.
src
(
[
'product.json'
]
,
{
:
'.'
}
)
.
pipe
(
jsonEditor
(
(
:
<
string
,
unknown
>
)
=>
{
.
=
;
.
=
readISODate
(
)
;
.
=
;
.
=
;
.
=
{
:
getLockedPackageVersion
(
'@github/copilot'
)
,
:
getLockedPackageVersion
(
'@github/copilot-sdk'
)
,
}
;
const
=
readAgentSdkResults
(
)
;
if
(
.
keys
(
)
.
>
0
)
{
.
=
;
}
const
=
readDictationRuntimeResults
(
)
;
if
(
)
{
.
=
;
}
return
;
}
)
)
.
pipe
(
.
through
(
function
(
)
{
=
.
.
toString
(
)
;
this
.
emit
(
'data'
,
)
;
}
)
)
;
const
=
.
src
(
[
.
,
'ThirdPartyNotices.txt'
,
'licenses/**'
]
,
{
:
'.'
,
:
true
}
)
;
const
=
.
src
(
'src/vscode-dts/vscode.d.ts'
)
.
pipe
(
rename
(
'out/vscode-dts/vscode.d.ts'
)
)
;
const
=
.
src
(
'.build/telemetry/**'
,
{
:
'.build/telemetry'
,
:
true
}
)
;
const
=
.
filter
(
=>
!
.
isDirectory
(
)
&&
/ \. js$ /
.
test
(
.
)
)
;
const
=
.
resolve
(
.
join
(
import
.
.
,
'..'
)
)
;
const
=
getProductionDependencies
(
)
;
const
=
.
map
(
=>
.
relative
(
,
)
)
.
map
(
=>
[
` ${ d} /** `
,
` ! ${ d} /**/{test,tests}/** `
]
)
.
flat
(
)
.
concat
(
'!**/*.mk'
)
;
const
=
[
'**'
,
` !**/ ${ config. version} /** `
,
'!**/bin/darwin-arm64-87/**'
,
'!**/package-lock.json'
,
'!**/yarn.lock'
]
;
if
(
)
{
.
push
(
'!**/*.{js,css}.map'
)
;
}
const
=
.
src
(
,
{
:
'.'
,
:
true
}
)
.
pipe
(
filter
(
)
)
.
pipe
(
.
cleanNodeModules
(
.
join
(
import
.
.
,
'.moduleignore'
)
)
)
.
pipe
(
.
cleanNodeModules
(
.
join
(
import
.
.
,
` .moduleignore. ${ process. platform} `
)
)
)
;
ensureCopilotPlatformPackage
(
,
)
;
const
=
.
src
(
getCopilotRuntimePrebuildFiles
(
,
)
,
{
:
'.'
,
:
true
,
:
true
}
)
;
ensureOSProxyResolverPlatformPackage
(
,
)
;
const
=
.
src
(
getOSProxyResolverPlatformFiles
(
,
)
,
{
:
'.'
,
:
true
,
:
true
}
)
;
const
=
.
merge
(
,
,
)
.
pipe
(
filter
(
getCopilotExcludeFilter
(
,
)
)
)
.
pipe
(
filter
(
getCopilotTgrepExcludeFilter
(
,
)
)
)
.
pipe
(
filter
(
getRipgrepExcludeFilter
(
,
)
)
)
.
pipe
(
filter
(
getMxcExcludeFilter
(
)
)
)
.
pipe
(
filter
(
getFoundryLocalExcludeFilter
(
)
)
)
.
pipe
(
filter
(
getOSProxyResolverExcludeFilter
(
,
)
)
)
.
pipe
(
)
.
pipe
(
.
rewriteSourceMappingURL
(
)
)
.
pipe
(
.
)
.
pipe
(
createAsar
(
.
join
(
.
cwd
(
)
,
'node_modules'
)
,
[
'**/*.node'
,
'**/@vscode/ripgrep-universal/bin/**'
,
'**/@github/copilot-{darwin,linux,linuxmusl,win32}-*/**'
,
'**/@devcontainers/cli/**'
,
'**/@microsoft/mxc-sdk/bin/**'
,
'**/node-pty/build/Release/*'
,
'**/node-pty/build/Release/conpty/*'
,
'**/node-pty/lib/worker/conoutSocketWorker.js'
,
'**/node-pty/lib/shared/conout.js'
,
'**/node-pty/package.json'
,
'**/*.wasm'
,
'**/@vscode/vsce-sign/bin/*'
,
]
,
[
'**/*.mk'
,
]
,
[
'node_modules/vsda/**'
,
'node_modules/@vscode/sandbox-runtime/**'
,
'node_modules/@pondwader/socks5-server/**'
,
'node_modules/shell-quote/**'
,
'node_modules/zod/**'
]
,
'node_modules.asar'
)
)
;
const
=
[
,
,
,
,
,
,
]
;
let
=
.
merge
(
...
)
;
if
(
===
'win32'
)
{
=
.
merge
(
,
.
src
(
[
'resources/win32/bower.ico'
,
'resources/win32/c.ico'
,
'resources/win32/code.ico'
,
'resources/win32/config.ico'
,
'resources/win32/cpp.ico'
,
'resources/win32/csharp.ico'
,
'resources/win32/css.ico'
,
'resources/win32/default.ico'
,
'resources/win32/go.ico'
,
'resources/win32/html.ico'
,
'resources/win32/jade.ico'
,
'resources/win32/java.ico'
,
'resources/win32/javascript.ico'
,
'resources/win32/json.ico'
,
'resources/win32/less.ico'
,
'resources/win32/markdown.ico'
,
'resources/win32/php.ico'
,
'resources/win32/powershell.ico'
,
'resources/win32/python.ico'
,
'resources/win32/react.ico'
,
'resources/win32/ruby.ico'
,
'resources/win32/sass.ico'
,
'resources/win32/shell.ico'
,
'resources/win32/sql.ico'
,
'resources/win32/typescript.ico'
,
'resources/win32/vue.ico'
,
'resources/win32/xml.ico'
,
'resources/win32/yaml.ico'
,
'resources/win32/code_70x70.png'
,
'resources/win32/code_150x150.png'
]
,
{
:
'.'
}
)
)
;
}
else
if
(
===
'linux'
)
{
const
=
.
src
(
'.build/policies/linux/**'
,
{
:
'.build/policies/linux'
}
)
.
pipe
(
rename
(
=>
.
=
` policies/ ${ f. dirname} `
)
)
;
=
.
merge
(
,
.
src
(
'resources/linux/code.png'
,
{
:
'.'
}
)
,
)
;
}
else
if
(
===
'darwin'
)
{
const
=
.
src
(
'resources/darwin/bin/code.sh'
)
.
pipe
(
replace
(
'@@APPNAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@NAME@@'
,
.
)
)
.
pipe
(
rename
(
'bin/code'
)
)
;
const
=
.
src
(
'.build/policies/darwin/**'
,
{
:
'.build/policies/darwin'
}
)
.
pipe
(
rename
(
=>
.
=
` policies/ ${ f. dirname} `
)
)
;
=
.
merge
(
,
,
)
;
}
const
=
{
...
,
,
:
===
'armhf'
?
'arm'
:
,
:
false
}
;
let
:
.
=
.
pipe
(
.
skipDirectories
(
)
)
.
pipe
(
.
fixWin32DirectoryPermissions
(
)
)
.
pipe
(
filter
(
[
'**'
,
'!**/.github/**'
]
,
{
:
true
}
)
)
.
pipe
(
electron
(
)
)
.
pipe
(
filter
(
[
'**'
,
'!LICENSE'
,
'!version'
,
...
(
===
'darwin'
?
[
'!**/Contents/Applications'
,
'!**/Contents/Applications/**'
]
:
[
]
)
,
...
(
===
'win32'
?
[
'!**/electron_proxy.exe'
]
:
[
]
)
,
]
,
{
:
true
}
)
)
;
if
(
===
'linux'
)
{
=
.
merge
(
,
.
src
(
'resources/completions/bash/code'
,
{
:
'.'
}
)
.
pipe
(
replace
(
'@@APPNAME@@'
,
.
)
)
.
pipe
(
rename
(
function
(
)
{
.
=
.
;
}
)
)
)
;
=
.
merge
(
,
.
src
(
'resources/completions/zsh/_code'
,
{
:
'.'
}
)
.
pipe
(
replace
(
'@@APPNAME@@'
,
.
)
)
.
pipe
(
rename
(
function
(
)
{
.
=
'_'
+
.
;
}
)
)
)
;
}
if
(
===
'win32'
)
{
=
.
merge
(
,
.
src
(
'resources/win32/bin/code.js'
,
{
:
'resources/win32'
,
:
true
}
)
)
;
if
(
)
{
=
.
merge
(
,
.
src
(
'resources/win32/versioned/bin/code.cmd'
,
{
:
'resources/win32/versioned'
}
)
.
pipe
(
replace
(
'@@NAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@VERSIONFOLDER@@'
,
)
)
.
pipe
(
rename
(
function
(
)
{
.
=
.
;
}
)
)
)
;
=
.
merge
(
,
.
src
(
'resources/win32/versioned/bin/code.sh'
,
{
:
'resources/win32/versioned'
}
)
.
pipe
(
replace
(
'@@NAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@PRODNAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@VERSION@@'
,
)
)
.
pipe
(
replace
(
'@@COMMIT@@'
,
String
(
)
)
)
.
pipe
(
replace
(
'@@APPNAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@VERSIONFOLDER@@'
,
)
)
.
pipe
(
replace
(
'@@SERVERDATAFOLDER@@'
,
.
||
'.vscode-remote'
)
)
.
pipe
(
replace
(
'@@QUALITY@@'
,
!
)
)
.
pipe
(
rename
(
function
(
)
{
.
=
.
;
.
=
''
;
}
)
)
)
;
}
else
{
=
.
merge
(
,
.
src
(
'resources/win32/bin/code.cmd'
,
{
:
'resources/win32'
}
)
.
pipe
(
replace
(
'@@NAME@@'
,
.
)
)
.
pipe
(
rename
(
function
(
)
{
.
=
.
;
}
)
)
)
;
=
.
merge
(
,
.
src
(
'resources/win32/bin/code.sh'
,
{
:
'resources/win32'
}
)
.
pipe
(
replace
(
'@@NAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@PRODNAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@VERSION@@'
,
)
)
.
pipe
(
replace
(
'@@COMMIT@@'
,
String
(
)
)
)
.
pipe
(
replace
(
'@@APPNAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@SERVERDATAFOLDER@@'
,
.
||
'.vscode-remote'
)
)
.
pipe
(
replace
(
'@@QUALITY@@'
,
String
(
)
)
)
.
pipe
(
rename
(
function
(
)
{
.
=
.
;
.
=
''
;
}
)
)
)
;
}
=
.
merge
(
,
.
src
(
'resources/win32/VisualElementsManifest.xml'
,
{
:
'resources/win32'
}
)
.
pipe
(
replace
(
'@@VERSIONFOLDER@@'
,
?
` ${ versionedResourcesFolder} \\ `
:
''
)
)
.
pipe
(
rename
(
.
+
'.VisualElementsManifest.xml'
)
)
)
;
=
.
merge
(
,
.
src
(
'.build/policies/win32/**'
,
{
:
'.build/policies/win32'
}
)
.
pipe
(
rename
(
=>
.
=
` policies/ ${ f. dirname} `
)
)
)
;
if
(
===
'stable'
||
===
'insider'
)
{
=
.
merge
(
,
.
src
(
'.build/win32/appx/**'
,
{
:
'.build/win32'
}
)
)
;
const
=
.
replace
(
/ -\w + $ /
,
''
)
.
split
(
'.'
)
;
const
=
` ${ rawVersion[ 0 ] } .0. ${ rawVersion[ 1 ] } . ${ rawVersion[ 2 ] } `
;
=
.
merge
(
,
.
src
(
'resources/win32/appx/AppxManifest.xml'
,
{
:
'.'
}
)
.
pipe
(
replace
(
'@@AppxPackageName@@'
,
.
)
)
.
pipe
(
replace
(
'@@AppxPackageVersion@@'
,
)
)
.
pipe
(
replace
(
'@@AppxPackageDisplayName@@'
,
.
)
)
.
pipe
(
replace
(
'@@AppxPackageDescription@@'
,
.
)
)
.
pipe
(
replace
(
'@@ApplicationIdShort@@'
,
.
)
)
.
pipe
(
replace
(
'@@ApplicationExe@@'
,
.
+
'.exe'
)
)
.
pipe
(
replace
(
'@@FileExplorerContextMenuID@@'
,
===
'stable'
?
'OpenWithCode'
:
'OpenWithCodeInsiders'
)
)
.
pipe
(
replace
(
'@@FileExplorerContextMenuCLSID@@'
,
(
as
{
?
:
<
string
,
{
:
string
}
>
}
)
.
!
[
]
.
)
)
.
pipe
(
replace
(
'@@FileExplorerContextMenuDLL@@'
,
` ${ quality === 'stable' ? 'code' : 'code_insider' } _explorer_command_ ${ arch} .dll `
)
)
.
pipe
(
rename
(
=>
.
=
` appx/manifest `
)
)
)
;
}
}
else
if
(
===
'linux'
)
{
=
.
merge
(
,
.
src
(
'resources/linux/bin/code.sh'
,
{
:
'.'
}
)
.
pipe
(
replace
(
'@@PRODNAME@@'
,
.
)
)
.
pipe
(
replace
(
'@@APPNAME@@'
,
.
)
)
.
pipe
(
rename
(
'bin/'
+
.
)
)
)
;
}
=
inlineMeta
(
,
{
:
,
packageJsonFn
:
(
)
=>
,
productJsonFn
:
(
)
=>
}
)
;
return
.
pipe
(
.
dest
(
)
)
;
}
;
.
=
` package- ${ platform} - ${ arch} `
;
return
;
}
function
hasAuthenticodeSignature
(
:
string
)
:
Promise
<
boolean
>
{
return
new
Promise
(
(
)
=>
{
const
=
.
spawn
(
'signtool.exe'
,
[
'verify'
,
'/pa'
,
]
)
;
.
on
(
'error'
,
(
)
=>
resolve
(
false
)
)
;
.
on
(
'exit'
,
=>
resolve
(
===
0
)
)
;
}
)
;
}
async
function
stripAuthenticodeSignature
(
:
string
)
:
Promise
<
void
>
{
if
(
!
await
hasAuthenticodeSignature
(
)
)
{
return
;
}
await
new
Promise < void >
(
(
,
)
=>
{
const
=
.
spawn
(
'signtool.exe'
,
[
'remove'
,
'/s'
,
]
)
;
let
=
''
;
.
?.
on
(
'data'
,
=>
+=
.
toString
(
)
)
;
.
?.
on
(
'data'
,
=>
+=
.
toString
(
)
)
;
.
on
(
'error'
,
)
;
.
on
(
'exit'
,
=>
{
if
(
===
0
)
{
resolve
(
)
;
}
else
{
.
.
write
(
)
;
reject
(
new
Error
(
` signtool remove /s failed for ${ filePath} (exit ${ code} ) `
)
)
;
}
}
)
;
}
)
;
}
function
patchWin32DependenciesTask
(
:
string
)
{
const
=
.
join
(
.
dirname
(
)
,
)
;
return
async
(
)
=>
{
const
=
.
getVersionedResourcesFolder
(
'win32'
,
!
)
;
const
=
(
await
Promise
.
all
(
[
glob
(
'**/*.node'
,
{
,
:
'extensions/node_modules/@parcel/watcher/**'
}
)
,
glob
(
'**/rg.exe'
,
{
}
)
,
glob
(
'**/tgrep.exe'
,
{
}
)
,
glob
(
'**/*explorer_command*.dll'
,
{
}
)
,
glob
(
'**/OneAuthInterop.dll'
,
{
}
)
,
]
)
)
.
flatMap
(
=>
)
;
const
=
JSON
.
parse
(
await
.
.
readFile
(
.
join
(
,
,
'resources'
,
'app'
,
'package.json'
)
,
'utf8'
)
)
;
const
=
JSON
.
parse
(
await
.
.
readFile
(
.
join
(
,
,
'resources'
,
'app'
,
'product.json'
)
,
'utf8'
)
)
;
const
=
.
.
replace
(
/ -. * $ /
,
''
)
;
const
=
.
map < Promise < unknown >>
(
async
=>
{
const
=
.
basename
(
)
;
const
=
.
join
(
,
)
;
await
stripAuthenticodeSignature
(
)
;
const
=
{
'file-version'
:
,
'version-string'
:
{
'CompanyName'
:
'Microsoft Corporation'
,
'FileDescription'
:
.
,
'FileVersion'
:
.
,
'InternalName'
:
,
'LegalCopyright'
:
'Copyright (C) 2026 Microsoft. All rights reserved'
,
'OriginalFilename'
:
,
'ProductName'
:
.
,
'ProductVersion'
:
.
,
}
}
;
for
(
let
=
1
;
;
++
)
{
try
{
await
rcedit
(
,
)
;
break
;
}
catch
(
)
{
if
(
>=
3
)
{
console
.
warn
(
` [patch-win32] rcedit failed for ${ dep} : ${ error instanceof Error ? error. message : error} `
)
;
return
;
}
await
new
Promise
(
=>
setTimeout
(
,
500
*
)
)
;
}
}
}
)
;
try
{
await
Promise
.
all
(
)
;
}
catch
(
)
{
console
.
warn
(
` [patch-win32] не удалось обновить ресурсы PE: ${ error instanceof Error ? error. message : error} `
)
;
}
}
;
}
function
prepareCopilotRipgrepShimTask
(
:
string
,
:
string
,
:
string
)
{
const
=
.
join
(
.
dirname
(
)
,
)
;
return
async
(
)
=>
{
const
=
.
getVersionedResourcesFolder
(
,
!
)
;
const
=
===
'darwin'
?
.
join
(
,
` ${ product. nameLong} .app `
,
'Contents'
,
'Resources'
,
'app'
)
:
.
join
(
,
,
'resources'
,
'app'
)
;
const
=
.
join
(
,
'node_modules.asar.unpacked'
)
;
const
=
.
join
(
,
'extensions'
,
'copilot'
)
;
if
(
!
.
existsSync
(
)
)
{
console
.
warn
(
'[prepareBuiltInCopilotRipgrepShim] copilot extension is not part of this build, skipping'
)
;
return
;
}
prepareBuiltInCopilotRipgrepShim
(
,
,
,
)
;
}
;
}
const
=
.
dirname
(
)
;
const
BUILD_TARGETS
=
[
{
:
'win32'
,
:
'x64'
}
,
{
:
'win32'
,
:
'arm64'
}
,
{
:
'darwin'
,
:
'x64'
,
:
{
:
true
}
}
,
{
:
'darwin'
,
:
'arm64'
,
:
{
:
true
}
}
,
{
:
'linux'
,
:
'x64'
}
,
{
:
'linux'
,
:
'armhf'
}
,
{
:
'linux'
,
:
'arm64'
}
,
]
;
BUILD_TARGETS
.
forEach
(
=>
{
const
dashed
=
(
:
string
)
=>
(
?
` - ${ str} `
:
` `
)
;
const
=
.
;
const
=
.
;
const
=
.
;
const
[
,
]
=
[
''
,
'min'
]
.
map
(
=>
{
const
=
` out-vscode ${ dashed ( minified) } `
;
const
=
` VSCode ${ dashed ( platform) } ${ dashed ( arch) } `
;
const
:
.
[
]
=
[
,
.
rimraf
(
.
join
(
,
)
)
,
packageTask
(
,
,
,
,
)
,
prepareCopilotRipgrepShimTask
(
,
,
)
]
;
if
(
===
'win32'
)
{
.
push
(
patchWin32DependenciesTask
(
)
)
;
.
push
(
restoreElectronRootForVersionedLayoutTask
(
)
)
;
}
const
=
.
define
(
` vscode ${ dashed ( platform) } ${ dashed ( arch) } ${ dashed ( minified) } -ci `
,
.
series
(
...
)
)
;
.
task
(
)
;
let
:
.
;
if
(
)
{
const
=
.
define
(
` esbuild-bundle ${ dashed ( platform) } ${ dashed ( arch) } ${ dashed ( minified) } `
,
(
)
=>
runEsbuildBundle
(
,
!
!
,
true
,
'desktop'
,
&&
?
` ${ sourceMappingURLBase} /core `
:
undefined
)
)
;
=
.
define
(
` vscode ${ dashed ( platform) } ${ dashed ( arch) } ${ dashed ( minified) } `
,
.
series
(
,
,
,
,
,
writeISODate
(
'out-build'
)
,
,
)
)
;
}
else
{
=
.
define
(
` vscode ${ dashed ( platform) } ${ dashed ( arch) } ${ dashed ( minified) } `
,
.
series
(
?
:
,
,
,
,
,
?
:
,
)
)
;
}
.
task
(
)
;
return
;
}
)
;
if
(
.
===
&&
.
===
)
{
.
task
(
.
define
(
'vscode'
,
.
series
(
)
)
)
;
.
task
(
.
define
(
'vscode-min'
,
.
series
(
)
)
)
;
}
}
)
;
.
task
(
.
define
(
'vscode-translations-export'
,
.
series
(
.
task
(
'core-ci'
)
as
.
,
,
function
(
)
{
const
=
'./out-build/nls.metadata.json'
;
const
=
'.build/extensions/*'
;
const
=
'build/win32/i18n/messages.en.isl'
;
return
.
merge
(
.
src
(
)
.
pipe
(
.
createXlfFilesForCoreBundle
(
)
)
,
.
src
(
)
.
pipe
(
.
createXlfFilesForIsl
(
)
)
,
.
src
(
)
.
pipe
(
.
createXlfFilesForExtensions
(
)
)
)
.
pipe
(
.
dest
(
'../vscode-translations-export'
)
)
;
}
)
)
)
;
.
task
(
'vscode-translations-import'
,
function
(
)
{
const
=
minimist
(
.
.
slice
(
2
)
,
{
string
:
'location'
,
default
:
{
:
'../vscode-translations-import'
}
}
)
;
return
.
merge
(
[
...
.
,
...
.
]
.
map
(
=>
{
const
=
.
;
return
.
src
(
` ${ options. location} / ${ id} /vscode-setup/messages.xlf `
)
.
pipe
(
.
prepareIslFiles
(
)
)
.
pipe
(
.
dest
(
` ./build/win32/i18n `
)
)
;
}
)
)
;
}
)
;