- Fixed an issue where generating a graph view or spreadsheet view would fail if the current tab was not a text editor with a .yarn file open.
- Updated VS Code engine from 1.63 to 1.74.
- Commands that depend on the language server being online will now only appear in the command palette if the language server has started.
- The extension will now activate when the workspace contains a .yarn or .yarnproject file, rather than waiting for a .yarn file to be opened.
- Added a command to create a new
.yarnproject
file in the workspace.
- Updated to Yarn Spinner v2.4.2.
- Fixed an issue where the built-in function declarations were missing their return type annotations.
- Updated the schema for .ysls.json files:
- Commands may no longer specify a return type.
- Functions must now specify a return type.
- Changed the definition of 'types' to be an enum of "string", "number", "bool", or "any".
- Enums in JSON schema are type sensitive, so a warning will be issued for types that have capital letters. To fix these warnings, change your type names in your
.ysls.json
file to be lowercase. (These warnings have no impact on your Yarn script editing experience or runtime behaviour.)
- Enums in JSON schema are type sensitive, so a warning will be issued for types that have capital letters. To fix these warnings, change your type names in your
- Updated to Yarn Spinner v2.4.0.
- Fixed a bug where not all language server features would successfully register (and would present as a random subset of features, like code completion or code lens, would simply not work.)
- Fixed a bug where Yarn files in workspaces that don't have a .yarnproject file would fail to work correctly.
- Improved code completion to be more reliable.
- Fixed a bug where lines that contain no character names but do contain a
#line:
tag would have incorrect syntax highlighting. - Fixed a bug where certain built-in functions like
dice()
would not type-check correctly.
- Arrows between nodes now always leave a node at the bottom or the right edge, and enter at the top or left edge, which makes it easier to read the graph as a left-to-right flow.
- Code completion has been re-written, and should now be much faster and more reliable.
- Added the ability to jump to the graph view from a text view, by clicking "Show in Graph View" above a node's title.
- Added the ability to select multiple nodes in the graph view.
- To select nodes, click and drag inside the graph view.
- To pan the view, hold the Alt key (Option on macOS) and click and drag inside the graph view, or click and drag the mousewheel.
- Added the ability to move multiple nodes at once in the graph view.
- Yarn preview text now includes any comments present in the source code.
- Increased the size of node previews, and made them a fixed size of 250x125. Preview text now wraps, and if it goes off the end of the node, it fades out as it reaches the bottom.
- Added the ability to visually group nodes in the graph view.
-
To group nodes together, add a
group
header to one or more nodes:title: NodeA group: Cool Nodes --- Lines here... === title: NodeB group: Cool Nodes --- Lines here... ===
-
You can have as many groups in a document as you like, but each node can only be in a single group at a time.
-
- Added the ability to export a spreadsheet of all dialogue for voice-over recording.
- Voice-over spreadsheets can be exported in either Microsoft Excel or CSV format.
- By default, the spreadsheet contains the line ID, character name (where detected), and line text. Additional columns can be added in Settings.
- Added the ability to preview Yarn dialogue in the editor.
- To use this feature, press
Control-Shift-P
(Command-Shift-P
on macOS), and type "Preview Dialogue".
- To use this feature, press
- Added the ability to save a self-contained HTML previewer of your Yarn dialogue.
- To use this feature, press
Control-Shift-P
(Command-Shift-P
on macOS), and type "Export Dialogue as HTML".
- To use this feature, press
- Added the ability to save a graphical representation of the Yarn dialogue.
- To use this feature, press
Control-Shift-P
(Command-Shift-P
on macOS), and type "Export Dialogue as Graph". - Graphs are exported in GraphViz format. You will need additional software to be able to view these graphs.
- To use this feature, press
- Added the ability to highlight a node with a colour.
-
To use this feature, add the
color
header to a node:title: MyNode color: red --- Lines here... ===
-
Valid colours are:
red
,green
,blue
,orange
,yellow
, andpurple
.
-
- The first few lines of a node will now be shown as a preview in the graph view.
- The graph view now starts centered on the first node in the file.
- Clicking 'Add Node' multiple times will now position each new node offset a little from the last, making it easier to see when you've added multiple new nodes.
- Added the ability to zoom in and out of the graph view using the scroll wheel (two-finger scroll on trackpads).
- Replaced the graph view's line-drawing algorithm with one that should be more stable.
- Nodes that don't have a
position
header set will appear stacked up in the graph view, which prevents a problem where it's unclear how many nodes you have in your document.
- Adjusted the background color of the graph view to provide better contrast.
- Increased the width of the 'Jump to Node' dropdown to 200px.
- Fixed a bug where the graph view would not update when the Yarn file was changed on Windows.
- Added a setting that controls whether the language server is enabled or not. This feature was added for users who aren't using Yarn Spinner 2.0, but want features like syntax highlighting to work.
- Fixed an issue that caused the graph view and the language server to not load files correctly on Windows.
- No code changes in this release from v2.2.0; this release exists only to update the readme on the VS Code page.
- Added a Language Server implementation for Yarn Spinner, which adds semantic highlighting, syntax and semantic error detection, code actions, go-to-refence, command detection, and other language features.
- This release of Yarn Spinner for Visual Studio Code adds telemetry that reports on errors that the extension encounters. For more information on what we collect, and how to turn it off, please see README.md.
- Support for detecting syntax errors in Yarn Spinner 2.0 source.
- A visual editor for creating, managing and deleting nodes.
- Support for highlighting Yarn Spinner v1.1's inline expressions and format functions.
- Initial release of this extension.