这是indexloc提供的服务,不要输入任何密码
Skip to content

File name is not changing on query tool editor tab if opens up another file immediately #5909

@anilsahoo20

Description

@anilsahoo20

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

In the query tool editor tab, the file name is not changing if we open up another file. It is showing the old file's name, that makes confusion if we are editing the other file or the old file.

To Reproduce

Steps to reproduce the behavior:

  1. Open a file in query tool editor and call it file_1.
  2. Make some changes on the file_1 or can skip this step.
  3. Check the query tool editor tab that shows the file_1
  4. Click on open file button.
  5. On the unsaved changes popup click 'YES' or or can skip this step if skipped step-2
  6. Open another file named as file_2
  7. If you check the query tool editor tab that still shows file_1 not file_2 as we opened file_2
  8. If we make any change on the query in file_2, we can see the tab is now showing file_2.

Expected behavior

The query tool editor tab must show the new file that we opened immediately

Screenshots

file_1 content:
Screenshot 2023-03-02 at 1 05 07 PM

file_2 content: check query tool tab, it shows file_1.sql
Screenshot 2023-03-02 at 1 06 49 PM

after making some change in file_2:
Screenshot 2023-03-02 at 1 11 10 PM

Desktop (please complete the following information):

  • OS: OSX monterey 12.6.3
  • Version: 6.21
  • Mode: Desktop
  • Browser (if running in server mode): [e.g. chrome, safari]
  • Package type: [e.g. RPM, DEB, Python, Container, etc.]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions