ionide / FsAutoComplete

F# language server using Language Server Protocol
Other
391 stars 151 forks source link

remove typechecks from cache on file close #1187

Closed TheAngryByrd closed 8 months ago

TheAngryByrd commented 8 months ago

WHAT

๐Ÿค– Generated by Copilot at 9e9131a

This pull request adds a feature to the LSP server to forget documents that are no longer needed by the F# compiler service checker. It introduces a new function RemoveFileFromCache in CompilerServiceInterface.fs and calls it in AdaptiveServerState.fs when a document is closed or deleted.

๐Ÿค– Generated by Copilot at 9e9131a

Sing, O Muse, of the clever LSP server, the swift helper of code That learned to forget the documents of old, when they vanished from the node By the skill of the FSharpCompilerServiceChecker, the wise and powerful guide That purged its cache of the useless files, like Zeus hurling thunder from his side

๐Ÿ“๐Ÿงน๐Ÿ”ฅ

WHY

Memory optimization

HOW

๐Ÿค– Generated by Copilot at 9e9131a