Skip to content

Commit 770604f

Browse files
feat: update to latest Copilot LSP
1 parent 2fe34db commit 770604f

File tree

5 files changed

+701
-537
lines changed

5 files changed

+701
-537
lines changed

copilot/js/api/types.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,24 @@ export type ContextUsageStatistics = {
8686
usageDetails?: ContextItemUsageDetails[];
8787
};
8888

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+
8995
export interface DocumentContext {
9096
uri: DocumentUri;
9197
languageId: string;
9298
version: number;
99+
// Position and offset are relative to the provided version of the document.
100+
// The position after an edit is applied is found in ProposedTextEdit.positionAfterEdit.
93101
/**
94102
* @deprecated Use `position` instead.
95103
*/
96104
offset: number;
97105
position: Position;
98-
proposedEdits?: TextEdit[];
106+
proposedEdits?: ProposedTextEdit[];
99107
}
100108
export interface ResolveRequest {
101109
// A unique ID to correlate the request with the completion request.

copilot/js/main.js

Lines changed: 688 additions & 532 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

copilot/js/main.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

copilot/js/tree-sitter-php.wasm

786 KB
Binary file not shown.

lua/copilot/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function M.get_editor_info()
1313
editorPluginInfo = {
1414
name = "copilot.lua",
1515
-- reflects version of github/copilot-language-server-release
16-
version = "1.314.0",
16+
version = "1.320.0",
1717
},
1818
}
1919
return info

0 commit comments

Comments
 (0)