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;