Example:
In the following, x will link to docs for p5.Vector.x, and heading will link to docs for p5.Vector.heading.
const x = 3;
const heading = 180;Detail:
If a variable is named after a p5 object method, it will underline when alt is pressed and link to the documentation of that method.
I expect this may cause confusion but understand the trickiness of doing this properly and still supporting links from currently non-parsing user code.
The shortcut (Cmd-shift-enter on mac) used to take us to code view even if we'd interacted with the canvas. (I'm pretty sure I'm not misremembering!) Now, however, if you've clicked on the canvas you have to tab out and then hit the shortcut.
Weirdly, works currently on beta.openprocessing.org but not on openprocessing.org as of 24th oct, which is perhaps why the issue wasn't caught.
resolved (after some time and browser cache hard reset)
This has been the shortcut for years with the old openprocessing editor.
update: Seems fixed now, yay!
update: Seems disabled now, yay!
Disable ligatures or put them behind a switch, default off.
Students new to JS see the ligature symbols and don't know how to type them nor what they correspond to with what they have so far learned.
(I'm seeing ligatures on beta.openprocessing.org on chrome on mac.)
I can't get this to repeat, so ignore for now.
The sketch in question was https://openprocessing.org/sketch/2767143, and it was happening for a while after I created the sketch today, but behaviour seems perfect now. I also tried making new tabs with glsl and renaming. (Perhaps this happened either side of the rollout.)
Can we connect to typescript language server (running in the browser) to do some typechecking, both against p5.js functions and against user-defined types in jsdocs.