Skip to content

Pulsar doesn't update file buffers correctly when switching branches #1227

Description

@backit

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

Hi,
i think this is the same issue on atom
atom/atom#4982
If you change branch via cli, pulsar does not reflect this leaving files opened, very dangerous.
Steps to reproduce:
in a git repo, from "dev" branch make a "test" branch, now open pulsar and create a file testfile and commit
Leave Pulsar opened and from cli change branch to "dev".
testfile should be closed on Pulsar and not visible from tree.
Instead it stay open and if you modify and save it you'll find in "dev" branch".

This is particularly dangerous when you have same files with different content, for example via cli in testfile in test branch write "lorem ipsum" and save 'n' commit, now change to dev branch and in testfile write "ipsum lorem" save n commit, open pulsar you are in dev branch, modify the file and s'n'c, change to test branch the file show the content from dev branch!! if you save you'll overwrite the file in branch "test" !!! O.O

Pulsar version

1.125.2025012404

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

Ubuntu 22.04

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

  1. in a git repo, from "dev" branch make a "test" branch
  2. open pulsar and create a file testfile and commit
  3. Leave Pulsar opened and from cli change branch to "dev".

testfile should be closed on Pulsar and not visible from tree.
Instead it stay open and if you modify and save it you'll find in "dev" branch".

Additional Information:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions