From 97881e31eabacaff033fcf99f838c3e82ae87826 Mon Sep 17 00:00:00 2001 From: Pan Qiancheng <905739777@qq.com> Date: Mon, 27 Oct 2025 11:55:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9$entity=E7=BB=93=E5=B0=BE?= =?UTF-8?q?=E7=9A=84path=E6=A3=80=E6=B5=8B=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=AE=B9=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/plugins/oakPathDecoration.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 653f584..54e2749 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,7 @@ "glob": "^11.0.0", "handlebars": "^4.7.8", "lodash": "^4.17.21", - "oak-domain": "^5.1.21", + "oak-domain": "^5.1.29", "vscode-languageclient": "^9.0.1", "vscode-languageserver": "^9.0.1", "vscode-languageserver-textdocument": "^1.0.12" diff --git a/src/plugins/oakPathDecoration.ts b/src/plugins/oakPathDecoration.ts index 559dcd9..75585f5 100644 --- a/src/plugins/oakPathDecoration.ts +++ b/src/plugins/oakPathDecoration.ts @@ -38,6 +38,11 @@ function updateDiagnostics(document: vscode.TextDocument) { const projection = match[1]; + // TODO: 如果是$entity结尾,先跳过 + if (projection.endsWith('$entity')) { + continue; + } + if (!entityProjections.includes(projection)) { if (!notIgnore('oakPath.onInvalidPath')) { continue;