197 Commits

Author SHA1 Message Date
Akash Yadav a22ced1808 fix: rename CompletionItem.label to CompletionItem.ideLable to avoid name shadowing 2024-01-01 23:37:41 +05:30
Akash Yadav be10fe7e1e feat: integrate full Termux application 2023-12-15 20:22:33 +05:30
Akash Yadav d4626b2a71 fix(lsp): provide cancel checker with params 2023-11-11 00:47:38 +05:30
Akash Yadav 971fc605ff fix: include language-treesitter from sora-editor locally 2023-10-13 23:03:57 +05:30
Akash Yadav cc0a6391f6 fix: add tests for MainFragment and refactor testing modules 2023-10-07 23:37:34 +05:30
Akash Yadav 1d54a3ff4d tests: fix compilation issues 2023-10-02 12:27:56 +05:30
Akash Yadav 230ccfa536 fix(editor): rewrite IDEEditor in Kotlin with Coroutines 2023-09-30 15:08:28 +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 9c99d066c3 refactor: reorganize xml registries 2023-09-12 00:18:29 +05:30
Akash Yadav 32f4441935 refactor: XML lsp tests 2023-09-05 17:36:51 +05:30
Akash Yadav d66e3b384c fix(projects): remove IProjectManager.app 2023-09-05 17:36:49 +05:30
Akash Yadav f5143625ef refactor: migrate ProjectManager to interface based API 2023-09-05 17:36:39 +05:30
Akash Yadav e725d1cacf feat(projects): implement project deserialization and transformation (2/2) 2023-09-05 17:36:30 +05:30
Akash Yadav 96c68ff320 fix(lsp/xml): namespace is inserted even if attrAtCursor already has a namespace (closes #1122) 2023-07-23 12:16:58 +05:30
Akash Yadav 601722dba7 fix(tests/lsp/java): fix compilation error 2023-07-09 16:49:45 +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 d31f57b07c fix(deps): migrate to android-tree-sitter v3.0.0 2023-06-11 00:20:02 +05:30
Akash Yadav d9331eca80 fix(templates): use XmlBuilder from 'xml-dom' module for building XML files 2023-05-13 22:40:29 +05:30
Akash Yadav 80bd4ce3ee feat(templates): add helper methods to create values resources 2023-05-13 18:27:32 +05:30
Akash Yadav 04feadbae8 feat: add base files for the Templates API 2023-05-05 13:17:07 +05:30
Akash Yadav b950c34fb0 refactor(lookup): use ServiceLoader to load DefaultLookup 2023-04-30 23:26:09 +05:30
Akash Yadav fa8680e873 refactor: replace hardcoded package names in build scripts with BuildConfig property 2023-04-13 22:56:17 +05:30
Akash Yadav 6d44ae60c7 feat: add Xml snippets repository 2023-04-08 18:01:14 +05:30
Akash Yadav e8e203f548 refactor: rename CompletionItem.kind to avoid conflict with editor's CompletionItem.kind 2023-03-31 13:31:01 +05:30
Akash Yadav 31957186d2 feat(lsp/xml): automatically close tags when '/' is typed 2023-03-31 01:18:46 +05:30
Akash Yadav 81df6d29db build: include EventBusAnnotationProcessor locally 2023-03-30 23:49:17 +05:30
Akash Yadav 233cb876e7 fix(lsp/java): 'Create missing method' unable to create methods outside of current file
This happens becase FindMethodCallAt does not initialize properties related to the found method.
2023-03-29 17:45:14 +05:30
Akash Yadav 8f6392ff55 feat(lsp: add option to perform code actions on main thread 2023-03-29 12:37:56 +05:30
Akash Yadav 1bc3fc7bc1 fix(lsp/java): signature help is not shown sometimes 2023-03-11 23:17:25 +05:30
Akash Yadav 920c29a980 fix(lsp/xml): fully qualified tag names are inserted for platform widgets (closes #837) 2023-03-05 09:06:18 +05:30
Akash Yadav 40d128d76e refactor: resolve some compiler warnings 2023-02-11 21:34:37 +05:30
Akash Yadav 83b8ffb531 refactor: remove unused subprojects 2023-01-15 08:48:53 +05:30
Akash Yadav 08c1444b99 fix(xml-inflater,uidesigner): attributes without namespaces are not handled
fixes #729
2023-01-14 22:18:38 +05:30
Akash Yadav 3090632c66 feat: use Gradle ANTLR plugin to generate lexers 2023-01-01 13:43:23 +05:30
Akash Yadav 42a3e71114 chore: migrate to Kotlin DSL and Version Catalog 2022-12-30 23:24:38 +05:30
Akash Yadav c9c6803052 refactor: rename module :build-tools to :subprojects 2022-12-21 18:36:08 +05:30
Akash Yadav ff11a49a14 fix(editor): IllegalAccessError due to conflicting field name in CompletionItem
The recent update of sora-editor introduced 'sortText' field in it's CompletionItem class which resulted in a conflict with IDE's CompletionItem implementation. This caused an IllegalAccessError whenever the IDE tried to update the 'sortText' field.
2022-12-20 15:28:45 +05:30
Akash Yadav 1ff2658d1f feat: add option to see generated XML directly from UI Designer 2022-12-11 19:08:56 +05:30
Akash Yadav 7d14ae48c2 feat: complete constant dimension values in XML files 2022-12-02 12:31:05 +05:30
Akash Yadav 0ab7d01e4f Added completions for attribute value in UI Designer 2022-12-02 12:14:21 +05:30
Akash Yadav ceceab12d5 Added basic value parsers 2022-11-05 16:22:44 +05:30
Akash Yadav d06a1f8c84 Added base files for new XML inflater API 2022-11-02 20:09:54 +05:30
Akash Yadav 9e16d827c8 Removed UI designer 2022-11-02 13:48:41 +05:30
Akash Yadav b16dc13156 Added: Long click java completion item for documentation 2022-10-28 22:55:15 +05:30
Akash Yadav 579386ae17 Moved all IDE resources to :resources module 2022-10-24 18:36:52 +05:30
Akash Yadav 7b15d3e1ca Refactored the actions API 2022-10-17 17:17:03 +05:30
Akash Yadav 4e68444610 Updated editor to v0.17.2 2022-10-16 13:47:24 +05:30
Akash Yadav 53e317669f Added log messages in XML completion providers 2022-10-15 18:52:01 +05:30
Akash Yadav cd9cf6401b Add common layout attributes to completions if parent view cannot be resolved 2022-10-15 18:52:00 +05:30
Akash Yadav 300e9438b6 Added preferences for XML formatter 2022-10-12 18:42:46 +05:30