We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 63a28b8 + caf9775 commit 974e7e4Copy full SHA for 974e7e4
packages/core/src/shared/vscode/commands2.ts
@@ -159,11 +159,6 @@ export class Commands {
159
id: string,
160
...args: Parameters<T>
161
): 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
- }
167
return this.commands.executeCommand<ReturnType<T>>(id, ...args)?.then(undefined, (e: Error) => {
168
getLogger().warn('command failed (not registered?): "%s"', id)
169
return undefined
0 commit comments