Skip to content

Does not refresh when filename contains glob metacharacters like “[” or “{” #582

@rippleBryant

Description

@rippleBryant

Summary

When a file whose name contains glob metacharacters (e.g., “[”, “]”, “?”, “*”, “{”, “}”, “(”, “)”, “!”, “+”, “@”) is opened in Hex Editor, the view does not refresh after the file changes on disk. It looks like the watcher builds a vscode.RelativePattern using the raw file name without escaping, so the file name is interpreted as a glob and the change event doesn’t match.

Environment

OS: Windows 11
VS Code: 1.103.1
Hex Editor: 1.11.1

Steps to Reproduce

  1. Create a file with a glob metacharacter in its name, e.g.: C:\temp[name].bin
  2. Open that file in Hex Editor.
  3. Modify the file from another process.
  4. Observe that Hex Editor does not refresh. Closing the Hex Editor tab and opening the file again shows the change.

Expected Behavior

Hex Editor refreshes when the underlying file changes, regardless of characters in the file name.

Actual Behavior

No refresh occurs when the file name contains glob metacharacters. Only closing and reopening reflects the update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions