MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / runLspCommand

Function runLspCommand

src/cm/commandRegistry.js:1273–1287  ·  view source on GitHub ↗
(commandFn, options = {})

Source from the content-addressed store, hash-verified

1271}
1272
1273function runLspCommand(commandFn, options = {}) {
1274 return (view) => {
1275 const resolvedView = resolveView(view);
1276 if (!resolvedView) return false;
1277 const plugin = LSPPlugin.get(resolvedView);
1278 if (!plugin) {
1279 if (!options?.silentOnMissing) {
1280 notifyLspUnavailable();
1281 }
1282 return false;
1283 }
1284 const result = commandFn(resolvedView);
1285 return result !== false;
1286 };
1287}
1288
1289function humanizeCommandName(name) {
1290 return name

Callers 1

registerLspCommandsFunction · 0.85

Calls 3

resolveViewFunction · 0.85
notifyLspUnavailableFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected