Files
vscode-eda-wave-helper/package.json
2025-10-22 23:24:27 +02:00

77 lines
2.3 KiB
JSON

{
"name": "modelsim-wave-ext",
"displayName": "ModelSim Wave Extension",
"description": "Send add wave commands to ModelSim from VS Code",
"version": "0.0.2",
"engines": { "vscode": "^1.70.0" },
"activationEvents": [
"onCommand:modelsim.addWaveUnderCursor",
"onStartupFinished",
"onView:myCustomPanel"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{ "command": "modelsim.addWaveUnderCursor", "title": "Add Wave for Word Under Cursor" },
{ "command": "modelsim.toggleWaveMode", "title": "Toggle Wave Debug Mode" }
],
"keybindings": [
{ "command": "modelsim.addWaveUnderCursor", "key": "ctrl+w", "when": "modelsim.mode", "args": { "mode": "auto" } },
{ "command": "modelsim.addWaveUnderCursor", "key": "ctrl+e", "when": "modelsim.mode", "args": { "mode": "set" } },
{ "command": "modelsim.toggleWaveMode", "key": "ctrl+alt+m" },
{ "command": "modelsim.zoomInWave", "key": "ctrl+alt+u", "when": "modelsim.mode" }
],
"viewsContainers": {
"panel": [
{
"id": "myPanelContainer",
"title": "My Tools",
"icon": "media/tools.svg"
}
]
},
"views": {
"myPanelContainer": [
{
"type": "webview",
"id": "myCustomPanel",
"name": "My Panel"
}
]
},
"configuration": {
"title": "ModelSim Wave",
"properties": {
"modelsimWave.sharedDir": {
"type": "string",
"default": ".",
"description": "Folder shared between VS Code and ModelSim."
},
"modelsimWave.topScope": {
"type": "string",
"default": "sim:/tb_top/",
"description": "Simulation top scope (e.g., sim:/top_tb)."
},
"modelsimWave.timeoutMs": {
"type": "number",
"default": 5000,
"description": "Timeout waiting for ModelSim response (ms)."
},
"modelsimWave.debugKeepResults": {
"type": "boolean",
"default": false,
"description": "Keep ModelSim result files for debugging."
}
}
}
},
"scripts": {
"build": "tsc -p ."
},
"devDependencies": {
"typescript": "^5.9.2",
"@types/node": "^20.0.0",
"@types/vscode": "^1.70.0"
}
}