File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 7272
7373 override string getCommandName ( ) { result = this .getArgument ( 0 ) .( StringLiteral ) .getValue ( ) }
7474 }
75+
76+ /**
77+ * A usage of a command from the typescript code, by calling `CommandManager.execute`.
78+ */
79+ class CommandUsageCommandManagerMethodCallExpr extends CommandUsage , MethodCallExpr {
80+ CommandUsageCommandManagerMethodCallExpr ( ) {
81+ this .getCalleeName ( ) = "execute" and
82+ this .getReceiver ( ) .getType ( ) .unfold ( ) .( TypeReference ) .getTypeName ( ) .getName ( ) = "CommandManager" and
83+ this .getArgument ( 0 ) .( StringLiteral ) .getValue ( ) .matches ( "%codeQL%" ) and
84+ not this .getFile ( ) .getRelativePath ( ) .matches ( "extensions/ql-vscode/test/%" )
85+ }
86+
87+ override string getCommandName ( ) { result = this .getArgument ( 0 ) .( StringLiteral ) .getValue ( ) }
88+ }
7589
7690 /**
7791 * A usage of a command from any menu that isn't the command palette.
You can’t perform that action at this time.
0 commit comments