MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / setSendLogsToClient

Method setSendLogsToClient

src/extension/commands/debug.ts:1036–1047  ·  view source on GitHub ↗
(enabled: boolean)

Source from the content-addressed store, hash-verified

1034 }
1035
1036 public setSendLogsToClient(enabled: boolean) {
1037 // Only send values for sessions that didn't already have logging enabled.
1038 debugSessions.filter((d) => !d.session.configuration.sendLogsToClient).forEach(async (session) => {
1039 try {
1040 await session.session.customRequest("updateSendLogsToClient", {
1041 enabled,
1042 });
1043 } catch {
1044 // Older SDKs don't support this, so just do nothing.
1045 }
1046 });
1047 }
1048
1049 private updateRunnableContexts(): void {
1050 const editor = vs.window.activeTextEditor;

Callers 1

constructorMethod · 0.95

Calls 1

customRequestMethod · 0.45

Tested by

no test coverage detected