Commit Graph
2839 Commits
Author SHA1 Message Date
Isaac Clayton bf71eb0ae0 Highlight languages as languages load 2022-07-08 21:19:07 +02:00
Isaac Clayton 3a4657614f Added theme to language 2022-07-08 18:11:28 +02:00
Isaac Clayton 5a48e0fa2a Require theme directly when creating language 2022-07-08 16:08:40 +02:00
Isaac Clayton 2140c81501 Add channel to notify project when languages are added 2022-07-08 14:37:27 +02:00
Isaac Clayton c4c1977bdb Fix errors resulting from rebase 2022-07-07 18:14:16 +02:00
Isaac Clayton 88baf23f60 Add basic support for precompiling plugins 2022-07-07 16:21:27 +02:00
Isaac Clayton 0b85613a86 Done! Finish transition to async, very close to merging 2022-07-07 16:21:20 +02:00
Isaac Clayton 50db545b00 Fix most warnings 2022-07-07 16:19:49 +02:00
Isaac Clayton ae5262e93a Fix all residual errors, need to polish off warnings and TODOS 2022-07-07 16:17:03 +02:00
Isaac Clayton 69b1324a93 Further unpropogate async 2022-07-07 16:16:58 +02:00
Isaac Clayton 2d4bc1704b Switch LspAdapter to struct and revert some async/await 2022-07-07 16:12:10 +02:00
Isaac Clayton 9cf2253c88 use join_all to build partial symbols and completions asynchronously 2022-07-07 15:44:21 +02:00
Isaac Clayton 5f055cd352 Going to move LspAdapter from trait to struct 2022-07-07 15:44:21 +02:00
Isaac Clayton a74da62914 Uncommented previously commented sections 2022-07-07 15:44:18 +02:00
Isaac Clayton 79d7d3b873 Move await outside of a closure, remove future_wrap dependency 2022-07-07 15:42:53 +02:00
Isaac Clayton 7eade87582 Fix warnings and propogate async further 2022-07-07 15:42:48 +02:00
Isaac Clayton b2772808f6 Temporarily comment out closure errors to address other errors in project 2022-07-07 15:41:34 +02:00
Isaac Clayton 22ec534f35 Factor out await in doubly-nested for loop 2022-07-07 15:40:39 +02:00
Isaac Clayton c172bd7143 Fix on_settings_changed, need to review that impl is correct 2022-07-07 15:40:01 +02:00
Isaac Clayton 71c1e0588c Refactor closure to extract async 2022-07-07 15:40:01 +02:00
Isaac Clayton 0ba6d9618e Add lsp_settings_changed: Task to Project, need to resolve cx in Project::on_settings_changed 2022-07-07 15:39:59 +02:00
Isaac Clayton 238690802d More work on transitioning to async, need to figure out when to stop 2022-07-07 15:38:28 +02:00
Isaac Clayton 3eb0abeddd Allow async to infect some more functions 2022-07-07 15:34:27 +02:00
Isaac Clayton 9658f732b8 Add timing instrumentation 2022-07-07 15:32:43 +02:00
Isaac Clayton b74f90639c Work on updating code to be async 2022-07-07 15:32:41 +02:00
Isaac Clayton eb958dfbb8 Make into async trait, will refactor everything Monday 2022-07-07 15:25:49 +02:00
Isaac Clayton aebd154ffe Annotate that the bug is due to a deadlock, fixing now 2022-07-07 15:23:27 +02:00
Isaac Clayton 406d6b85fd Checkpoint 2022-07-07 15:23:27 +02:00
Isaac Clayton 8ee48b2c0f Isolate smol::Command hang as a test, does not hang 2022-07-07 15:23:27 +02:00
Isaac Clayton 5767287246 Switch from std::process::Command to smol::process::Command 2022-07-07 15:22:17 +02:00
Isaac Clayton 3deea953a8 Comment out label_for_completion for now 2022-07-07 15:22:17 +02:00
Isaac Clayton e75d068dae Documentation pass 2022-07-07 15:22:17 +02:00
Isaac Clayton 1c9ccbcac2 Add async host functions 2022-07-07 15:22:17 +02:00
Isaac Clayton a8bbf8ca6c Update usage of WasiPlugin -> Plugin 2022-07-07 15:22:17 +02:00
Isaac Clayton 680e899548 Rename WasiPlugin -> Plugin, etc. 2022-07-07 15:22:17 +02:00
Isaac Clayton 39e509e682 WIP: wrap async closures host-side 2022-07-07 15:22:17 +02:00
Isaac Clayton 6e902634c9 Add functions with multiple arguments to import macro, add test cases 2022-07-07 15:22:17 +02:00
Isaac Clayton 11a88ab324 Split out lifecycle of serialization, buffer is freed now 2022-07-07 15:22:17 +02:00
Isaac Clayton 0d42fb8d12 Add build.rs to rebuild plugins, and a test plugin 2022-07-07 15:22:17 +02:00
Isaac Clayton 1f352dd3ad Change ABI from pair of u32s to single u64 2022-07-07 15:22:17 +02:00
Isaac Clayton b4f1a3a80b Factor out serialization code 2022-07-07 15:22:17 +02:00
Isaac Clayton 45743f6128 Add allocator to store so that it can be used by host functions 2022-07-07 15:22:17 +02:00
Isaac Clayton 420ceb4004 Remove dependency on self in call-related functions 2022-07-07 15:22:17 +02:00
Isaac Clayton 4765bed11d Fix issue with host function binding 2022-07-07 15:22:17 +02:00
Isaac Clayton efe725c503 Work on plugin builder 2022-07-07 15:22:17 +02:00
Isaac Clayton 27390f20e9 Start working on host-side functions 2022-07-07 15:22:17 +02:00
Isaac Clayton 56a6a81a24 Add JSON LSP plugin 2022-07-07 15:22:16 +02:00
Isaac Clayton 57e6e969ba First pass of plugin side of things complete 2022-07-07 15:20:27 +02:00
Isaac Clayton f4f7babc62 Async runtime working but is blocking 2022-07-07 15:20:27 +02:00
Isaac Clayton 122157162a Move Wasi to async, validate timeslicing, using async in traits still WIP 2022-07-07 15:20:27 +02:00