mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
* WIP * Add custom add request * Update package.json * Component model resource example * Update to latest wit-bindgen * WIP * Minor example updates * Update wasm-lsp example * Added some minor comments * Minor renames * Change lsp server to count files * More model resource work * WIP * Make the example work * Update examples to latest * Update sample to latest tooling * Update sample to latest wit2ts tooling * WIP * Carry over https://github.com/microsoft/vscode-docs/pull/7234/files * Code cleanup * Remove dist folder * Remove another dist folder
22 lines
299 B
Plaintext
22 lines
299 B
Plaintext
// wit/calculator.wit
|
|
package vscode:example;
|
|
|
|
interface types {
|
|
|
|
enum operation {
|
|
add,
|
|
sub,
|
|
mul,
|
|
div
|
|
}
|
|
|
|
resource engine {
|
|
constructor();
|
|
push-operand: func(operand: u32);
|
|
push-operation: func(operation: operation);
|
|
execute: func() -> u32;
|
|
}
|
|
}
|
|
world calculator {
|
|
export types;
|
|
} |