fix: 对$entity结尾的path检测添加了容错处理
This commit is contained in:
parent
5c9dae804e
commit
97881e31ea
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue