4 ms·
Last time I read the LSP specs/repos, there were 2 nuances regarding your statement: (1) the editor read the files, display then, and then sends changes to the
by oaiey 3y ago
Last time I read the LSP specs/repos, there were 2 nuances regarding your statement:
(1) the editor read the files, display then, and then sends changes to the LSP which then mirrors the file to compile, analyze, etc it. The file is never persisted in that stage to the file system (needs to because otherwise no syntax highlighting while editing.
(2) there are conversations about that in both the LSP and Editor space about virtual file systems. Google "language server virtual file system". The core author of the LSP spec has written one issue very related to it.
- fiddlerwoaroof 3y ago(2) is interesting, it would be cool if LSP evolved a sort of “file system server” ability that could be integrated into things like TRAMP in emacs