Skip to content

vscode.commands.executeCommand('al.publishNoDebug') not returning result? #8181

@jimmymcp

Description

@jimmymcp

Please include the following with each issue:

1. Describe the bug
My extension (AL Test Runner) relies on calling the al.publishNoDebug command to optionally publish the test app before running tests. My extension appears to hang unresponsive after publishing the app. This seems to be because await vscode.commands.executeCommand('al.publishNoDebug') doesn't return a result.

2. To Reproduce
Attempt to call the publishNoDebug command programmatically with vscode.commands.executeCommand.

3. Expected behavior
Expected a result to be returned with the success or failure to run the command.

4. Actual behavior
The await never seems to resolve.

5. Versions:

  • AL Language: v17.0.1998613
  • Visual Studio Code: 1.107.1 (also tested in VS Code Insiders)
  • Business Central: N/A
  • Operating System:
    • [ X ] Windows
    • Linux
    • MacOS

Final Checklist

Please remember to do the following:

  • Search the issue repository to ensure you are reporting a new issue

  • Reproduce the issue after disabling all extensions except the AL Language extension

  • Simplify your code around the issue to better isolate the problem

Internal work item: AB#617795

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions