sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
809 stars 39 forks source link

Not all syntaxes are available #6021

Open KES777 opened 1 year ago

KES777 commented 1 year ago

Description of the bug

For a newly opened file (1) try to select different syntax (2). You will see that not all syntaxes are available. But if you press somewhere in the view (3) then any syntax will be available

image

Steps to reproduce

  1. Open new file
  2. Select different syntax

Expected behavior

All syntaxes should be available in any time.

Actual behavior

Only some syntaxes are available

Sublime Text build number

4143

Operating system & version

Linux Mint v21.1

(Linux) Desktop environment and/or window manager

Cinnamon

Additional information

No response

OpenGL context information

No response

TerminalFi commented 1 year ago

Actually, none of the syntaxes are available only the sub menus! And that is because of the preview on click. You can't change the syntax of a file which isn't fully opened. You can disable file previews and then when you open a file it will have the syntax selection available. This is working as intended

KES777 commented 1 year ago

@TerminalFi

  1. Why Can't change the syntax of a file which isn't fully opened restriction exists?
  2. How to disable file previews?
  3. What fully opened means? Thank you.
TerminalFi commented 1 year ago

@TerminalFi

  1. Why Can't change the syntax of a file which isn't fully opened restriction exists?
  2. How to disable file previews?
  3. What fully opened means? Thank you.
  1. Ask the developers, maybe make a feature request?
  2. “preview_on_click”: false
  3. Sublime preview files on click but it can be disabled.
deathaxe commented 1 year ago

I see this on Windows as well.