We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
validateWhereClauseStructure
1 parent 36599e2 commit 3dc70d2Copy full SHA for 3dc70d2
server/src/server.ts
@@ -520,11 +520,10 @@ function validateWhereClauseStructure(node: SyntaxNode): Diagnostic[] {
520
521
for (let i = 0; i < currentNode.childCount; i++) {
522
const child = currentNode.child(i);
523
- if (child?.type === ";" && i + 2 < currentNode.childCount) {
+ if (child?.type === ";" && i + 1 < currentNode.childCount) {
524
const nextChild = currentNode.child(i + 1);
525
- const followingChild = currentNode.child(i + 2);
526
527
- if (nextChild?.type === "id" && followingChild?.type === "=") {
+ if (nextChild?.child(0)?.type === "pattern" && nextChild?.child(1)?.type === "=") {
528
hasProperStructure = true;
529
break;
530
}
0 commit comments