Skip to content

Command Completions

FichteFoll edited this page Mar 12, 2022 · 1 revision

Command Name Completions

All resource files that expect command names in one way or another have command completions enabled. This also applies to plugins. PackageDev will list all plugin-provided commands as well as most built-in commands.

The completion hint includes the command's source. In plugins, it also shows the type of the command in parentheses.

Additionally, for plugins PackageDev attempts to only show command names that can be run with the object, i.e. window commands cannot be run from a View object. This heuristic is based on the variable name only.

Image with command name completions in JSON

Image with command name completions in a plugin

Command Argument Completions

In addition to the command name, PackageDev tries to infer the available arguments from plugin-provided commands and reads a provided list of arguments for built-in comamnds. These can then be inserted with the args completion (which functions more like a snippet).

Image with argument completions in JSON

Image with completed arguments in JSON

Image with completed arguments in a plugin

Note: The red highlighting in the JSON file stems from the missing values that need to be tabbed through and inserted.