Expand description
Structs§
- Response
Future - Future returned by
send_request.
Functions§
- block_
on - Spin-polls
funtil it resolves. Safe for single-threaded WASM where the host drives re-entry viaoo_on_messagefrom within__oo_host_call. - create_
terminal - Create a terminal panel running
command. - get_
config - Read a config value for this extension. Returns
Noneif not found. - has_
language - Returns true when the host has detected at least one file of
lang_idin the project. The host exposes these via a dedicatedHasLanguagerequest; this helper sends that request and interprets a “true” string response. - log
- Write a message to the IDE log.
- oo_
alloc ⚠ - oo_alloc for use in a wasm extension
- oo_free⚠
- oo_free for use in a wasm extension
- oo_
on_ message - Called by the host to deliver a response. The payload is a
MessagePack-encoded
Message::Responsein WASM linear memory. - open_
file - Ask the host to open a file in the editor.
- run_
command - Trigger an IDE command by its dotted ID string (e.g.
"editor.save"). - send_
request - Send a request to the host and return a future that resolves when the host
calls back via
oo_on_message. - show_
notification - Show a user-visible notification.
levelis"info","warn", or"error". - update_
status_ bar - Update the status bar text.
slotis"left","center", or"right".