update params for linter in package.json
This commit is contained in:
parent
131380f1f5
commit
d1b6a95538
31
package.json
31
package.json
@ -454,7 +454,36 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "digital-ide.lsp.verilog.linter",
|
"command": "digital-ide.lsp.verilog.linter",
|
||||||
"title": "%digital-ide.lsp.verilog.linter.title%"
|
"title": "%digital-ide.lsp.verilog.linter.title%",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"vivado",
|
||||||
|
"modelsim",
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"category": "Digital-IDE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "digital-ide.lsp.vhdl.linter",
|
||||||
|
"title": "%digital-ide.lsp.vhdl.linter.title%",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"vivado",
|
||||||
|
"modelsim",
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"category": "Digital-IDE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "digital-ide.lsp.systemverilog.linter",
|
||||||
|
"title": "%digital-ide.lsp.systemverilog.linter.title%",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"vivado",
|
||||||
|
"modelsim",
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"category": "Digital-IDE"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "digital-ide.vhdl2vlog",
|
"command": "digital-ide.vhdl2vlog",
|
||||||
|
@ -40,5 +40,8 @@
|
|||||||
"digital-ide.lsp.tool.transformOldPropertyFile.title": "Transform configure file from previous version to new version",
|
"digital-ide.lsp.tool.transformOldPropertyFile.title": "Transform configure file from previous version to new version",
|
||||||
"digital-ide.vhdl2vlog.title": "Translate vhdl code to verilog code",
|
"digital-ide.vhdl2vlog.title": "Translate vhdl code to verilog code",
|
||||||
"digital-ide.fsm.show.title": "Show FSM graph of current file",
|
"digital-ide.fsm.show.title": "Show FSM graph of current file",
|
||||||
"digital-ide.netlist.show.title": "Show netlist of current file"
|
"digital-ide.netlist.show.title": "Show netlist of current file",
|
||||||
|
"digital-ide.lsp.verilog.linter.title": "type of diagnotor for verilog",
|
||||||
|
"digital-ide.lsp.vhdl.linter.title": "type of diagnotor for vhdl",
|
||||||
|
"digital-ide.lsp.systemverilog.linter.title": "type of diagnotor for systemverilog"
|
||||||
}
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
import * as vscode from "vscode";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class VivadoLinter {
|
||||||
|
diagnostic: vscode.DiagnosticCollection;
|
||||||
|
constructor() {
|
||||||
|
this.diagnostic = vscode.languages.createDiagnosticCollection();
|
||||||
|
}
|
||||||
|
|
||||||
|
async lint(document: vscode.TextDocument) {
|
||||||
|
const filePath = document.fileName;
|
||||||
|
|
||||||
|
// acquire install path
|
||||||
|
const name = "prj.vivado.install.path";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user