First version

This commit is contained in:
brice.boisson
2025-10-21 22:00:23 +02:00
commit 46c5561ee5
4 changed files with 674 additions and 0 deletions

75
package.json Normal file
View File

@@ -0,0 +1,75 @@
{
"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" },
{ "command": "modelsim.toggleWaveMode", "key": "ctrl+alt+m" },
{ "command": "modelsim.zoomInWave", "key": "ctrl+alt+u" }
],
"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"
}
}