Commit Graph

172 Commits

Author SHA1 Message Date
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
Akash Yadav 0b22af8993 refactor: fix some kotlin warnings 2023-10-12 23:22:14 +05:30
Akash Yadav 777dd773f8 fix: replace usage of Map with SparseArray 2023-10-09 11:30:22 +05:30
Akash Yadav 9db0b802cd fix(editor): use coroutines for reading/writing files in CodeEditorView 2023-10-04 18:49:51 +05:30
Akash Yadav 023bbab9e4 fix(editor): modified status is not updated after save (fixes #1359) 2023-10-03 17:59:25 +05:30
Akash Yadav b05710c524 fix(editor): modified status is not changed after content modification 2023-10-01 23:31:53 +05:30
Akash Yadav 75e722391e fix: migrate build service to use coroutines 2023-10-01 22:04:32 +05:30
Akash Yadav 35793e7e17 fix(editor/treesitter): rerun analyze manager only after color scheme is loaded 2023-09-30 15:12:42 +05:30
Akash Yadav 230ccfa536 fix(editor): rewrite IDEEditor in Kotlin with Coroutines 2023-09-30 15:08:28 +05:30
Akash Yadav 191883c887 fix(editor): reference result is not shown for single reference in the same file
This is caused due to setSeletion(Range) being called on a background thread (fixes #1248).
2023-09-28 23:49:44 +05:30
Akash Yadav 1eb99c5854 fix(editor/treesitter): rerun analyze manager after setting language scheme 2023-09-28 21:44:21 +05:30
Akash Yadav eade36e73f fix: update editor & add support for multiple spans in a capture 2023-09-28 17:07:14 +05:30
Akash Yadav ce4295b63e fix(editor): support static span colors for hex colors 2023-09-25 23:33:49 +05:30
Akash Yadav 30a03cb13a chore(deps): update editor to latest snapshot 2023-09-25 18:44:42 +05:30
Akash Yadav 73be7f5259 fix: use custom CompletionPublisher to avoid recreating completion list in IDELanguage 2023-09-24 20:13:42 +05:30
Akash Yadav dcc625f75b fix: completion window is not shown for the second time (#1329, fixes #1281) 2023-09-24 20:10:41 +05:30
Akash Yadav ace83d515e refactor: move tree sitter languages to a single package 2023-09-18 19:42:00 +05:30
Akash Yadav 3c1a4ebedc fix: remove usage of deprecated 'newInstance' method in TS Languages 2023-09-18 19:41:59 +05:30
Akash Yadav 76cba7327b fix: completion window improvements
- fixed a bug which resulted in selected completion item not being indicated properly (closes #1242)
- added option to set selected completion item background color in color schemes
2023-09-06 13:10:21 +05:30
Akash Yadav f5143625ef refactor: migrate ProjectManager to interface based API 2023-09-05 17:36:39 +05:30
Akash Yadav 08d376f370 feat: merge file tree to left drawer using navigation rail 2023-09-05 17:36:32 +05:30
Akash Yadav 6a9acbfada fix(editor): close tree sitter language only if it is externally loaded 2023-07-16 15:15:01 +05:30
Akash Yadav 263ce48d35 fix(editor): fall back to default color scheme if custom scheme doesn't support a file type 2023-07-16 14:02:17 +05:30
Akash Yadav 23f4f52c50 fix(editor): invalid syntax highlights for annotations in Java 2023-07-16 12:53:33 +05:30
Akash Yadav b9d84e4314 fix(editor): update syntax highlights for Java and Kotlin (fixes #1051) 2023-07-16 12:04:43 +05:30
Akash Yadav 248470cdd7 fix: close tree sitter language instance when editor language is destroyed 2023-07-15 11:50:18 +05:30
Akash Yadav 376672fc70 fix: missing class error in R8 2023-07-12 15:21:27 +05:30
Akash Yadav 764a6fa8c2 fix(lsp): progress dialog for 'find references' action is shown indefinitely
This happens because the 'ReferenceProvider' in the Java LSP tries to start another compilation process while working with the current compilation task.
This results in a deadlock where the current task waits for the new compilation request to return and the new compilation request waits for the current task to finish. This commit fixes this issue.

Apart from fixing this issue, this commit also makes the 'Go to definition' and 'Find references' actions cancelable. Also, it eliminates the usage of the deprecated 'ProgressDialog' class for these two actions.
2023-07-09 12:56:28 +05:30
Akash Yadav 907c6b89a3 refactor(editor): reformat IDEEditor 2023-07-08 23:51:08 +05:30
Akash Yadav 2549757454 fix(logview): slight lag while trimming log lines 2023-06-28 16:49:18 +05:30
Akash Yadav 9e9f2787de fix: readers not closed in ToolsManager and IDEColorSchemeProvider 2023-06-25 10:27:28 +05:30
Akash Yadav 3491612ebe fix(deps): migrate to android-tree-sitter v3.1.0 2023-06-19 00:15:38 +05:30
Akash Yadav 876903c0e0 fix(editor): invalid locals.scm query for kotlin results in crash 2023-06-16 14:56:42 +05:30
Akash Yadav 29c092764c fix(editor): incorrect highlights query structure for logs 2023-06-13 22:56:52 +05:30
Akash Yadav 28c7585bbc fix(editor/logs): invalid capture name in default dark scheme for log texts 2023-06-11 00:20:03 +05:30
Akash Yadav d31f57b07c fix(deps): migrate to android-tree-sitter v3.0.0 2023-06-11 00:20:02 +05:30
Akash Yadav 5b5d969474 refactor: simplify LanguageSpecProvider.readScheme 2023-06-11 00:20:01 +05:30
Akash Yadav e78b9068f4 feat: use tree-sitter for log highlighting 2023-06-11 00:20:00 +05:30