diff --git a/src/plugins/built-in/_sample/index.js b/src/plugins/built-in/_sample/index.js new file mode 100644 index 0000000..3131f20 --- /dev/null +++ b/src/plugins/built-in/_sample/index.js @@ -0,0 +1,12 @@ +const { PluginAPI } = require('../../plugin-api'); + +class SamplePlugin extends PluginAPI { + init(context) { + this.context = context; + context.commands.register('hello', 'Sample: Hello World', () => { + console.log('[SamplePlugin] Hello from the plugin system!'); + }); + } +} + +module.exports = { Plugin: SamplePlugin }; diff --git a/src/plugins/built-in/_sample/manifest.json b/src/plugins/built-in/_sample/manifest.json new file mode 100644 index 0000000..48865a6 --- /dev/null +++ b/src/plugins/built-in/_sample/manifest.json @@ -0,0 +1,13 @@ +{ + "id": "_sample", + "name": "Sample Plugin", + "version": "1.0.0", + "description": "Demonstrates the plugin system. Safe to delete.", + "icon": "puzzle", + "extensionPoints": { + "commands": [ + { "id": "hello", "label": "Sample: Hello World", "shortcut": "" } + ] + }, + "settings": [] +}