jonnyboyC / kos-language-server

A language server for the Kerboscript (kOS) a language for Kerbal Space Program
MIT License
27 stars 6 forks source link

Region fix #160

Closed jonnyboyC closed 4 years ago

jonnyboyC commented 4 years ago
return this.foldableService.findRegions(script, [
  ...directives.region,
  ...directives.endRegion,
]);

This would effectively place all regions first followed by all endregion. This lead to a single region working but multiple failing. The fix was to sort regions using the range based comparer.