How to use the vscode-debugadapter.Thread function in vscode-debugadapter

To help you get started, we’ve selected a few vscode-debugadapter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DonJayamanne / pythonVSCode / src / client / debugger / pdb / debuggerMain.ts View on Github external
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void {
        // return the default thread
        response.body = {
            threads: [
                new Thread(PythonDebugSession.THREAD_ID, "thread 1")
            ]
        };
        this.sendResponse(response);
    }
github krotik / ecal / ecal-support / src / ecalDebugAdapter.ts View on Github external
protected async threadsRequest(
    response: DebugProtocol.ThreadsResponse
  ): Promise {
    const status = await this.client.status();
    const threads = [];

    if (status) {
      for (const tid of Object.keys(status.threads)) {
        threads.push(new Thread(parseInt(tid), `Thread ${tid}`));
      }
    } else {
      threads.push(new Thread(1, "Thread 1"));
    }

    response.body = {
      threads,
    };

    this.sendResponse(response);
  }
github APerricone / harbourCodeExtension / client / src / debugger.js View on Github external
harbourDebugSession.prototype.threadsRequest = function(response)
{
	response.body =
	{
		threads:
		[ //TODO: suppport multi thread
			new debugadapter.Thread(1, "Main Thread")
		]
	};
	this.sendResponse(response)
}
github area9innovation / flow9 / resources / vscode / flow / src / flowcpp_adapter.ts View on Github external
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void {
		response.body = {
			threads: [
				new Thread(this.threadID, "Thread 1")
			]
		};
		this.sendResponse(response);
	}
github DonJayamanne / pythonVSCode / src / client / debugger / vs / VSDebugger.ts View on Github external
this.pythonProcess.Threads.forEach(t=> {
            threads.push(new Thread(t.Id, t.Name));
        });
github SkaceKamen / vscode-sqflint / debugger / src / adapter.ts View on Github external
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void {
		response.body = {
			threads: [
				new Thread(SQFDebug.THREAD_ID, "thread 1")
			]
		};
		this.sendResponse(response);
	}
github Dart-Code / Dart-Code / src / debug / dart_debug_impl.ts View on Github external
		return this.threads.map((thread: ThreadInfo) => new Thread(thread.num, thread.ref.name));
	}
github hackwaly / vscode-ocaml / src / debug / debug.ts View on Github external
protected threadsRequest(response: DebugProtocol.ThreadsResponse) {
        response.body = { threads: [new Thread(0, 'main')] };
        this.sendResponse(response);
    }
github SqrTT / prophet / out / mockDebug.js View on Github external
                        .map(thread => new vscode_debugadapter_1.Thread(thread.id, "thread " + thread.id))
                };
github microsoft / vscode-azure-blockchain-ethereum / src / debugAdapter / debugSession.ts View on Github external
await this.sendErrorIfFailed(response, async () => {
      response.body = {
        threads: [new Thread(MAIN_THREAD.id, MAIN_THREAD.name)],
      };
      this.sendResponse(response);
    });
  }