Added:
- CDN assets are cached on disk. A sketch that includes e.g.
https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js
orhttps://cdn.jsdelivr.net/npm/[email protected]/lib/addons/p5.sound.min.js
will cause the server to look for a local copy first. This is true regardless of whether the CDN asset is included explicitly, via an HTML file, or implicitly, because a script-only sketch uses its API. A new configuration setting controls this.
Fixed:
- Replaced ghcdn.rawgit.org by cdn.jsdelivr.net
Changed:
- Reloading a sketch clears the console. A new configuration "P5-server > Console: Clear on Reload" restores the old behavior.
Improved:
- [Performance] Sketch analysis is cached
- [Performance] File edits only refresh the file and its sketch
Added:
- Add antiboredom/p5.patgrad to the library list
Fixed:
- Restore syntax-error reporting functionality
- Performance improvements
Added:
- Update release notes.
Added:
- Menu items to open sketch in internal, external browser
Changed:
- A directory is classified as a single-directory sketch only if the HTML file is named index.html
- performance improvements in sketch detection, library inference
Added:
- New Sketch Explorer menu w/ Create Sketch, Create Sketch (Folder), Create Sketch (HTML)
Fixed:
- In Sketch Explorer, create sketch is relative to selected file or folder
- Auto import works for p5.xr, p5.3D, and libraries hosted only on GitHub
Fixed:
- integrated console output was broken in 1.1.2
Added:
- Recognize libraries: anime, CCapture.js, p5.pattern, p5.rotate-about
Fixed:
- Remove annoying upgrade information message, was showing up on very workspace activation instead of just once
Fixed:
- p5-server upgrade handles file names with spaces
New:
-
The Run Sketch command defaults to the new integrated browser. Change the "P5-server: Browser" setting to
system
in order to open sketches in the default system browser. Or, change it to the name of a specific browser (such as Chrome, Edge, or Safari). -
In the sketch explorer, clicking on a sketch runs it in the internal browser. Uncheck the "P5-server: Explorer > Explorer: Auto Run Sketch On Side" setting to disabled this.
-
The first time the extension is activated, it displays release notes (this page) if there are signficant changes. For this release only, it also displays the release notes if the extension has been just been installed.
Changed:
- In the "P5-server: Browser" setting, the default system browser is named
system
instead ofdefault
.
New:
- In the sketch explorer, click a library to open its home page in the default system browser.
- The sketch explorer can be used to rename and duplicate sketches. Right-click / control-click for a context menu that provides these items.
The following features are disabled by default. Change the "P5-server:
Browser" setting to integrated
in order to use the integrated browser. This
will be the default in the next minor release.
New:
- The extension now includes an integrated browser, that runs inside of VS Code.
To activate this, change the new "P5-server: Browser" setting to
integrated
. (In the next release, this will become the default value for this setting.) - Console messages from the integrated browser are displayed in an output channel. This channel opens automatically when a message is printed to the console. Use the "Console > Integrated Browser > Auto Show: Level" setting to modify this behavior.
Fixed:
- Clicking a sketch opens the main file. (Previously, clicking an HTML sketch opened the HTML file.)
- In the sketch explorer, disclosing a sketch's files no longer lists files outside the sketch directory.
Changed:
- The sketch explorer has its own item on the activity bar. It defaults to this location rather than the Explorer container. In order to restore the previous behavior, drag it back into the Explorer container (or into any other container).
- In the sketch explorer, disclosing a sketch shows its libraries.
Improved:
- Upgraded p5-server: more libraries are recognized for automatic import.
- In the sketch explorer, file paths are shown relative to the workspace directory.
Fixed:
- Upgrade p5-server: fixes filename case inconsistency that caused error on Linux
Added:
- Add configuration settings to select the browser
- Add configuration settings to control visibility
Improved:
- Upgrade to p5-server 0.3.0
New:
- A new 🌐 editor title menu opens the editor's sketch in the browser
- The 🌐 item in the status bar opens the root
- Sketch explorer:
- Add dark icons
- Add an icon. This is used when it is dragged to the Activity bar.
- Changed the run command's icon 🌐->🞂
- Display the run command only on sketch items
- Enable the explorer commands only in that view
Improved:
- Upgrade to p5-server 0.2.1. Refer to its change notes for additonal changes that affect this extension.
New:
- Add a Sketch explorer
- Open browser opens onto the current editor's sketch
- Launch server quick-picks from multiple workspace folders
- Added an icon to the marketplace
Improved:
- Separate commands to create sketch folder or sketch file
- Upgrade to [email protected]
New:
- Add create sketch command
- Open in the browser
Improved:
- Status bar uses product icons
- Initial release