Skip to content

Extension ignores expired token and fails in the wrong place

Original title: (Open Active File on GitLab fails with Cannot read property 'webUrl' of null)

Checklist

Summary

When I use the "Open Active File on GitLab" fails with Cannot read property 'webUrl' of null

Steps to reproduce

Use an expired token to set up the extension.

Open any file and execute the "Open Active File on GitLab" command.

What is the current bug behavior?

Nothing happens. No error, no browser window opened.

Before I updated it used to give this error:

Cannot read property 'webUrl' of null
TypeError: Cannot read property 'webUrl' of null
at getActiveFile (/Users/myusername/.vscode/extensions/gitlab.gitlab-workflow-3.33.0/out/src/openers.js:91:39)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async openActiveFile (/Users/myusername/.vscode/extensions/gitlab.gitlab-workflow-3.33.0/out/src/openers.js:103:33)
at async /Users/myusername/.vscode/extensions/gitlab.gitlab-workflow-3.33.0/out/src/extension.js:36:9
at async _executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:94:110871)

What is the expected correct behavior?

It should open a browser window with the file I selected.

Relevant logs and/or screenshots

It looks like my logs are empty.

Edited by Tomas Vik