MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / registerCommands

Function registerCommands

src/activate/registerCommands.ts:65–74  ·  view source on GitHub ↗
(options: RegisterCommandOptions)

Source from the content-addressed store, hash-verified

63}
64
65export const registerCommands = (options: RegisterCommandOptions) => {
66 const { context } = options
67
68 for (const [id, callback] of Object.entries(getCommandsMap(options))) {
69 const command = getCommand(id as CommandId)
70 context.subscriptions.push(vscode.commands.registerCommand(command, callback))
71 }
72
73 context.subscriptions.push(registerRipgrepDiagnosticCommand())
74}
75
76// `showRipgrepDiagnostic` is registered separately by
77// `registerRipgrepDiagnosticCommand` (above), which owns the OutputChannel

Callers 2

activateFunction · 0.90

Calls 5

getCommandFunction · 0.90
getCommandsMapFunction · 0.85
entriesMethod · 0.80
registerCommandMethod · 0.80

Tested by

no test coverage detected