MCPcopy Create free account
hub / github.com/bytebase/bytebase / executeCommand

Function executeCommand

frontend/src/react/components/monaco/lsp-client.ts:301–312  ·  view source on GitHub ↗
(
  client: MonacoLanguageClient,
  command: string,
  args: unknown[] | undefined
)

Source from the content-addressed store, hash-verified

299};
300
301export const executeCommand = async (
302 client: MonacoLanguageClient,
303 command: string,
304 args: unknown[] | undefined
305) => {
306 const executeCommandParams: ExecuteCommandParams = {
307 command,
308 arguments: args,
309 };
310 setConnState({ lastCommand: executeCommandParams });
311 return client.sendRequest("workspace/executeCommand", executeCommandParams);
312};
313
314export const subscribeConnectionState = (listener: () => void) => {
315 listeners.add(listener);

Callers 2

MonacoEditorFunction · 0.90
initializeRunnerFunction · 0.85

Calls 1

setConnStateFunction · 0.85

Tested by

no test coverage detected