@github/copilot-language-server 1.316.0 → 1.318.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/types.d.ts +7 -1
- package/dist/main.js +565 -479
- package/dist/main.js.map +3 -3
- package/native/darwin-arm64/copilot-language-server +0 -0
- package/native/darwin-x64/copilot-language-server +0 -0
- package/native/linux-arm64/copilot-language-server +0 -0
- package/native/linux-x64/copilot-language-server +0 -0
- package/native/win32-x64/copilot-language-server.exe +0 -0
- package/package.json +2 -2
package/dist/api/types.d.ts
CHANGED
|
@@ -86,6 +86,12 @@ export type ContextUsageStatistics = {
|
|
|
86
86
|
usageDetails?: ContextItemUsageDetails[];
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
+
export type ProposedTextEdit = TextEdit & {
|
|
90
|
+
positionAfterEdit: Position;
|
|
91
|
+
// Indicates whether the edit is suggested by the IDE. Otherwise it's assumed to be speculative
|
|
92
|
+
source?: 'selectedCompletionInfo';
|
|
93
|
+
};
|
|
94
|
+
|
|
89
95
|
export interface DocumentContext {
|
|
90
96
|
uri: DocumentUri;
|
|
91
97
|
languageId: string;
|
|
@@ -95,7 +101,7 @@ export interface DocumentContext {
|
|
|
95
101
|
*/
|
|
96
102
|
offset: number;
|
|
97
103
|
position: Position;
|
|
98
|
-
proposedEdits?:
|
|
104
|
+
proposedEdits?: ProposedTextEdit[];
|
|
99
105
|
}
|
|
100
106
|
export interface ResolveRequest {
|
|
101
107
|
// A unique ID to correlate the request with the completion request.
|