Skip to content

Commit 76000c7

Browse files
committed
swap to use same params for copilot hover info as text document position params
1 parent 3af533d commit 76000c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Extension/src/LanguageServer/Providers/CopilotHoverProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class CopilotHoverProvider implements vscode.HoverProvider {
9595
public async getRequestInfo(document: vscode.TextDocument, position: vscode.Position): Promise<string> {
9696
let requestInfo = "";
9797
const params: GetCopilotHoverInfoParams = {
98-
uri: document.uri.toString(),
98+
textDocument: { uri: document.uri.toString() },
9999
position: Position.create(position.line, position.character)
100100
};
101101

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ export interface GetIncludesResult {
535535
}
536536

537537
export interface GetCopilotHoverInfoParams {
538-
uri: string;
538+
textDocument: TextDocumentIdentifier;
539539
position: Position;
540540
}
541541

0 commit comments

Comments
 (0)