@github/copilot-language-server 1.276.0 → 1.277.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.
@@ -1,4 +1,4 @@
1
- import {CancellationToken, Disposable, DocumentSelector, DocumentUri} from 'vscode-languageserver-protocol';
1
+ import {CancellationToken, Disposable, DocumentSelector, DocumentUri, Position} from 'vscode-languageserver-protocol';
2
2
 
3
3
  /**
4
4
  * The ContextProvider API allows extensions to provide additional context items that
@@ -70,6 +70,7 @@ export interface DocumentContext {
70
70
  languageId: string;
71
71
  version: number;
72
72
  offset: number;
73
+ position: Position;
73
74
  }
74
75
  export interface ResolveRequest {
75
76
  // A unique ID to correlate the request with the completion request.
@@ -113,6 +114,12 @@ interface ContextItem {
113
114
  * Default value is 0.
114
115
  */
115
116
  importance?: number;
117
+
118
+ /**
119
+ * A unique ID for the context item, used to provide detailed statistics about
120
+ * the item's usage. If an ID is not provided, it will be generated randomly.
121
+ */
122
+ id?: string;
116
123
  }
117
124
 
118
125
  // A key-value pair used for short string snippets.