DanielGavin / ols

Language server for Odin
MIT License
439 stars 67 forks source link

Fix crash caused by slicing incomplete import #361

Closed Feoramund closed 5 months ago

Feoramund commented 5 months ago

This PR fixes a bug where the LSP would crash if a didSave event was sent with an import line that was not complete, i.e.

package main

import "core:

This was due to the slice attempted a couple lines down.