Fixed: Files with no LSP implementation are not saved

This commit is contained in:
Akash Yadav
2022-09-25 15:46:36 +05:30
parent 1ba7d28867
commit f106c171b8
2 changed files with 3 additions and 4 deletions
@@ -679,13 +679,12 @@ public class IDEEditor extends CodeEditor implements com.itsaky.androidide.edito
* @param event The content change event.
*/
private void handleContentChange(ContentChangeEvent event, Unsubscribe unsubscribe) {
if (getFile() == null || languageServer == null) {
return;
}
if (event.getAction() != ContentChangeEvent.ACTION_SET_NEW_TEXT) {
isModified = true;
}
if (getFile() == null || languageServer == null) {
return;
}
CompletableFuture.runAsync(
() -> {
dispatchDocumentChangeEvent(event);
Binary file not shown.