From 0dd947addd8fff71b7e78239795fd5246804a7b8 Mon Sep 17 00:00:00 2001 From: LSTM-Kirigaya <1193466151@qq.com> Date: Wed, 11 Dec 2024 15:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20fast=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/monitor/hdl.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/monitor/hdl.ts b/src/monitor/hdl.ts index 8df3eb5..48c5aad 100644 --- a/src/monitor/hdl.ts +++ b/src/monitor/hdl.ts @@ -2,12 +2,13 @@ import * as chokidar from 'chokidar'; import * as vscode from 'vscode'; import { refreshArchTree } from '../function/treeView'; -import { AbsPath, MainOutput, opeParam, ReportType } from '../global'; +import { AbsPath, LspClient, MainOutput, opeParam, ReportType } from '../global'; import { hdlFile, hdlPath } from '../hdlFs'; import { hdlParam, HdlSymbol } from '../hdlParser'; import type { HdlMonitor } from './index'; import { BaseAction, Event } from './event'; import { hdlIgnore } from '../manager/ignore'; +import { DoFastToolChainType, SyncFastRequestType } from '../global/lsp'; export class HdlAction extends BaseAction { selectFSWatcher(m: HdlMonitor): chokidar.FSWatcher | undefined { @@ -99,8 +100,10 @@ export class HdlAction extends BaseAction { return; } + const fileType = 'common'; + const toolChain = opeParam.prjInfo.toolChain as DoFastToolChainType; // 更新 hdl 文件 - const fast = await HdlSymbol.fast(path, 'common'); + const fast = await LspClient.DigitalIDE?.sendRequest(SyncFastRequestType, { path, fileType, toolChain }) if (fast) { hdlParam.updateFast(path, fast); }