mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 07:04:53 +00:00
15 lines
483 B
TypeScript
15 lines
483 B
TypeScript
import { definePlugin } from "@netcatty/plugin-sdk";
|
|
|
|
export default definePlugin({
|
|
activate(context) {
|
|
context.subscriptions.add(context.commands.registerCommand(
|
|
"com.netcatty.starter.greet",
|
|
async () => {
|
|
const greeting = await context.settings.get<string>("com.netcatty.starter.greeting") ?? "Hello, synthetic world!";
|
|
context.views.postMessage("com.netcatty.starter.panel", { greeting });
|
|
return { greeting };
|
|
},
|
|
));
|
|
},
|
|
});
|