MCPcopy Index your code
hub / github.com/coder/coder / copySelection

Function copySelection

site/src/modules/terminal/WorkspaceTerminal.tsx:233–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 );
232
233 const copySelection = () => {
234 const selection = nextTerminal.getSelection();
235 if (selection) {
236 copyToClipboard(selection);
237 }
238 };
239
240 // There is no way to remove this handler, so we must attach it once and
241 // rely on a ref to send it to the current socket.

Callers 1

WorkspaceTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected