Skip to content

Commit 895c22e

Browse files
committed
Fix supported.
1 parent 76fb55f commit 895c22e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

extensions/ql-vscode/src/data-extensions-editor/auto-model.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ export function createAutoModelRequest(
6666
input: `Argument[${argumentIndex}]`,
6767
};
6868

69-
// Candidates are methods that are not currently modeled in this model file or in any other model file.
70-
if (modeledMethod.type === "none" && !externalApiUsage.supported) {
69+
// A method that is supported is modeled outside of the model file, so it is not a candidate.
70+
// We also do not want it as a sample because we do not know the classification.
71+
if (modeledMethod.type === "none" && externalApiUsage.supported) {
72+
continue;
73+
}
74+
75+
// Candidates are methods that are not currently modeled
76+
if (modeledMethod.type === "none") {
7177
candidates.push(method);
7278
} else {
7379
samples.push(method);

0 commit comments

Comments
 (0)