Skip to content

Commit 2016be8

Browse files
committed
Strong type disconnectArguments in the debug protocol
1 parent 8017c63 commit 2016be8

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"@typescript-eslint/eslint-plugin": "6.4.0",
9797
"@typescript-eslint/parser": "6.4.0",
9898
"@ungap/structured-clone": "1.2.0",
99+
"@vscode/debugprotocol": "^1.61.0",
99100
"@vscode/test-electron": "2.3.4",
100101
"@vscode/vsce": "2.20.1",
101102
"esbuild": "0.19.2",

src/features/DebugSession.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
QuickPickOptions,
2525
DebugConfigurationProviderTriggerKind
2626
} from "vscode";
27+
import type { DebugProtocol } from "@vscode/debugprotocol";
2728
import { NotificationType, RequestType } from "vscode-languageclient";
2829
import { LanguageClient } from "vscode-languageclient/node";
2930
import { LanguageClientConsumer } from "../languageClientConsumer";
@@ -403,7 +404,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
403404
restart: false,
404405
terminateDebuggee: false,
405406
suspendDebuggee: false
406-
}
407+
} as DebugProtocol.DisconnectArguments
407408
);
408409
});
409410
});

0 commit comments

Comments
 (0)