Skip to content

support error diagnostics #5

@travisstaloch

Description

@travisstaloch

I notice that there are no inline diagnostics / squiggles shown on lint or build errors and would like to work to improve this.

I looked at this code

lapce-zig/src/main.rs

Lines 93 to 97 in 1c8a0c6

Initialize::METHOD => {
let params: InitializeParams = serde_json::from_value(params).unwrap();
if let Err(e) = initialize(params) {
PLUGIN_RPC.stderr(&format!("plugin returned with error: {e}"))
}
.

I wonder if doing something like this could work? https://github.com/lapce-community/lapce-cpp-clangd/blob/bf47542fdd9804745f62759252845548f3e645ab/src/main.rs#L190C3-L202C4

The problem is that I have no idea how test a plugin locally.

Would it just be a matter of making the changes, building this project and copying the resulting wasm file into my local lapce-zig plugin folder? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions