Raoul Wols
Raoul Wols
Do you have an example of a simple main.cpp file with Japanese characters in cp932 encoding that exhibits the bug?
- When using cmake, configure with `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` (requires only a configure step) - When using make, build with `bear make` (requires complete build before obtaining compile_commands.json) - When using visual...
Thanks for showing interest and reaching out @niosus! Auto-generation of compile_commands.json would be nice. But, it would entail maintaining build systems like: - CMake - Bazel - Plain makefiles (?)...
This is due to LSP not shutting down synchronously in `EventListener.on_exit`, as well as in `plugin_unloaded`. The solution I came up with for that is to use this exit_handler mechanism:...
No it doesn’t require plugin_unloaded to be async. That’s the trick :)
> Looking thought sublime API it seems that this can be added via EventListener.on_new(), does it make sense ? Does this trigger on newly created files, or on any newly...
We could use on_pre_save and on_post_save together to deduce whether it was a raw buffer previously, and a file-backed view after the save perhaps?
It also won’t work for files created with the “new file” context menu entry in the sidebar I think.
If the file was created via a plugin, is that considered to be “in-editor”?
I think we're very far away from workspace/didCreateFiles, let alone workspace/willCreateFiles. - The plugin_host has the `os` module - Any plugin can therefore create any kind of file, which may...