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

fix: issue with file switching and default Tabs #5827

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gap-editor
Copy link

solves #5810

Copy link

netlify bot commented Feb 28, 2025

👷 Deploy request for remixproject pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2cebff7

@@ -31,6 +31,7 @@ export interface Tab {
export interface TabsUIApi {
activateTab: (name: string) => void
active: () => string
activateByTitle: (title: string) => void
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should work only with name as this is a key.

@@ -747,32 +746,13 @@ export default class FileManager extends Plugin {
if (this.currentFile() === file && !this.editor.isDiff) return

const provider = resolved.provider
// Activate the editor tab before opening the file
await this._components.registry.get('tabs').api.activateByTitle('Editor')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no Editor tab

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

Successfully merging this pull request may close these issues.

2 participants