Skip to content

Commit caf9775

Browse files
authored
fix(amazonq): "Sign in" does not focus Q panel aws#7015
This was only a potential performance optimization. Remove it since it prevents tryExecute from working with vscode-defined commands (which are not found in `this.resources`).
1 parent 3ce0dec commit caf9775

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/core/src/shared/vscode/commands2.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ export class Commands {
159159
id: string,
160160
...args: Parameters<T>
161161
): Promise<ReturnType<T> | undefined> {
162-
const cmd = this.resources.get(id)
163-
if (!cmd) {
164-
getLogger().debug('command not found: "%s"', id)
165-
return undefined
166-
}
167162
return this.commands.executeCommand<ReturnType<T>>(id, ...args)?.then(undefined, (e: Error) => {
168163
getLogger().warn('command failed (not registered?): "%s"', id)
169164
return undefined

0 commit comments

Comments
 (0)