Don't remove keybindings of formatter and linter plugins if any document is still open.

Converting from UTF8 now checks for BOM UTF8 strings.
This commit is contained in:
Martín Lucas Golini
2023-09-15 23:47:47 -03:00
parent 044e289ba8
commit 2e80cdb77e
6 changed files with 60 additions and 23 deletions

View File

@@ -1282,10 +1282,9 @@ void LSPClientPlugin::onUnregister( UICodeEditor* editor ) {
return;
}
if ( editor->hasDocument() ) {
if ( editor->hasDocument() )
for ( auto& kb : mKeyBindings )
editor->getDocument().removeCommand( kb.first );
}
{
Lock lds( mDocSymbolsMutex );