Haven't quite nailed down what is causing this yet. Copilot and lsp-mode may be relevant? 