解决 lib 的同步问题
This commit is contained in:
parent
55d3d8c915
commit
f8144d149f
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -10,5 +10,6 @@
|
|||||||
"typescript.tsc.autoDetect": "off",
|
"typescript.tsc.autoDetect": "off",
|
||||||
"i18n-haru.root": "l10n",
|
"i18n-haru.root": "l10n",
|
||||||
"i18n-haru.main": "zh-cn",
|
"i18n-haru.main": "zh-cn",
|
||||||
|
"i18n-haru.display": "zh-cn",
|
||||||
"i18n-haru.line-hint-max-length": 20
|
"i18n-haru.line-hint-max-length": 20
|
||||||
}
|
}
|
@ -1 +1,42 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="126px" height="126px" viewBox="-0.5 -0.5 126 126" content="<mxfile><diagram id="E9SxX19eNgA6MUTyjjO6" name="Icon-黑白">7VnbktsoEP0aP0YlhG5+HF/GqVSS8pZrd2f3xcVIWGJXEiqEx3K+fsFCN8sXORnNuJL1g003TQN9DtDgEZzG+YKhNPxCfRyNDN3PR3A2MgzoOOJbKvaFwjDNQhEw4hcqUCtW5BtWSl1pt8THWcuQUxpxkraVHk0S7PGWDjFGd22zDY3avaYowB3FykNRV/sn8XmotMAe1xUfMQlC1bVrqAnHqDRWM8lC5NNdQwXnIzhllPKiFOdTHMnYlXHxJ7s5fqSf7OfpbvVp7cXpYv2hcPZ4S5NqCgwn/HVdw8L1C4q2Kl5qrnxfBnAXEo5XKfKkvBMcGcFJyONISEAUUZYWsG1IjkVXkw2JoimNKDs0h8YMGnAi9Bln9N8KA0ta0oQ3LDeHT2VZ1iQ0ET1PGN0mvuyg6JV5imrAFWLPAKlAvmDGcd6ghwrYAtMYc7YXJqrWtBX2JflLedegUsmPsMGiSokUfYPKdw2RKCiUbkDMfC/EYG/ERM104oLZwwXYLH1I2FyoOVYbuYaqAZ5jaFYXvVr76vDZ1+ETXsTmKDl/K5BtwIwutBUs5wELGPIJrmFWy2+4FeZobaSg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qKiiY+S2/IGyMKpnthzYcUzqZCicRSQQeQfhmYE9KYSqnuLCo7y0V3up3pt/EW0WJmmivvNCulw+b3YrwlZPycub9Tgd52oEVXaEb2HDsFi1rw1IsU0CWhaxDDzNI6boOiV+Gc31oWsWqZhDeMM49wQXUo8TkeikaaakeG/kIVuj4dLrdVCpaNFBsJUFFTFVcq9TIDqyXPAKnYVtGOftMWEMLOocUQMJtEbYFG/t6QcQ+AOZ6NdlmheS6Y57Lm2MBi4t2xm6bODFXeLzLnUVfQvQ8x5JllZXw4YVpfsji+Mj1QbC88OvyTwVuUgP20c97A572D7Rwva1OvjuBqxP/plz5/acO+YfO3dvwPngdrmidT1sP2QOsc73IJ59Ag==</diagram></mxfile>"><defs/><g><rect x="2" y="2" width="120" height="120" rx="21.6" ry="21.6" fill="#2d323b" stroke="none" pointer-events="all"/><rect x="25.75" y="25.75" width="72.5" height="72.5" rx="36.25" ry="36.25" fill="#2d323b" stroke="#cb81da" stroke-width="3" pointer-events="all"/><ellipse cx="17" cy="107" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da" stroke="#cb81da" stroke-width="2" pointer-events="all"/><ellipse cx="107" cy="107" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da" stroke="#cb81da" stroke-width="2" pointer-events="all"/><ellipse cx="107" cy="17" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da" stroke="#cb81da" stroke-width="2" pointer-events="all"/><path d="M 85.4 65.95 L 92 65.95 M 59 61.34 L 65.6 61.34 M 59 70.55 L 65.6 70.55" fill="none" stroke="#cb81da" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/><path d="M 65.6 56.74 L 75.5 56.74 C 80.97 56.74 85.4 60.86 85.4 65.95 C 85.4 71.03 80.97 75.16 75.5 75.16 L 65.6 75.16 Z" fill="#cb81da" stroke="#cb81da" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/><rect x="37" y="42" width="11" height="11" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="none"/><rect x="37" y="64.72" width="11" height="11" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="none"/><path d="M 59 70.55 L 48.01 70.6" fill="none" stroke="#cb81da" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/><rect x="37" y="64.72" width="11" height="11" fill="#000000" stroke="#000000" pointer-events="none"/><rect x="37" y="42" width="11" height="11" fill="#000000" stroke="#000000" pointer-events="none"/><rect x="37" y="42" width="11" height="11" fill="#cb81da" stroke="#cb81da" pointer-events="none"/><rect x="37" y="64.72" width="11" height="11" fill="#cb81da" stroke="#cb81da" pointer-events="none"/><path d="M 48 48.14 L 53.51 48.09 L 53.51 61.31 L 59 61.34" fill="none" stroke="#cb81da" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/><ellipse cx="17" cy="17" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da" stroke="#cb81da" stroke-width="2" pointer-events="none"/></g></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
|
||||||
|
width="126px" height="126px" viewBox="-0.5 -0.5 126 126"
|
||||||
|
content="<mxfile><diagram id="E9SxX19eNgA6MUTyjjO6" name="Icon-黑白">7VnbktsoEP0aP0YlhG5+HF/GqVSS8pZrd2f3xcVIWGJXEiqEx3K+fsFCN8sXORnNuJL1g003TQN9DtDgEZzG+YKhNPxCfRyNDN3PR3A2MgzoOOJbKvaFwjDNQhEw4hcqUCtW5BtWSl1pt8THWcuQUxpxkraVHk0S7PGWDjFGd22zDY3avaYowB3FykNRV/sn8XmotMAe1xUfMQlC1bVrqAnHqDRWM8lC5NNdQwXnIzhllPKiFOdTHMnYlXHxJ7s5fqSf7OfpbvVp7cXpYv2hcPZ4S5NqCgwn/HVdw8L1C4q2Kl5qrnxfBnAXEo5XKfKkvBMcGcFJyONISEAUUZYWsG1IjkVXkw2JoimNKDs0h8YMGnAi9Bln9N8KA0ta0oQ3LDeHT2VZ1iQ0ET1PGN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2 页">5ZZdb4IwFEB/DY8m0DLQV5m6h7nEuGXPDVToVigpVXC/fkUuX+Lilui2RF+k515u29ObBgN7cbGQJI2WIqDcQGZQGPjeQAiZeKL/SrKviGU6qCKhZAGwFqzZB60TgW5ZQLNeohKCK5b2oS+ShPqqx4iUIu+nbQTvz5qSEGY0W7D2CaeDtFcWqKiiY+S2/IGyMKpnthzYcUzqZCicRSQQeQfhmYE9KYSqnuLCo7y0V3up3pt/EW0WJmmivvNCulw+b3YrwlZPycub9Tgd52oEVXaEb2HDsFi1rw1IsU0CWhaxDDzNI6boOiV+Gc31oWsWqZhDeMM49wQXUo8TkeikaaakeG/kIVuj4dLrdVCpaNFBsJUFFTFVcq9TIDqyXPAKnYVtGOftMWEMLOocUQMJtEbYFG/t6QcQ+AOZ6NdlmheS6Y57Lm2MBi4t2xm6bODFXeLzLnUVfQvQ8x5JllZXw4YVpfsji+Mj1QbC88OvyTwVuUgP20c97A572D7Rwva1OvjuBqxP/plz5/acO+YfO3dvwPngdrmidT1sP2QOsc73IJ59Ag==</diagram></mxfile>">
|
||||||
|
<defs />
|
||||||
|
<g>
|
||||||
|
<rect x="2" y="2" width="120" height="120" rx="21.6" ry="21.6" fill="#2d323b" stroke="none"
|
||||||
|
pointer-events="all" />
|
||||||
|
<rect x="25.75" y="25.75" width="72.5" height="72.5" rx="36.25" ry="36.25" fill="#2d323b"
|
||||||
|
stroke="#cb81da" stroke-width="3" pointer-events="all" />
|
||||||
|
<ellipse cx="17" cy="107" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da"
|
||||||
|
stroke="#cb81da" stroke-width="2" pointer-events="all" />
|
||||||
|
<ellipse cx="107" cy="107" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da"
|
||||||
|
stroke="#cb81da" stroke-width="2" pointer-events="all" />
|
||||||
|
<ellipse cx="107" cy="17" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da"
|
||||||
|
stroke="#cb81da" stroke-width="2" pointer-events="all" />
|
||||||
|
<path d="M 85.4 65.95 L 92 65.95 M 59 61.34 L 65.6 61.34 M 59 70.55 L 65.6 70.55"
|
||||||
|
fill="none" stroke="#cb81da" stroke-width="2" stroke-miterlimit="10"
|
||||||
|
pointer-events="none" />
|
||||||
|
<path
|
||||||
|
d="M 65.6 56.74 L 75.5 56.74 C 80.97 56.74 85.4 60.86 85.4 65.95 C 85.4 71.03 80.97 75.16 75.5 75.16 L 65.6 75.16 Z"
|
||||||
|
fill="#cb81da" stroke="#cb81da" stroke-width="2" stroke-miterlimit="10"
|
||||||
|
pointer-events="none" />
|
||||||
|
<rect x="37" y="42" width="11" height="11" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)"
|
||||||
|
pointer-events="none" />
|
||||||
|
<rect x="37" y="64.72" width="11" height="11" fill="rgb(255, 255, 255)"
|
||||||
|
stroke="rgb(0, 0, 0)" pointer-events="none" />
|
||||||
|
<path d="M 59 70.55 L 48.01 70.6" fill="none" stroke="#cb81da" stroke-width="2"
|
||||||
|
stroke-miterlimit="10" pointer-events="none" />
|
||||||
|
<rect x="37" y="64.72" width="11" height="11" fill="#000000" stroke="#000000"
|
||||||
|
pointer-events="none" />
|
||||||
|
<rect x="37" y="42" width="11" height="11" fill="#000000" stroke="#000000"
|
||||||
|
pointer-events="none" />
|
||||||
|
<rect x="37" y="42" width="11" height="11" fill="#cb81da" stroke="#cb81da"
|
||||||
|
pointer-events="none" />
|
||||||
|
<rect x="37" y="64.72" width="11" height="11" fill="#cb81da" stroke="#cb81da"
|
||||||
|
pointer-events="none" />
|
||||||
|
<path d="M 48 48.14 L 53.51 48.09 L 53.51 61.31 L 59 61.34" fill="none" stroke="#cb81da"
|
||||||
|
stroke-width="2" stroke-miterlimit="10" pointer-events="none" />
|
||||||
|
<ellipse cx="17" cy="17" rx="7.500000000000001" ry="7.500000000000001" fill="#cb81da"
|
||||||
|
stroke="#cb81da" stroke-width="2" pointer-events="none" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.9 KiB |
@ -60,5 +60,6 @@
|
|||||||
"info.dide-doc.no-dep-info": "Keine Abhängigkeitsinformationen",
|
"info.dide-doc.no-dep-info": "Keine Abhängigkeitsinformationen",
|
||||||
"info.dide-doc.source.cannot-find": "Nicht gefunden",
|
"info.dide-doc.source.cannot-find": "Nicht gefunden",
|
||||||
"info.command.instantiation.pick-title": "Select a Module",
|
"info.command.instantiation.pick-title": "Select a Module",
|
||||||
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!"
|
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!",
|
||||||
|
"info.monitor.ppy.impl-change-to-project": "Änderungen werden auf das {0}-Projekt angewendet"
|
||||||
}
|
}
|
@ -60,5 +60,6 @@
|
|||||||
"info.dide-doc.no-dep-info": "No dependency information",
|
"info.dide-doc.no-dep-info": "No dependency information",
|
||||||
"info.dide-doc.source.cannot-find": "Cannot find",
|
"info.dide-doc.source.cannot-find": "Cannot find",
|
||||||
"info.command.instantiation.pick-title": "Select a Module",
|
"info.command.instantiation.pick-title": "Select a Module",
|
||||||
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!"
|
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!",
|
||||||
|
"info.monitor.ppy.impl-change-to-project": "Applying changes to the {0} project"
|
||||||
}
|
}
|
@ -60,5 +60,6 @@
|
|||||||
"info.dide-doc.no-dep-info": "依存情報がありません",
|
"info.dide-doc.no-dep-info": "依存情報がありません",
|
||||||
"info.dide-doc.source.cannot-find": "見つかりません",
|
"info.dide-doc.source.cannot-find": "見つかりません",
|
||||||
"info.command.instantiation.pick-title": "Select a Module",
|
"info.command.instantiation.pick-title": "Select a Module",
|
||||||
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!"
|
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!",
|
||||||
|
"info.monitor.ppy.impl-change-to-project": "{0} プロジェクトに変更を適用しています"
|
||||||
}
|
}
|
@ -60,5 +60,6 @@
|
|||||||
"info.dide-doc.no-dep-info": "没有依赖信息",
|
"info.dide-doc.no-dep-info": "没有依赖信息",
|
||||||
"info.dide-doc.source.cannot-find": "无法找到",
|
"info.dide-doc.source.cannot-find": "无法找到",
|
||||||
"info.command.instantiation.pick-title": "选择一个模块",
|
"info.command.instantiation.pick-title": "选择一个模块",
|
||||||
"warn.command.clean.prjPath-is-workspace": "arch.prjPath 和当前的工作区目录相同, clean 功能可能会删除整个项目,请检查你的 arch.prjPath !"
|
"warn.command.clean.prjPath-is-workspace": "arch.prjPath 和当前的工作区目录相同, clean 功能可能会删除整个项目,请检查你的 arch.prjPath !",
|
||||||
|
"info.monitor.ppy.impl-change-to-project": "正在将修改应用于 {0} 项目中"
|
||||||
}
|
}
|
@ -60,5 +60,6 @@
|
|||||||
"info.dide-doc.no-dep-info": "沒有依賴信息",
|
"info.dide-doc.no-dep-info": "沒有依賴信息",
|
||||||
"info.dide-doc.source.cannot-find": "無法找到",
|
"info.dide-doc.source.cannot-find": "無法找到",
|
||||||
"info.command.instantiation.pick-title": "Select a Module",
|
"info.command.instantiation.pick-title": "Select a Module",
|
||||||
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!"
|
"warn.command.clean.prjPath-is-workspace": "arch.prjPath is the same as the workspace path, the clean will delete the project, please check your arch.prjPath!",
|
||||||
|
"info.monitor.ppy.impl-change-to-project": "正在將修改應用於 {0} 專案中"
|
||||||
}
|
}
|
BIN
resources/dide-viewer.zip
Normal file
BIN
resources/dide-viewer.zip
Normal file
Binary file not shown.
@ -19,7 +19,7 @@ export class PathSet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tell if two set are element-wise equal
|
* @description 判断两个集合是否逐元素相同
|
||||||
* @param setA
|
* @param setA
|
||||||
* @param setB
|
* @param setB
|
||||||
*/
|
*/
|
||||||
|
@ -75,8 +75,10 @@ function isHDLFile(path: AbsPath): boolean {
|
|||||||
|
|
||||||
|
|
||||||
function getHDLFiles(path: AbsPath | AbsPath[] | Set<AbsPath>, ignores?: AbsPath[]): AbsPath[] {
|
function getHDLFiles(path: AbsPath | AbsPath[] | Set<AbsPath>, ignores?: AbsPath[]): AbsPath[] {
|
||||||
return pickFileRecursive(path, ignores,
|
const allFiles = pickFileRecursive(path, ignores,
|
||||||
filePath => isHDLFile(filePath));
|
filePath => isHDLFile(filePath));
|
||||||
|
const pathSet = new Set<string>(allFiles);
|
||||||
|
return [...pathSet];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -192,7 +192,6 @@ class XilinxOperation {
|
|||||||
return Promise.resolve(undefined);
|
return Promise.resolve(undefined);
|
||||||
}
|
}
|
||||||
// 执行 cmd 启动
|
// 执行 cmd 启动
|
||||||
console.log('spawn process in ', opeParam.workspacePath);
|
|
||||||
const vivadoProcess = spawn(cmd, [], { shell: true, stdio: 'pipe', cwd: opeParam.workspacePath });
|
const vivadoProcess = spawn(cmd, [], { shell: true, stdio: 'pipe', cwd: opeParam.workspacePath });
|
||||||
|
|
||||||
vivadoProcess.on('close', () => {
|
vivadoProcess.on('close', () => {
|
||||||
|
@ -17,6 +17,7 @@ import { hdlMonitor } from '../monitor';
|
|||||||
import { NotificationType } from 'vscode-jsonrpc';
|
import { NotificationType } from 'vscode-jsonrpc';
|
||||||
import { refreshArchTree } from '../function/treeView';
|
import { refreshArchTree } from '../function/treeView';
|
||||||
import { Fast } from '../hdlParser/common';
|
import { Fast } from '../hdlParser/common';
|
||||||
|
import { t } from '../i18n';
|
||||||
|
|
||||||
interface RefreshPrjConfig {
|
interface RefreshPrjConfig {
|
||||||
mkdir: boolean
|
mkdir: boolean
|
||||||
@ -133,6 +134,7 @@ class PrjManage {
|
|||||||
// do search
|
// do search
|
||||||
const searchPaths = searchPathSet.files;
|
const searchPaths = searchPathSet.files;
|
||||||
const hdlFiles = hdlFile.getHDLFiles(searchPaths, ignores);
|
const hdlFiles = hdlFile.getHDLFiles(searchPaths, ignores);
|
||||||
|
|
||||||
return hdlFiles;
|
return hdlFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,7 +249,6 @@ class PpyAction extends BaseAction {
|
|||||||
const fileChange = await libManage.processLibFiles(opeParam.prjInfo.library);
|
const fileChange = await libManage.processLibFiles(opeParam.prjInfo.library);
|
||||||
MainOutput.report(`libManage finish process, add ${fileChange.add.length} files, del ${fileChange.del.length} files`, ReportType.Info);
|
MainOutput.report(`libManage finish process, add ${fileChange.add.length} files, del ${fileChange.del.length} files`, ReportType.Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// update hdl monitor
|
// update hdl monitor
|
||||||
await this.refreshHdlMonitor(m, originalHdlFiles);
|
await this.refreshHdlMonitor(m, originalHdlFiles);
|
||||||
@ -285,14 +284,21 @@ class PpyAction extends BaseAction {
|
|||||||
const newFiles = await prjManage.getPrjHardwareFiles();
|
const newFiles = await prjManage.getPrjHardwareFiles();
|
||||||
const { addFiles, delFiles } = this.diffNewOld(newFiles, originalHdlFiles);
|
const { addFiles, delFiles } = this.diffNewOld(newFiles, originalHdlFiles);
|
||||||
|
|
||||||
const options: vscode.ProgressOptions = { location: vscode.ProgressLocation.Notification };
|
await vscode.window.withProgress({
|
||||||
options.title = t('info.monitor.update-hdlparam');
|
location: vscode.ProgressLocation.Notification,
|
||||||
await vscode.window.withProgress(options, async () => await this.updateHdlParam(addFiles, delFiles));
|
title: t('info.monitor.ppy.impl-change-to-project', opeParam.prjInfo.toolChain)
|
||||||
|
}, async () => {
|
||||||
|
await this.updateHdlParam(addFiles, delFiles);
|
||||||
|
|
||||||
if (opeParam.prjInfo.toolChain === ToolChainType.Xilinx) {
|
switch (opeParam.prjInfo.toolChain) {
|
||||||
options.title = t('info.monitor.update-pl');
|
case ToolChainType.Xilinx:
|
||||||
await vscode.window.withProgress(options, async () => await this.updatePL(addFiles, delFiles));
|
await this.updatePL(addFiles, delFiles);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public async updateHdlParam(addFiles: AbsPath[], delFiles: AbsPath[]) {
|
public async updateHdlParam(addFiles: AbsPath[], delFiles: AbsPath[]) {
|
||||||
@ -302,6 +308,8 @@ class PpyAction extends BaseAction {
|
|||||||
for (const path of delFiles) {
|
for (const path of delFiles) {
|
||||||
hdlParam.deleteHdlFile(path);
|
hdlParam.deleteHdlFile(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: 增加解决 instance 的地方
|
||||||
}
|
}
|
||||||
|
|
||||||
public async updatePL(addFiles: AbsPath[], delFiles: AbsPath[]) {
|
public async updatePL(addFiles: AbsPath[], delFiles: AbsPath[]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user