Crash when auto save is performed when lsp is enabled
### Version

_No response_

### Environment

moe v0.3.0

Git hash: 22920ff1e8ff97ffa3acf2da326adbec10825d95
Build type: Debug

### Category

Major — The software does not fulfill the task it is designed for.

### Steps to Reproduce

1. `$ moe test.nim`
2. `:lspLog`
3. Run autosave

### Detailed Description

_No response_