Skip to content

Blodwynn/-VSCODE-.soy-language-server-client

Repository files navigation

Soy file support (Google closure template)

General file support for .soy files. See section below for details.

Functionality

  • Syntax highlight
  • Syntax check: inline error and warning underline
  • Go to definition support
  • Find References
  • Code autocompletion
  • Snippets
  • Outline
  • File/folder excludes from parsing

Syntax highlight

  • Highlight of keywords, variables, html entities, comments, etc.

Definition lookup

  • Go to definion
  • Peek definition

References lookup

  • Find all references

Code Autocompletion

  • Autocomplete for template calls

Commands

  • Soy File Support: Reparse workspace: Useful after external changes (eg: switching branches) to find all new template data
  • Soy File Support: Show extension changes: Opens your favourite changelog to show what's new :)
  • Soy File Support: About: Opens the readme file

Error highlights

  • Missing $ sign in variable declarations
  • Missing closing tag for let declarations and params
  • Extra space before closing tag for lets and params
  • Unnecessary / character for let and param blocks
  • Self closing for templates and deltemplates
  • Empty declaration
  • Missing colon
  • Some common wrong stuctures of {elseif}, eg: {else if}

Information highlights

  • TODO comments
  • Breaking Change comments

Autoclosing brackets and strings

Snippets

All snippets start with the character s to be able to quickly search for them.

Snippets:

  • sfor - foreach block
  • sforin - for .. in block
  • sif - if block
  • sife - if-else block
  • sl - let statement - single line
  • slb - let statement - block
  • sp - param statement - single line
  • spb - param statement - block
  • sps - param signature
  • sc - call block
  • sdelc - delcall block
  • sdelcempty - delcall block with allowemptydefault="true"
  • stemp - template skeleton
  • sdeltemp - deltemplate skeleton

About

Visual Studio Code .soy language server + client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published