ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
parameters:
- name: VSCODE_ARCH
type: string
- name: VSCODE_CIBUILD
type: boolean
- name: VSCODE_QUALITY
type: string
- name: VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL
type: boolean
default: false
- name: VSCODE_RUN_ELECTRON_TESTS
type: boolean
default: false
- name: VSCODE_RUN_BROWSER_TESTS
type: boolean
default: false
- name: VSCODE_RUN_REMOTE_TESTS
type: boolean
default: false
steps:
- ../../common/checkout.yml@self
$ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS true)
../../copilot/pulltestcache.yml@self
NodeTool@0
fromFile
.nvmrc
$ if or(eq(parameters.VSCODE_CIBUILD true) eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL true))
node build/azurepipelines/common/disableFoundryLocalInstall.ts
Disable Foundry Local Native Install
UsePythonVersion@0
../../distro/downloaddistro.yml@self
AzureKeyVault@2
vscodeossbuildsecrets
vscodeossbuildsecrets
node build/setupnpmregistry.ts $envNPM_REGISTRY
and(succeeded() ne(variables 'none'))
Setup NPM Registry
../../common/applysdkcanary.yml@self
Prepare node_modules cache key
Cache@2
.build/node_modules_cache
NODE_MODULES_RESTORED
Restore node_modules cache
7z.exe x .build/node_modules_cache/cache.7z aoa
and(succeeded() eq(variables.NODE_MODULES_RESTORED 'true'))
Extract node_modules cache
and(succeeded() ne(variables 'none'))
Setup NPM
npmAuthenticate@0
$(NPMRC_PATH)
and(succeeded() ne(variables 'none'))
Setup NPM Authentication
$ if and(eq(parameters.VSCODE_CIBUILD false) eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL false))
../../common/foundrylocal.yml@self
prepare
$(VSCODE_ARCH)
Install dependencies
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
$ if and(eq(parameters.VSCODE_CIBUILD false) eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL false))
../../common/foundrylocal.yml@self
install
node build/azurepipelines/common/checkNativeOptionalDeps.ts
Verify native optional dependency binaries
node build/azurepipelines/distro/mixinnpm.ts
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
Mixin distro node modules
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
Create node_modules archive
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon detach wait node build/azurepipelines/common/waitForArtifacts.ts "producer=unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli=WindowsCLI_$ upper(parameters.VSCODE_ARCH) " unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli
$(System.AccessToken)
Wait for CLI artifact (background)
node build/azurepipelines/distro/mixinquality.ts
Mixin distro quality
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon detach wait node build/azurepipelines/common/downloadNotice.ts
$(System.AccessToken)
$(VSCODE_OVERWRITE_TPN)
Pull CG NOTICE (background)
../../common/installbuiltinextensions.yml@self
node build/npm/electronTypes.ts
Prepare Electron types
../../common/agentsdkproduce.yml@self
win32
../../common/dictationruntimeproduce.yml@self
win32
npx deemon detach wait node build/azurepipelines/common/downloadCopilotVsix.ts
$(System.AccessToken)
Download Copilot VSIX (background)
../../common/mixinvscodecapi.yml@self
npm run gulp coreci
Compile
node build/azurepipelines/common/extracttelemetry.ts
Generate lists of telemetry events
$ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS true) eq(parameters.VSCODE_RUN_BROWSER_TESTS true) eq(parameters.VSCODE_RUN_REMOTE_TESTS true))
Compile test suites (nonOSS)
and(succeeded() eq(variables 'false'))
$ if ne(parameters.VSCODE_CIBUILD true)
Generate Group Policy definitions
$ if and(ne(parameters.VSCODE_CIBUILD true) ne(parameters.VSCODE_QUALITY 'exploration'))
node build/win32/explorerdllfetcher.ts .build/win32/appx
Download Explorer dll
npx deemon attach node build/azurepipelines/common/downloadCopilotVsix.ts
$(System.AccessToken)
Download Copilot VSIX
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon attach node build/azurepipelines/common/downloadNotice.ts
$(System.AccessToken)
$(VSCODE_OVERWRITE_TPN)
Apply CG NOTICE
$(System.AccessToken)
Build client
$ if and(ne(parameters.VSCODE_CIBUILD true) ne(parameters.VSCODE_QUALITY 'exploration'))
Prepare appx package
$(System.AccessToken)
Build server
$ if eq(parameters.VSCODE_ARCH 'x64')
node build/azurepipelines/common/smokeTestAgentHost.ts "$(Agent.BuildDirectory)\vscodeserverwin32$(VSCODE_ARCH)"
🧪 Smoke test packaged Agent Host
$(System.AccessToken)
Build server (web)
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon attach node build/azurepipelines/common/waitForArtifacts.ts "producer=unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli=WindowsCLI_$ upper(parameters.VSCODE_ARCH) " unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli
$(System.AccessToken)
Wait for CLI artifact
DownloadPipelineArtifact@2
unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli
$(Build.ArtifactStagingDirectory)/cli
Download VS Code CLI
Move VS Code CLI
UseDotNet@2
6.x
EsrpCodeSigning@6
vscodeesrp
$(ESRP_CLIENT_ID)
$(ESRP_TENANT_ID)
vscodeesrp
esrpsign
.
noop
Find ESRP CLI
$(System.AccessToken)
✍️ Codesign
$ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS true) eq(parameters.VSCODE_RUN_BROWSER_TESTS true) eq(parameters.VSCODE_RUN_REMOTE_TESTS true))
productbuildwin32test.yml@self
$ parameters.VSCODE_ARCH
$ parameters.VSCODE_RUN_ELECTRON_TESTS
$ parameters.VSCODE_RUN_BROWSER_TESTS
$ parameters.VSCODE_RUN_REMOTE_TESTS
$ if ne(parameters.VSCODE_CIBUILD true)
succeededOrFailed()
$PackageJsonPath = (GetChildItem Path "..\VSCodewin32$(VSCODE_ARCH)" Name "package.json" Recurse SelectObject First 1)
$PackageJson = GetContent Raw Path ..\VSCodewin32$(VSCODE_ARCH)\$PackageJsonPath ConvertFromJson
$Version = $PackageJson.version
mkdir $(Build.ArtifactStagingDirectory)\out\systemsetup Force
mv .build\win32$(VSCODE_ARCH)\systemsetup\VSCodeSetup.exe $(Build.ArtifactStagingDirectory)\out\systemsetup\VSCodeSetup$(VSCODE_ARCH)$Version.exe
mkdir $(Build.ArtifactStagingDirectory)\out\usersetup Force
mv .build\win32$(VSCODE_ARCH)\usersetup\VSCodeSetup.exe $(Build.ArtifactStagingDirectory)\out\usersetup\VSCodeUserSetup$(VSCODE_ARCH)$Version.exe
mkdir $(Build.ArtifactStagingDirectory)\out\archive Force
mv .build\win32$(VSCODE_ARCH)\VSCodewin32$(VSCODE_ARCH).zip $(Build.ArtifactStagingDirectory)\out\archive\VSCodewin32$(VSCODE_ARCH)$Version.zip
mkdir $(Build.ArtifactStagingDirectory)\out\server Force
mv .build\win32$(VSCODE_ARCH)\vscodeserverwin32$(VSCODE_ARCH).zip $(Build.ArtifactStagingDirectory)\out\server\vscodeserverwin32$(VSCODE_ARCH).zip
mkdir $(Build.ArtifactStagingDirectory)\out\web Force
mv .build\win32$(VSCODE_ARCH)\vscodeserverwin32$(VSCODE_ARCH)web.zip $(Build.ArtifactStagingDirectory)\out\web\vscodeserverwin32$(VSCODE_ARCH)web.zip
echo "
Move artifacts to out directory