Novaâ„¢

Extensions


Readme

Astro for Nova

Provides syntax highlighting, IntelliSense and autocompletion for Astro components.

Currently supports the following features:

  • Syntax highlighting for .astro components
  • Code hover hints and issues
  • Code completion
  • Emmet
  • Code folding
  • Color Picker in .astro components

Support for the following is planned for future updates:

  • Debugging
  • LSP config
  • Jump to definition

Known issues

  • Code folding is not working correctly for html tags.
  • Top level html template tags will not grey out when commented.

Contributing

If you find a problem not listed here, know a way to fix it, or think of an enhancement please create an issue, PRs welcome!

Credits

As always credit goes to @apexskier for making the great TypeScript extension and utils. Thanks to the Astro team for their work on the Astro Language Server and VSCode extension, and to Nova for their built in syntaxes that I have wholehartedly copied.


Changelog

Version 0.4.2

  • Upgrade Astro LSP to v0.20.3.

Version 0.4.1

  • Upgrade Astro LSP to v0.13.4.

Version 0.4.0

  • Upgrade Astro LSP to v0.13.2.
  • Fix: Enabling/Disabling LSP in config now works as expected.

Version 0.3.3

  • Fix typos in docs.

Version 0.3.2

  • Refactor color assistant script in Typescript.

Version 0.3.1

  • Implememt Open Workspace Config command.

Version 0.3.0

  • Color picker now working in .astro components.
  • Syntax highlighting working for Markdown inside <Markdown> tags.

Version 0.2.1

  • Updated syntax now includes support for JavaScript in jsx templates.

Version 0.2.0

  • Added support for Astro LSP with IntelliSense and code completion.

Version 0.1.0

  • Rough syntax highlighting for .astro components.
  • No support for inline Markdown and javascript in html templates.

License

MIT License

Copyright (c) 2021 Matt Cook

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.