MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / createCommand

Method createCommand

vim-sample/src/motions.ts:349–358  ·  view source on GitHub ↗
(args?: any)

Source from the content-addressed store, hash-verified

347 }
348
349 public createCommand(args?: any): Command {
350 const foldEditorArgs: any = {
351 levels: args.repeat ? args.repeat : 1,
352 direction: 'up'
353 };
354 return {
355 commandId: 'editor.fold',
356 args: foldEditorArgs
357 };
358 }
359}
360
361class UnfoldCommand extends AbstractCommandDescriptor {

Calls

no outgoing calls

Tested by

no test coverage detected