-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Improve preference renderer linking #14311
Conversation
@msujew where can I find "links to other preferences"? |
@tsmaeder You can link a preference by wrapping it in theia/packages/core/src/browser/core-preferences.ts Lines 116 to 121 in 9329805
|
Do you happen to know an example for a command link? |
@tsmaeder I only noticed this by accident after I've included the Latex Workshop extension. See this preference that links to |
When I go to the preference "Latex > Recipe: Default" and click on "LaTeX Workshop: Build LaTeX project.", I get an error in the browser log:
Is there another way to exercise this feature? |
@tsmaeder I'm confused, it's not supposed to execute anything when you click on it. The feature is just there to actually show the name of the command - otherwise it will just render the original markdown code block. |
@msujew and yet you get the exception each time you click on the "link". My suspicion is that it's trying to open a link, but since there is no href, it's ending up opening "file:///". I kind of remember that we listen to folks opening links in the electron window somewhere. |
@tsmaeder Ah, yeah that makes sense. I'll render it into a non- |
What it does
Fixes a few minor issues which should massively reduce the amount of
Linked preference "<id>" not found.
warnings printed to the console:window.titleBarStyle
when not in Electron mode (the linked preference does only exist in Electron).editor.cursorSurroundingLines
instead ofcursorSurroundingLines
as a link.CommandRegistry
to figure out the name of a linked command.How to test
Review checklist
Reminder for reviewers