Add CopilotRelated command (#59963)

This commit is contained in:
Nathan Shively-Sanders
2024-09-26 16:10:41 -07:00
committed by GitHub
parent da1fb07db0
commit 52c59dbcbe
17 changed files with 298 additions and 1 deletions
+13
View File
@@ -202,6 +202,7 @@ export const enum CommandTypes {
ProvideInlayHints = "provideInlayHints",
WatchChange = "watchChange",
MapCode = "mapCode",
CopilotRelated = "copilotRelated",
}
/**
@@ -2406,6 +2407,18 @@ export interface MapCodeResponse extends Response {
body: readonly FileCodeEdits[];
}
export interface CopilotRelatedRequest extends FileRequest {
command: CommandTypes.CopilotRelated;
arguments: FileRequestArgs;
}
export interface CopilotRelatedItems {
relatedFiles: readonly string[];
}
export interface CopilotRelatedResponse extends Response {
body: CopilotRelatedItems;
}
/**
* Synchronous request for semantic diagnostics of one file.
*/