Skip to content

Commit d036e81

Browse files
committed
Do not expect type models to be supported
1 parent 4f2d768 commit d036e81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/ql-vscode/src/model-editor/consistency-check.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ function checkMethodConsistency(
4242
modeledMethods: readonly ModeledMethod[],
4343
notifier: Notifier,
4444
) {
45-
const expectSupported = modeledMethods.some((m) => m.type !== "none");
45+
// Type models are currently not shown as `supported` since they do not give any model information.
46+
const expectSupported = modeledMethods.some(
47+
(m) => m.type !== "none" && m.type !== "type",
48+
);
4649

4750
if (method.supported !== expectSupported) {
4851
notifier.inconsistentSupported(

0 commit comments

Comments
 (0)