更新 netlist 的触发条件
This commit is contained in:
parent
60089dab5f
commit
4337a1c9a9
31
package.json
31
package.json
@ -626,6 +626,15 @@
|
||||
"category": "Digital-IDE",
|
||||
"title": "%digital-ide.netlist.show.title%"
|
||||
},
|
||||
{
|
||||
"command": "digital-ide.netlist.treeview",
|
||||
"icon": {
|
||||
"light": "images/svg/light/netlist.svg",
|
||||
"dark": "images/svg/dark/netlist.svg"
|
||||
},
|
||||
"category": "Digital-IDE",
|
||||
"title": "test"
|
||||
},
|
||||
{
|
||||
"command": "digital-ide.waveviewer.show",
|
||||
"icon": {
|
||||
@ -674,9 +683,12 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "digital-ide.netlist.show",
|
||||
"command": "digital-ide.netlist.treeview",
|
||||
"group": "inline@3",
|
||||
"when": "view == digital-ide-treeView-arch && viewItem == file"
|
||||
"when": "view == digital-ide-treeView-arch && viewItem == file",
|
||||
"args": {
|
||||
"file": "${viewItem}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "digital-ide.pl.setSrcTop",
|
||||
@ -711,11 +723,6 @@
|
||||
"command": "digital-ide.tool.icarus.simulateFile",
|
||||
"group": "navigation@1"
|
||||
},
|
||||
{
|
||||
"when": "editorLangId == verilog || editorLangId == systemverilog || editorLangId == vhdl",
|
||||
"command": "digital-ide.netlist.show",
|
||||
"group": "navigation@3"
|
||||
},
|
||||
{
|
||||
"when": "editorLangId == vcd || editorLangId == view",
|
||||
"command": "digital-ide.waveviewer.show",
|
||||
@ -758,11 +765,6 @@
|
||||
"command": "digital-ide.tool.icarus.simulateFile",
|
||||
"group": "navigation@5"
|
||||
},
|
||||
{
|
||||
"when": "resourceLangId == verilog || resourceLangId == systemverilog || resourceLangId == vhdl",
|
||||
"command": "digital-ide.netlist.show",
|
||||
"group": "navigation@6"
|
||||
},
|
||||
{
|
||||
"when": "resourceLangId == vcd || resourceLangId == vcd",
|
||||
"command": "digital-ide.waveviewer.show",
|
||||
@ -800,11 +802,6 @@
|
||||
"command": "digital-ide.tool.instance",
|
||||
"group": "navigation@8"
|
||||
},
|
||||
{
|
||||
"when": "resourceLangId == verilog || resourceLangId == systemverilog || resourceLangId == vhdl",
|
||||
"command": "digital-ide.netlist.show",
|
||||
"group": "navigation@9"
|
||||
},
|
||||
{
|
||||
"when": "resourceLangId == vcd || resourceLangId == view",
|
||||
"command": "digital-ide.waveviewer.show",
|
||||
|
@ -131,12 +131,23 @@ function registerFSM(context: vscode.ExtensionContext) {
|
||||
}
|
||||
|
||||
function registerNetlist(context: vscode.ExtensionContext) {
|
||||
vscode.commands.registerCommand('digital-ide.netlist.show', (uri, moduleName) => {
|
||||
if (typeof uri === 'string') {
|
||||
uri = vscode.Uri.file(uri);
|
||||
}
|
||||
Netlist.openNetlistViewer(context, uri, moduleName);
|
||||
});
|
||||
context.subscriptions.push(
|
||||
vscode.commands.registerCommand('digital-ide.netlist.show', (uri, moduleName) => {
|
||||
if (typeof uri === 'string') {
|
||||
uri = vscode.Uri.file(uri);
|
||||
}
|
||||
Netlist.openNetlistViewer(context, uri, moduleName);
|
||||
})
|
||||
);
|
||||
|
||||
context.subscriptions.push(
|
||||
vscode.commands.registerCommand('digital-ide.netlist.treeview', (view: ModuleDataItem) => {
|
||||
if (view.path && view.name) {
|
||||
const uri = vscode.Uri.file(view.path);
|
||||
Netlist.openNetlistViewer(context, uri, view.name);
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
function registerWaveViewer(context: vscode.ExtensionContext) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user