Schema Lookup
Lifecycle
- NOTE: code here is written in Dendron Pseudocode (Private)
Initialization
- See Initialization
The main difference between this code and NoteLookupProvider
is that they subscribe with a different id
to the HistoryService
- src/commands/SchemaLookupCommand.ts
SchemaLookupCommand {
enrichInputs(controller) {
const p = Promise( resolve => {
HistoryService.subscribe("lookupProvider", {id: "schemaLookup"}, event => {
switch event.action
case done {
resolve(event.data)
}
});
})
controller.showQuickPick
return p;
}
}