Skip to content

[🚫 Bug] getActiveTab() and getOpenTabs() functions in EditorView.ts do not work on diff editors #1818

Open
@daphne-sfdc

Description

@daphne-sfdc

Describe the bug

I am building E2E tests for the Salesforce Extensions for VSCode. In one of my E2E tests, I want to check the titles of the open tabs in Editor View. I noticed that if one or more of those open tabs is a diff editor, I am able to use neither getActiveTab() nor getOpenEditorTitles() to check the titles without the test failing.

Steps to reproduce

getActiveTab(): https://github.com/forcedotcom/salesforcedx-vscode-automation-tests-redhat/pull/42/commits/a06b65d8496b1f7cc986d437e773e4c7714874d6 - 'L' is able to be printed but 'M' is not.

getOpenTabs(): https://github.com/forcedotcom/salesforcedx-vscode-automation-tests-redhat/pull/42/commits/f26f0b52460db6f8072f6896b407b64e5160f575 - 'L' is able to be printed but 'M' is not.

Logs

https://github.com/forcedotcom/salesforcedx-vscode/actions/runs/13926699286/job/38973040093

From that log you can see two sections that print up to 'L'.

Operating System

Ubuntu 24.04.2

Visual Studio Code

1.98.2

vscode-extension-tester

^8.8.1

NodeJS

20.17.0

npm

10.8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions