Skip to content

Commit 6f79d1a

Browse files
authored
Implement BYOI (#2049)
1 parent bd3bd1e commit 6f79d1a

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,10 @@
34683468
"github.copilot.chat.notebook.alternativeFormat": {
34693469
"type": "string",
34703470
"default": "xml",
3471-
"enum": ["xml", "markdown"],
3471+
"enum": [
3472+
"xml",
3473+
"markdown"
3474+
],
34723475
"markdownDescription": "%github.copilot.config.notebook.alternativeFormat%",
34733476
"tags": [
34743477
"advanced",
@@ -3565,7 +3568,10 @@
35653568
]
35663569
},
35673570
"github.copilot.chat.agent.temperature": {
3568-
"type": ["number", "null"],
3571+
"type": [
3572+
"number",
3573+
"null"
3574+
],
35693575
"markdownDescription": "%github.copilot.config.agent.temperature%",
35703576
"tags": [
35713577
"advanced",
@@ -3602,15 +3608,21 @@
36023608
]
36033609
},
36043610
"github.copilot.chat.summarizeAgentConversationHistoryThreshold": {
3605-
"type": ["number", "null"],
3611+
"type": [
3612+
"number",
3613+
"null"
3614+
],
36063615
"markdownDescription": "%github.copilot.config.summarizeAgentConversationHistoryThreshold%",
36073616
"tags": [
36083617
"advanced",
36093618
"experimental"
36103619
]
36113620
},
36123621
"github.copilot.chat.agentHistorySummarizationMode": {
3613-
"type": ["string", "null"],
3622+
"type": [
3623+
"string",
3624+
"null"
3625+
],
36143626
"markdownDescription": "%github.copilot.config.agentHistorySummarizationMode%",
36153627
"tags": [
36163628
"advanced",
@@ -3676,7 +3688,10 @@
36763688
]
36773689
},
36783690
"github.copilot.chat.claudeCode.enabled": {
3679-
"type": ["boolean", "string"],
3691+
"type": [
3692+
"boolean",
3693+
"string"
3694+
],
36803695
"default": false,
36813696
"markdownDescription": "%github.copilot.config.claudeCode.enabled%",
36823697
"tags": [
@@ -3713,7 +3728,10 @@
37133728
]
37143729
},
37153730
"github.copilot.chat.inlineEdits.triggerOnEditorChangeAfterSeconds": {
3716-
"type": ["number", "null"],
3731+
"type": [
3732+
"number",
3733+
"null"
3734+
],
37173735
"markdownDescription": "%github.copilot.config.inlineEdits.triggerOnEditorChangeAfterSeconds%",
37183736
"tags": [
37193737
"advanced",
@@ -5040,7 +5058,7 @@
50405058
"@google/genai": "^1.22.0",
50415059
"@humanwhocodes/gitignore-to-minimatch": "1.0.2",
50425060
"@microsoft/tiktokenizer": "^1.0.10",
5043-
"@vscode/copilot-api": "^0.1.13",
5061+
"@vscode/copilot-api": "^0.2.0",
50445062
"@vscode/extension-telemetry": "^1.2.0",
50455063
"@vscode/l10n": "^0.0.18",
50465064
"@vscode/prompt-tsx": "^0.4.0-alpha.5",

src/platform/endpoint/common/capiClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export abstract class BaseCAPIClientService extends CAPIClient implements ICAPIC
2121

2222
constructor(
2323
hmac: string | undefined,
24-
forceDevMode: boolean,
24+
integrationId: string | undefined,
2525
fetcherService: IFetcherService,
2626
envService: IEnvService
2727
) {
@@ -32,7 +32,7 @@ export abstract class BaseCAPIClientService extends CAPIClient implements ICAPIC
3232
buildType: envService.getBuildType(),
3333
name: envService.getName(),
3434
version: envService.getVersion(),
35-
}, LICENSE_AGREEMENT, fetcherService, hmac, forceDevMode);
35+
}, LICENSE_AGREEMENT, fetcherService, hmac, integrationId);
3636
}
3737
}
3838
export const ICAPIClientService = createServiceIdentifier<ICAPIClientService>('ICAPIClientService');

src/platform/endpoint/node/capiClientImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class CAPIClientImpl extends BaseCAPIClientService {
1515
) {
1616
super(
1717
process.env.HMAC_SECRET,
18-
!!process.env.FORCE_DEV_INTEGRATION,
18+
process.env.VSCODE_COPILOT_INTEGRATION_ID,
1919
fetcherService,
2020
envService
2121
);

0 commit comments

Comments
 (0)