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

Method printSelectionToTerminal

src/extension/commands/edit.ts:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 private async printSelectionToTerminal() {
71 const editor = getActiveRealFileEditor();
72 const selection = editor?.selection;
73 const text = editor?.document?.getText(selection);
74
75 if (text) {
76 writeToPseudoTerminal([text]);
77 }
78 }
79
80 private toggleDartdocComment() {
81 return this.toggleLineComment(true);

Callers

nothing calls this directly

Calls 2

getActiveRealFileEditorFunction · 0.90
writeToPseudoTerminalFunction · 0.90

Tested by

no test coverage detected