Remove a Command
Example
Steps
Remove constant key
- Remove command from constants file (Private)
- Update the plugin config
From Update Plugin ConfigGo to text →
- Open the command prompt, enter
Run Task
, and rungen:config
- this will add the command to
package.json
- this will add the command to
- Open the command prompt, enter
Remove command
- Remove tests for the given command
- Remove any command related configuration
- NOTE: if you end up removing configuration, follow instructions in Modify Dendron Config
- Remove from ../packages/plugin-core/src/commands/index.ts (Private)
- Remove all references of the command
- Run "Find all References" from the command and take care of any occurences
- TIP: sometimes, the typescript compiler doesn't catch everything - you can run an search with
Match Whole Word
on the command name to truly find all occurences
- Delete the command
- Update metrics if you've ended up removing metrics this way
- Apply steps from Stale TypeScript Files
Lookup
Backlinks