All notable changes to the "pfsnippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
- Release 2020.06 and 2020.07
- Changing versions in the snippets menus also change it for the loaded snippets that can be inserted with the keyboard shortcuts
- Release 2020.04 and 2020.05
- Changelog links
- Only load extension when the container is active
- Added a web icon
- Updated the PatternFly icon
- Updated README
- Removed patternflySnippets.reactSnippetPrefixWithComments and patternflySnippets.reactSnippetPrefixWithoutComments settings and replaced with a single patternflySnippets.reactSnippetPrefix. Comments can be toggled in the React view.
- Reload snippets when auto import is toggled
- The PatternFly fragments are now in their own view container in the sidebar. Look for the PatternFly icon!
- Core snippets have been added, the default (configurable) trigger to get snippet suggestions is the
@
key. - More configurable options can now be found within the extension settings, including the completion trigger and the applicable file types.
- Release menu items should only appear in the code snippets view
- If there is already an import from
@patternfly/react-core
, add the auto import to the closest matching import statement above the cursor position
- Update CHANGELOG
- Include latest PatternFly release 2020.02
- Do not show snippets for plaintext and HTML files
- Only trigger snippet suggestions on typing the
!
or#
keywords
- Added experimental feature to automatically add the import statement in the form import { COMPONENT } from '@patternfly/react-core; If there is an existing import in the file from react-core it will add to that import instead.
- Snippets will no longer duplicate in the search results that show up after using the
!
or#
keywords - Links in the Beta category have been fixed
- The release version is part of the URLs to the documentation now
- Initial release