Files
rspade_system/app/RSpade/resource/vscode_extension/package.json
root f6fac6c4bc Fix bin/publish: copy docs.dist from project root
Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 02:08:33 +00:00

156 lines
5.6 KiB
JSON
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "rspade-framework",
"displayName": "RSpade Framework Support",
"description": "VS Code extension for RSpade framework with code folding, formatting, and namespace management",
"version": "0.1.170",
"publisher": "rspade",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Other"
],
"activationEvents": [
"workspaceContains:**/app/RSpade/**"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "RSpade Framework",
"properties": {
"rspade.enableCodeFolding": {
"type": "boolean",
"default": true,
"description": "Enable automatic folding of LLMDIRECTIVE blocks"
},
"rspade.enableReadOnlyRegions": {
"type": "boolean",
"default": true,
"description": "Show visual indicators for RSX:USE sections"
},
"rspade.enableFormatOnMove": {
"type": "boolean",
"default": true,
"description": "Automatically update namespaces when moving PHP files"
},
"rspade.pythonPath": {
"type": "string",
"default": "python",
"description": "Path to Python executable (python or python3)"
},
"rspade.projectType": {
"type": "string",
"default": "",
"description": "Set to 'rspade' to enable RSpade framework features"
},
"rspade.enableBladeAutoSpacing": {
"type": "boolean",
"default": true,
"description": "Automatically add spaces inside Blade tags when typing"
}
}
},
"commands": [
{
"command": "rspade.toggleFolding",
"title": "RSpade: Toggle LLMDIRECTIVE Folding"
},
{
"command": "rspade.formatPhpFile",
"title": "RSpade: Format PHP File"
},
{
"command": "rspade.updateNamespace",
"title": "RSpade: Update Namespace for Current File"
},
{
"command": "rspade.copyRelativePathFromRoot",
"title": "RSpade: Copy Relative Path from Project Root"
},
{
"command": "rspade.refactorStaticMethod",
"title": "$(symbol-method) Rsx: Global Rename Method"
},
{
"command": "rspade.refactorClass",
"title": "$(symbol-class) Rsx: Global Rename Class"
},
{
"command": "rspade.sortClassMethods",
"title": "$(list-ordered) Rsx: Sort Class Methods"
}
],
"menus": {
"explorer/context": [
{
"command": "rspade.sortClassMethods",
"when": "resourceExtname == .php",
"group": "2_workspace"
}
]
},
"keybindings": [
{
"command": "rspade.copyRelativePathFromRoot",
"key": "ctrl+shift+alt+c",
"mac": "cmd+shift+alt+c",
"when": "editorFocus"
}
],
"languages": [
{
"id": "php",
"extensions": [
".php"
]
}
],
"grammars": [],
"semanticTokenTypes": [
{
"id": "conventionMethod",
"superType": "method",
"description": "Convention method automatically called by RSX framework"
},
{
"id": "jqhtmlTagAttribute",
"superType": "parameter",
"description": "The tag attribute on jqhtml components"
}
],
"semanticTokenScopes": [
{
"scopes": {
"conventionMethod": ["entity.name.function.convention.rspade"],
"jqhtmlTagAttribute": ["entity.other.attribute-name.jqhtml.tag"]
}
}
],
"configurationDefaults": {
"editor.semanticTokenColorCustomizations": {
"rules": {
"conventionMethod": "#FFA500",
"jqhtmlTagAttribute": "#FFA500"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && echo '\\n⚠ IMPORTANT: To complete the VS Code extension update, run: ./build.sh\\n\\nThe build.sh script will:\\n- Install all prerequisite npm dependencies\\n- Compile TypeScript to JavaScript\\n- Package the extension\\n- Install it in VS Code for immediate use\\n\\n⛔ FOR DEVELOPERS/LLM AGENTS: Do NOT run \"npm install\" or \"npm run compile\" directly.\\nAlways use ./build.sh which handles everything automatically.\\n'",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.74.0",
"@types/node": "16.x",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.28.0",
"typescript": "^4.9.3"
}
}