================
@@ -0,0 +1,26 @@
+import * as vscode from "vscode";
+
+export interface CommandArgs {
+  command: string;
+}
+
+export class CommandTool implements vscode.LanguageModelTool<CommandArgs> {
+  async invoke(
+    options: vscode.LanguageModelToolInvocationOptions<CommandArgs>,
+    token: vscode.CancellationToken,
+  ): Promise<vscode.LanguageModelToolResult> {
+    const session = vscode.debug.activeDebugSession;
+    if (session === undefined) {
----------------
ashgti wrote:

I would also check `session.configuration.type === 'lldb-dap'`

https://github.com/llvm/llvm-project/pull/174343
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to