I’m fairly new to JS and its use of callbacks.
If I register a callback - for example, onDidChangeGrammar - it receives some related object as an argument when fired, in this case, the new Grammar.
How do I find the affected editor here to perform any additional processing? It seems pointless to just get the Grammar itself without any context. Surely I’ve missed something obvious here…?