Skip to content

Commit 2a347c8

Browse files
committed
Update to use TextDocumentIdentifier schema
1 parent 48e16a8 commit 2a347c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/common/commands.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ export function createDebugInformationProvider(
6262
if (!lsClient) {
6363
return "";
6464
}
65+
const editor = vscode.window.activeTextEditor;
6566
const params = {
6667
command: `${serverId}.printDebugInformation`,
67-
arguments: [{ uri: vscode.window.activeTextEditor?.document.uri.toString() }],
68+
arguments: [
69+
{
70+
textDocument: editor ? { uri: editor.document.uri.toString() } : null,
71+
},
72+
],
6873
};
6974
return await lsClient.sendRequest(ExecuteCommandRequest.type, params).then(
7075
(result) => {

0 commit comments

Comments
 (0)