mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
13 lines
623 B
TypeScript
13 lines
623 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import { Connection, RAL } from '@vscode/wasm-component-model';
|
|
import { calculator } from './calculator';
|
|
|
|
async function main(): Promise<void> {
|
|
const connection = await Connection.createWorker(calculator._);
|
|
connection.listen();
|
|
}
|
|
|
|
main().catch(RAL().console.error); |