增加诊断进度条
This commit is contained in:
parent
78da956c67
commit
e65b531da3
@ -581,14 +581,6 @@
|
|||||||
"description":"interface name; ... endinterface"
|
"description":"interface name; ... endinterface"
|
||||||
},
|
},
|
||||||
|
|
||||||
"display":{
|
|
||||||
"prefix":"display",
|
|
||||||
"body":[
|
|
||||||
"\\$display($0);"
|
|
||||||
],
|
|
||||||
"description":"$display(\"...\", params...)"
|
|
||||||
},
|
|
||||||
|
|
||||||
"set Module":{
|
"set Module":{
|
||||||
"prefix":"setmodule",
|
"prefix":"setmodule",
|
||||||
"body":[
|
"body":[
|
||||||
@ -663,22 +655,6 @@
|
|||||||
"description": "forever begin ... end"
|
"description": "forever begin ... end"
|
||||||
},
|
},
|
||||||
|
|
||||||
"write":{
|
|
||||||
"prefix": "$write",
|
|
||||||
"body": [
|
|
||||||
"\\$write($1)"
|
|
||||||
],
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
|
|
||||||
"clog2":{
|
|
||||||
"prefix": "$clog2",
|
|
||||||
"body": [
|
|
||||||
"\\$clog2($1)"
|
|
||||||
],
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
|
|
||||||
"signed":{
|
"signed":{
|
||||||
"prefix": "$signed",
|
"prefix": "$signed",
|
||||||
"body": [
|
"body": [
|
||||||
@ -695,14 +671,6 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
|
||||||
"random" : {
|
|
||||||
"prefix": "$random",
|
|
||||||
"body": [
|
|
||||||
"\\$random($1)"
|
|
||||||
],
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
|
|
||||||
"wavedrom comment": {
|
"wavedrom comment": {
|
||||||
"prefix" : "wavedrom",
|
"prefix" : "wavedrom",
|
||||||
"body": [
|
"body": [
|
||||||
@ -712,26 +680,5 @@
|
|||||||
"}",
|
"}",
|
||||||
"*/"
|
"*/"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
|
|
||||||
"dumpfile": {
|
|
||||||
"prefix": "$dumpfile",
|
|
||||||
"body": [
|
|
||||||
"\\$dumpfile(\"$1\");"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"dumpvars": {
|
|
||||||
"prefix": "$dumpvars",
|
|
||||||
"body": [
|
|
||||||
"\\$dumpvars;"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"finish": {
|
|
||||||
"prefix": "$finish",
|
|
||||||
"body": [
|
|
||||||
"\\$finish;"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -326,7 +326,7 @@ export async function refreshWorkspaceDiagonastics(
|
|||||||
const consumer = async (path: string) => {
|
const consumer = async (path: string) => {
|
||||||
await publishDiagnostics(client, path);
|
await publishDiagnostics(client, path);
|
||||||
}
|
}
|
||||||
await asyncConsumer(lintPaths, consumer, parallelChunk);
|
await asyncConsumer(lintPaths, consumer, parallelChunk, progress);
|
||||||
} else if (linterMode === LinterMode.Common) {
|
} else if (linterMode === LinterMode.Common) {
|
||||||
// common, 只对打开文件进行操作
|
// common, 只对打开文件进行操作
|
||||||
// 先清除所有的诊断结果
|
// 先清除所有的诊断结果
|
||||||
@ -355,14 +355,14 @@ export async function refreshWorkspaceDiagonastics(
|
|||||||
return files;
|
return files;
|
||||||
});
|
});
|
||||||
|
|
||||||
await asyncConsumer(tabArray, consumer, parallelChunk);
|
await asyncConsumer(tabArray, consumer, parallelChunk, progress);
|
||||||
} else {
|
} else {
|
||||||
// shutdown, 如果是初始化阶段,什么都不需要做
|
// shutdown, 如果是初始化阶段,什么都不需要做
|
||||||
const consumer = async (path: string) => {
|
const consumer = async (path: string) => {
|
||||||
await clearDiagnostics(client, path);
|
await clearDiagnostics(client, path);
|
||||||
};
|
};
|
||||||
if (!isInitialise) {
|
if (!isInitialise) {
|
||||||
await asyncConsumer(lintPaths, consumer, parallelChunk);
|
await asyncConsumer(lintPaths, consumer, parallelChunk, progress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,11 @@ class PlManage extends BaseManage {
|
|||||||
public setSrcTop(item: ModuleDataItem) {
|
public setSrcTop(item: ModuleDataItem) {
|
||||||
this.context.ope.setSrcTop(item.name, this.context);
|
this.context.ope.setSrcTop(item.name, this.context);
|
||||||
const type = moduleTreeProvider.getItemType(item);
|
const type = moduleTreeProvider.getItemType(item);
|
||||||
|
console.log('set top');
|
||||||
|
console.log(type);
|
||||||
|
console.log(item);
|
||||||
|
|
||||||
|
|
||||||
if (type === HdlFileProjectType.Src) {
|
if (type === HdlFileProjectType.Src) {
|
||||||
moduleTreeProvider.setFirstTop(HdlFileProjectType.Src, item.name, item.path);
|
moduleTreeProvider.setFirstTop(HdlFileProjectType.Src, item.name, item.path);
|
||||||
moduleTreeProvider.refreshSrc();
|
moduleTreeProvider.refreshSrc();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user