Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finally Block Appears Empty in Developer Tools Despite Containing Code Locally #127

Open
123caner123 opened this issue Feb 15, 2024 · 0 comments

Comments

@123caner123
Copy link

Describe the bug
In my local development environment, the finally block contains code intended to perform necessary cleanup or final actions following a try/catchsequence. However, when inspecting the code through the developer tools in the browser, thefinallyblock appears to be empty. This discrepancy could potentially interfere with the correct execution of the code or lead to misleading debugging outcomes. I am seeking to understand why thefinally` block, which is populated and functioning correctly in the local environment, is displayed as empty within the developer tools.

Expected behavior
The finally block should display the contained code in the developer tools just as it does in the local environment.

image

image

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Browser [e.g. chrome, safari]

Code Snippet

// Simplified code to demonstrate the issue
const wifNavSvc = await SDK.getService<IWorkItemFormNavigationService>(WorkItemTrackingServiceIds.WorkItemFormNavigationService);

wifNavSvc.openNewWorkItem(newWorkItemType, {
    // ...
}).then(
    async (newlyCreatedWorkItem: WorkItem) => {
        // ...
    }
).catch(error => {
    // ...
}).finally(() => {
    // Code that should appear in developer tools
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant