Skip to content

Commit bda538f

Browse files
authored
Copilot CLI: Use type-only imports from '@github/copilot/sdk' (#4852)
1 parent b874b1d commit bda538f

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
5-
import { Attachment, SessionOptions, SweCustomAgent } from '@github/copilot/sdk';
5+
import type { Attachment, SessionOptions, SweCustomAgent } from '@github/copilot/sdk';
66
import * as l10n from '@vscode/l10n';
77
import * as vscode from 'vscode';
88
import { ChatExtendedRequestHandler, ChatRequestTurn2, ChatSessionProviderOptionItem, Uri } from 'vscode';

src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { Attachment, SessionOptions, SweCustomAgent } from '@github/copilot/sdk';
6+
import type { Attachment, SessionOptions, SweCustomAgent } from '@github/copilot/sdk';
77
import * as l10n from '@vscode/l10n';
88
import * as vscode from 'vscode';
99
import { ChatExtendedRequestHandler, ChatSessionProviderOptionItem, Uri } from 'vscode';

src/extension/chatSessions/vscode-node/copilotCLIPromptReferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { Attachment } from '@github/copilot/sdk';
6+
import type { Attachment } from '@github/copilot/sdk';
77
import * as l10n from '@vscode/l10n';
88
import type { ChatPromptReference } from 'vscode';
99
import { isLocation } from '../../../util/common/types';

src/extension/prompts/node/agent/test/parseAttachments.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { Attachment } from '@github/copilot/sdk';
6+
import type { Attachment } from '@github/copilot/sdk';
77
import { afterEach, beforeEach, expect, suite, test, vi } from 'vitest';
88
import { IFileSystemService } from '../../../../../platform/filesystem/common/fileSystemService';
99
import { FileType } from '../../../../../platform/filesystem/common/fileTypes';

test/e2e/cli.stest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { SessionOptions } from '@github/copilot/sdk';
6+
import type { SessionOptions } from '@github/copilot/sdk';
77
import assert from 'assert';
88
import * as fs from 'fs/promises';
99
import * as http from 'http';

0 commit comments

Comments
 (0)