intersystems / language-server

Repository for the VS Code Language Server
https://marketplace.visualstudio.com/items?itemName=intersystems.language-server
Other
16 stars 6 forks source link

Use cached text of file instead of always reading from disk for computing locations #303

Closed isc-bsaviano closed 8 months ago

isc-bsaviano commented 8 months ago

Our definition and type definition providers need the text of the target document to determine the source element's location. Currently, our extension always reads the text of the file from disk. We should use the text of the file that we have cached instead because it may be more up to date.