ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Integration tests for {@link CopilotApiService.utilityChatCompletion} that
* hit live GitHub Copilot CAPI. Opt-in only: requires a real GitHub OAuth
* token with Copilot entitlement in the `COPILOT_GITHUB_TOKEN` environment
* variable. We deliberately do NOT read `GITHUB_TOKEN` — GitHub Actions
* sets it for every workflow run but it lacks Copilot access, which would
* make `scripts/test-integration.sh` fail on PRs instead of skipping.
*
* Run via `scripts/test-integration.sh`.
*/
import assert from 'assert';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
import { NullLogService } from '../../../../log/common/log.js';
import product from '../../../../product/common/product.js';
import { IProductService } from '../../../../product/common/productService.js';
import { CopilotApiService } from '../../../node/shared/copilotApiService.js';
import createTestGitHubEndpointService
githubToken processenv
hasToken githubToken
productService IProductService _serviceBrand product
CopilotApiService
boundFetch globalThis args globalThisargs
boundFetch productService
hasToken test testskip
service
answer servicegithubToken
messages
role content
role content
assertanswer
hasToken test testskip
service
answer servicegithubToken
messages
role content
role content
assertanswer
hasToken test testskip
service
first servicegithubToken
messages role content
second servicegithubToken
messages role content
assertfirst
assertsecond