Commit Graph

209 Commits

Author SHA1 Message Date
Akash Yadav f837b9369e fix: remove Realm DB 2024-07-20 20:16:47 +05:30
Akash Yadav dab784af40 fix: update group IDs for sub-modules; fixes gradle plugin test failures 2024-07-20 19:04:33 +05:30
Akash Yadav 52a6117451 fix: cut down memory usage in ApiVersionsRegistry
This commit adds the following improvements to the ApiVersionsRegistry implementation :

- Use Java StAX parser for memory-efficient XML processing
- Reduce object allocations for representing API version info by reusing ApiVersion instances which represent the same API versions.
- Trim method return types in method signature strings to reduce memory usage by a small amount
- A single model class is now used to represent the API information. Earlier, we had different classes to represent API info for classes, fields and metnods.
2024-07-20 19:04:32 +05:30
Akash Yadav 1efd6a04d5 build: reorganize and reconfigure modules to resolve dependency resolution errors
Gradle, for some reason, does not the path of modules to identify them uniquely. Instead, the 'build id' is used to do so, which consists of the maven group and artifact ID. So, even if two modules are located in separate directories, but have the name group and artifact ID, including both of them in other modules may result in dependency resolution errors.
2024-07-20 19:04:21 +05:30
Akash Yadav 0947a33954 fix(editor/treesitter): improve indentation logic to handle cases like lambdas in Java 2024-03-30 23:33:53 +05:30
Akash Yadav 765d81b77b fix: move pref props from top-level to class fields 2024-03-30 23:33:46 +05:30
Akash Yadav cdb15cea83 fix(editor): improve indentation for tree sitter languages
The indentation provider for tree sitter languages has been adapted from nvim-treesitter's indentation logic.
2024-03-19 10:32:32 +05:30
Akash Yadav ab101fb59d fix: migrate to SLF4J and Logback logging implementations 2024-03-17 00:04:43 +05:30
Akash Yadav 940c7b0aa2 fix(editor): don't show popups if editor is not attached to window (#1752) 2024-03-05 10:57:56 +05:30
Akash Yadav c894d3d9d6 fix: ignore completion requests when editor is not attached to window (fixes #1739) 2024-03-02 20:50:01 +05:30
Akash Yadav 0008cd55ff build: move external dependency sources to composite builds 2024-02-27 16:50:16 +05:30
Akash Yadav a9195f0f53 build(build-logic): modularize :build-logic composite build 2024-02-19 11:45:48 +05:30
Akash Yadav 77bfdea16d fix(editor): migrate to editor v0.23.3 2024-02-15 20:39:43 +05:30
Akash Yadav 1eabe1c32b fix(editor): preserve selection after executing 'Organize imports' action (fixes #1598) 2024-01-22 23:08:19 +05:30
Akash Yadav b8fc23b315 fix(editor): occasional NPE when create ActionData for editor text actions
This was originally reported in https://gitlab.com/fdroid/fdroiddata/-/merge_requests/14294\#note_1715467388
2024-01-05 22:41:49 +05:30
Akash Yadav a22ced1808 fix: rename CompletionItem.label to CompletionItem.ideLable to avoid name shadowing 2024-01-01 23:37:41 +05:30
Akash Yadav b7b9d695e9 fix(flashbar): use material components in FlashbarView 2023-12-27 16:11:22 +05:30
Akash Yadav eb613d58a6 fix(editor): ignore FileNotFoundException when reading tree sitter scheme files (fixes #1559) 2023-12-18 09:00:24 +05:30
Akash Yadav d50294e7dc fix(editor): avoid dispatching IO coroutine unnecessarily when reading color schemes 2023-12-18 00:33:29 +05:30
Akash Yadav 055a835ed4 fix(editor): ensure JsonReaders are always closed when reading color schemes 2023-12-18 00:12:58 +05:30
Akash Yadav b681568a50 fix(editor): ensure file input stream is always closed when reading file content 2023-12-18 00:12:18 +05:30
Akash Yadav cd55f9d662 fix(editor): Dispatchers.IO thread pool is exhausted if files are continuously opened and closed (fixes #1551) 2023-12-18 00:11:26 +05:30
Akash Yadav 29993c5ab4 fix(logview): IDEColorScheme is not set up with LogLanguage 2023-12-18 00:07:49 +05:30
Akash Yadav 46226345d3 fix(editor): gracefully handle errors from language server (fixes #1484, fixes #1447) 2023-12-16 23:16:08 +05:30
Akash Yadav 7aa4a8f16d fix: broken 'Close all files' behavior (fixes #1549) 2023-12-16 16:23:11 +05:30
Akash Yadav 5d1faba441 fix: replace 'ProcessCancelledException' with 'CancellationException' 2023-12-14 19:14:49 +05:30
Akash Yadav 98e86d79df fix: remove debug logs from IDELanguage and ProjectManagerImpl (#1497) 2023-12-14 19:14:48 +05:30
Akash Yadav fd6cdee593 fix: remove debug logs 2023-12-14 19:14:48 +05:30
Akash Yadav ec1eccd6ee fix(editor): asynchronously read and apply tree sitter languages 2023-11-25 14:38:35 +05:30
Akash Yadav fdcc86b465 fix: migrate IDEColorSchemeProvider to Kotlin coroutines 2023-11-25 09:42:07 +05:30
Akash Yadav 3f97f24b4c fix: TSTree instances are sometimes not closed, causing memory leak 2023-11-21 17:39:52 +05:30
Akash Yadav 67b1388779 fix(editor): migrate IDELanguage to Kotlin 2023-11-16 18:40:24 +05:30
Akash Yadav 525fa5ee34 fix(editor): do not automatically select first completion item for soft input (fixes #1201) 2023-11-14 23:17:07 +05:30
Akash Yadav 5373698e84 fix(lsp): make signature help requests cancellable (fixes #1393) 2023-11-11 15:33:03 +05:30
Akash Yadav d4626b2a71 fix(lsp): provide cancel checker with params 2023-11-11 00:47:38 +05:30
Akash Yadav 728a08557e refactor: inline CoroutineScope.launchAsyncWithProgress calls 2023-11-10 21:35:44 +05:30
Akash Yadav 51b594c417 fix(editor): NoSuchElementException when parsing color value from color scheme 2023-11-10 14:35:34 +05:30
Akash Yadav f85901c702 fix(editor/treesitter): invalid capture names for log levels in highlights.scm for log language
This fixes the crash caused because the capture names in the highlights.scm for log language were changed in commit efaeb04 but were not updated
 in the color scheme's log language definition.
2023-11-08 00:04:32 +05:30
Akash Yadav efaeb0435e refactor(logger): rename ILogger.Priority to ILogger.Level 2023-11-07 19:01:45 +05:30
Akash Yadav 35b7185ce1 fix: replace usage of sparse arrays with AndroidX Collections 2023-11-05 23:51:31 +05:30
Akash Yadav 040da7fbd0 fix(editor): add line panel margin to editor 2023-11-01 17:40:05 +05:30
Akash Yadav dd8dca9a7c fix: add TracingEditorRenderer to analyze editor's drawing performance 2023-10-27 22:10:08 +05:30
Akash Yadav a41775a20c fix(editor): DocumentSelectedEvent is not handled by event dispatcher 2023-10-27 22:10:07 +05:30
Akash Yadav a2af3bb050 fix: dispatch editor events in background 2023-10-27 22:10:06 +05:30
Akash Yadav 540e33734b refactor: extract IEditor impl to delegate class 2023-10-27 22:10:06 +05:30
Akash Yadav 42ae28a0b9 refactor: rename 'TSAnalyzeManager' to 'TsAnalyzeManager' for consistency 2023-10-23 21:38:51 +05:30
Akash Yadav 7923243b3b fix(editor/treesitter): reimplement TsAnalyzeManager for better thread safety and error handling 2023-10-23 21:27:30 +05:30
Akash Yadav 1d67056f32 fix: IOOB exception when checking for signature help (fixes #1380) 2023-10-16 20:31:46 +05:30
Akash Yadav f2cfd865e8 fix: opened files are not highlighted with tree sitter
This happens because the tree-sitter nodes and trees are inaccessible when the files are opened
2023-10-15 18:38:43 +05:30
Akash Yadav 971fc605ff fix: include language-treesitter from sora-editor locally 2023-10-13 23:03:57 +05:30