We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e53f28 commit e943e7fCopy full SHA for e943e7f
extensions/ql-vscode/src/local-queries/local-queries.ts
@@ -600,6 +600,11 @@ export class LocalQueries extends DisposableObject {
600
}
601
602
603
-function isTabInputText(input: any): input is TabInputText {
604
- return input?.uri !== undefined;
+function isTabInputText(input: unknown): input is TabInputText {
+ return (
605
+ input !== null &&
606
+ typeof input === "object" &&
607
+ "uri" in input &&
608
+ input?.uri !== undefined
609
+ );
610
0 commit comments