Check a view was actually passed.
Instead of setting editor configuration on focus in, use the pane item and grammar changed events.