From a33ac452ba4bcfb9e7154a23a9ea38c93ed0c38d Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 08:21:59 +0000 Subject: feat(plugin): run pseudocode files in the integrated terminal Co-Authored-By: Claude Fable 5.1 --- plugin/package.json | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'plugin/package.json') diff --git a/plugin/package.json b/plugin/package.json index 4bffadd..677c9d1 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,7 +1,7 @@ { "name": "cie-pseudocode", "displayName": "CIE Pseudocode", - "description": "CIE pseudocode highlighting, Tab indentation and bracket checking for .cps files.", + "description": "CIE pseudocode highlighting, Tab indentation, bracket checking and terminal execution for .cps files.", "version": "0.1.0", "publisher": "ovfor4", "author": "_ov4", @@ -20,11 +20,39 @@ "Formatters" ], "scripts": { - "check": "node --check src/extension.js && node --check src/indentation.js && node --check src/lexical.js && node --check src/brackets.js", + "check": "node --check src/extension.js && node --check src/indentation.js && node --check src/lexical.js && node --check src/brackets.js && node --check src/runner.js", "test": "node --test test/*.test.js", "package": "npm run check && npm test && vsce package --no-dependencies" }, "contributes": { + "commands": [ + { + "command": "cie-pseudocode.runFile", + "title": "Run Pseudocode File in Terminal", + "enablement": "editorLangId == cie-pseudocode", + "icon": "$(play)" + } + ], + "menus": { + "editor/title": [ + { + "command": "cie-pseudocode.runFile", + "when": "editorLangId == cie-pseudocode", + "group": "navigation@1" + } + ] + }, + "configuration": { + "title": "CIE Pseudocode", + "properties": { + "cie-pseudocode.compilerPath": { + "type": "string", + "default": "cpsc", + "scope": "resource", + "description": "Compiler executable name on PATH or full path to cpsc (cpsc.exe on Windows)." + } + } + }, "languages": [ { "id": "cie-pseudocode", -- cgit v1.3.1-4-g156e