Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 4.06 KB

CHANGELOG.md

File metadata and controls

71 lines (51 loc) · 4.06 KB

Changelog

All notable changes to the Visual Studio Code extension Template Pig will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[3.0.4] - 2022-09-15

  • Changed how pig.shouldOpenDocument(…) works so it’s hopefully more consistent.

[3.0.3] - 2022-09-12

  • Add ability to control which template files are left open by implementing pig.shouldOpenDocument(…).

[3.0.2] - 2022-09-08

  • Add ability to add a pig.transformContext(…) method to your .pig.js which adds additional context. This can be useful when you’re using the ability to rerun your last template and your pig.executeAsync(…) and you don’t need to ask new questions but you do want to provide more computed values to your template items.
  • Fix bug with rerunning your last template.

[3.0.1] - 2022-09-08

  • You can now rerun your last template with the same answers (effectively skipping pig.executeAsync(…)). This can be useful when you’re debugging a template item’s contents contents or the getDestinationPath(…) implementation.

[3.0.0] - 2022-09-06

  • getRelativePath(ancestorUri, descendantUri) now returns the path with forward slashes instead of back slashes; it was annoying to have case 'Foo\\Bar.txt' in getDestinationPath(…) implementations.

[2.0.0] - 2022-09-03

  • You can now embed JavaScript in between <pig></pig> at the beginning of a template item to initialize helpers that are specific to that file.
    • A single trailing newline will be stripped after the closing </pig> tag; everything after that will be considered template content.

[1.0.5] - 2022-09-03

  • Make most variables/functions available globally in .pig.js also available in template items.

[1.0.4] - 2022-09-03

  • Fix bugs

[1.0.3] - 2022-09-03

  • .pig.js now has log(…) in context from Template Pig.

[1.0.2] - 2022-09-03

  • getFolderContents(…) now takes in an options object as 2nd parameter.
    • getFolderContents(…) can now yield non-empty folders if you specify { yieldNonEmptyFolders: true }.
    • getFolderContents(…) can now exclude custom files instead of/in addition to .pig.js, .pignore, and .pigignore if you specify { excludeFiles: ['example.txt'] }.

[1.0.1] - 2022-09-03

  • Fix bugs

[1.0.0] - 2022-09-02

  • getDestinationPath(…)’s first argument is no longer the sourcePath, but instead is an object with the sourcePath, uri, and dirent object.
  • getFolderContents(…) now returns an async generator which yields all files, but only folders which don’t yield other descendant items.
    • Files named .pig.js, .pignore, and .pigignore aren’t yielded.
  • Cleaned up some internal things to more correctly refer to things as paths and URIs.

[0.0.6] - 2022-08-29

  • .pig.js now has Uri in context from vscode.
  • .pig.js now has getFileContent(…), getFolderContents(…), getRelativePath(…), and toFileUri(…) in context from Template Pig.
    • See README.md for method details.

[0.0.5] - 2022-08-29

  • .pig.js now has both QuickPickItemKind and QuickInputButtons in context from vscode.

[0.0.4] - 2022-08-29

  • Uncaught exceptions now reported to user when getting metadata from a template, calling executeAsync(…), rendering templates, or calling getDestinationPath(…) with buttons to view the stack trace or open the file that likely caused the issue.

[0.0.3] - 2022-08-26

  • Alias change-case’s paramCase method to kebabCase.
  • Alias change-case’s noCase method to both lowerSentenceCase and spaceCase.

[0.0.2] - 2022-08-26

  • Declare VS Code configuration contributions so settings show up in Settings UI / JSON IntelliSense.
  • Change settings root key from template-pig to templatePig so VS Code Settings UI formats it as "Template Pig" instead of "Template-pig".

[0.0.1] - 2022-08-26

  • Initial release