Skip to content

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

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

Open
daphne-sfdc opened this issue Mar 27, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@daphne-sfdc
Copy link

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

@daphne-sfdc daphne-sfdc added bug Something isn't working new-issue New issue which was not discussed yet labels Mar 27, 2025
@daphne-sfdc daphne-sfdc changed the title [🚫 Bug] getActiveTab() getOpenTabs() functions in EditorView.ts do not work on diff editors [🚫 Bug] getActiveTab() and getOpenTabs() functions in EditorView.ts do not work on diff editors Mar 27, 2025
@djelinek djelinek moved this from New to Backlog in ExTester Apr 8, 2025
@djelinek djelinek removed the new-issue New issue which was not discussed yet label Apr 8, 2025
@djelinek djelinek added this to the Backlog milestone Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants