monaco-languageclient icon indicating copy to clipboard operation
monaco-languageclient copied to clipboard

External client to server file syncronization

Open kaisalmen opened this issue 10 months ago • 3 comments

The clangd example already contains means to synchronize files between client and server (web worker and main in that case). We should extend this to be able to synchronize files between a client and a node/express backend as well.

This should be integrated into a package either an existing one or a new one,

kaisalmen avatar Jan 23 '25 19:01 kaisalmen

Bump, really need this feature example

asimaranov avatar May 13 '25 09:05 asimaranov

Also would love to see example of persistent files that are saved and changes are loaded when browser is restarted. I think it would be awesome it this could be implemented on language server level e.g. files are stored in indexeddb in clangd example and restored when page is reloaded

asimaranov avatar May 13 '25 19:05 asimaranov

files are stored in indexeddb in clangd example and restored when page is reloaded

Hi @asimaranov we have a reload from IndexedDB already in place in one example, see clangd worker.

kaisalmen avatar May 19 '25 06:05 kaisalmen