We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce5a98 commit 52e3a71Copy full SHA for 52e3a71
1 file changed
extensions/ql-vscode/src/model-editor/shared/validation.ts
@@ -98,7 +98,11 @@ export function validateModeledMethods(
98
const seenModeledMethods = new Set<string>();
99
for (const modeledMethod of consideredModeledMethods) {
100
const canonicalModeledMethod = canonicalizeModeledMethod(modeledMethod);
101
- const key = JSON.stringify(canonicalModeledMethod);
+ const key = JSON.stringify(
102
+ canonicalModeledMethod,
103
+ // This ensures the keys are always in the same order
104
+ Object.keys(canonicalModeledMethod).sort(),
105
+ );
106
107
if (seenModeledMethods.has(key)) {
108
result.push({
0 commit comments