@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.
@@ -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?: TextEdit[];
104
+ proposedEdits?: ProposedTextEdit[];
99
105
  }
100
106
  export interface ResolveRequest {
101
107
  // A unique ID to correlate the request with the completion request.