mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
Fixed: Files with no LSP implementation are not saved
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user