vscode_sys/
window.rs

1
2
3
4
5
6
7
8
9
10
11
12
use js_sys::{JsString, Promise};
use wasm_bindgen::prelude::*;

#[wasm_bindgen(module = vscode)]
extern "C" {
    pub type Window;

    pub static window: Window;

    #[wasm_bindgen(method, js_name = "showInformationMessage")]
    pub fn show_information_message(this: &Window, msg: JsString) -> Promise;
}