fix: 对$entity结尾的path检测添加了容错处理

This commit is contained in:
Pan Qiancheng 2025-10-27 11:55:10 +08:00
parent 5c9dae804e
commit 97881e31ea
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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;