@github/copilot-language-server 1.329.0 → 1.331.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 +2 -15
- package/dist/main.js +374 -375
- package/dist/main.js.map +2 -2
- 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
|
@@ -53,6 +53,8 @@ export interface ContextProvider<T extends SupportedContextItem> {
|
|
|
53
53
|
}
|
|
54
54
|
export interface ContextResolver<T extends SupportedContextItem> {
|
|
55
55
|
resolve(request: ResolveRequest, token: CancellationToken): Promise<T> | Promise<T[]> | AsyncIterable<T>;
|
|
56
|
+
// Optional method to be invoked if the request timed out. This requests additional context items.
|
|
57
|
+
resolveOnTimeout?(request: ResolveRequest): T | readonly T[] | undefined;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
/**
|
|
@@ -141,14 +143,6 @@ export interface ResolveRequest {
|
|
|
141
143
|
data?: unknown;
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
/**
|
|
145
|
-
* A context item marked as backup will only be used if the provider hits the timeout
|
|
146
|
-
* and is not able to fully resolve.
|
|
147
|
-
*/
|
|
148
|
-
export enum ContextItemTag {
|
|
149
|
-
Backup = 'backup',
|
|
150
|
-
}
|
|
151
|
-
|
|
152
146
|
/**
|
|
153
147
|
* These are the data types that can be provided by a context provider. Any non-conforming
|
|
154
148
|
* context items will be filtered out.
|
|
@@ -175,13 +169,6 @@ interface ContextItem {
|
|
|
175
169
|
* - update: context is provided via context/update
|
|
176
170
|
*/
|
|
177
171
|
origin?: ContextItemOrigin;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Tags are used to provide additional metadata about the context item. Valid tags
|
|
181
|
-
* are defined in the ContextItemTag. The type is a string[] to allow arbitrary tags
|
|
182
|
-
* to be passed without failing schema validation.
|
|
183
|
-
*/
|
|
184
|
-
tags?: string[];
|
|
185
172
|
}
|
|
186
173
|
|
|
187
174
|
// A key-value pair used for short string snippets.
|