This PR actually does a lot, but the primary motivation was to fix the issue with extra characters being inserted. This also fixes relative indent issues from copilot which primarily occur when completions are fetched on an empty or indent-only line.
Overall greatly increases consistency and improves experience. Should resolve a number of problems. I'm PR'ing so it can be tested before merge since changes are fairly extensive here.
This PR actually does a lot, but the primary motivation was to fix the issue with extra characters being inserted. This also fixes relative indent issues from copilot which primarily occur when completions are fetched on an empty or indent-only line.
Overall greatly increases consistency and improves experience. Should resolve a number of problems. I'm PR'ing so it can be tested before merge since changes are fairly extensive here.