Giter Site home page Giter Site logo

vscode-zscript's Introduction

ZScript (ZBrush scripting language)

Zbrush link GitHub issues GitHub license button

Description

ZScript language support for VS Code

(ZScript is used in zBrush to automate tasks and script workflows.)

Features

Intelligent autocomplete

  • Provide valid zcommand name
  • Provide the valid variable type
  • Provide auto complete for command that require path (ex: <zscriptinsert, "myScript.txt">) zscriptinsert_auto
  • Provide routine definition comment
  • Provide routine definition arg type

routine_auto

  • Provide window path (new in 1.4)

window_path

ZCommand Signature

Display information about each command argument (type, description)

signature

Hover

Provide information about a symbol when hovering it.

hover

Variables

  • Display all the variables in the file.
  • provide goto declaration functionality
  • Variable has type.

Snippets

  • Loop insert a loop command snippet.
  • If insert a if command snippet.
  • IfElse insert a if else command snippet.
  • RoutineDef insert a routine definition snippet.
  • RoutineDef1 insert a routine definition with one arg snippet.

Adding type for routine Definition

You can specifiy the type of your routine definition optional argument to have a better signature and help the autocomplete displaying the good variable type.

Support for zscriptinsert

Autocomplete will display variable defined in the inserted file.

Commands

  • ZScript: Web Doc Open the zscript documentation web page in your browser
  • ZScript: Web Command Reference" Open the zscript command reference web page in your browser.
  • ZScript: Install File Icon Display the zbrush icon for zscript files.zscript_file_icon
  • ZScript: Uninstall File Icon Remove the zscript icon display.

Color support

colorProvider

Future implementation

Color Provider

Implemented in 1.1.0 Some command require hexadecimal color (ex: 0xffffff). It is quite hard to know what the color is without looking somewhere else. Hopefully visual studio offer to provide color picker with ColorProvider.

Linter implementation

Implement a linter to display some potential error.

Release Notes

1.4.0

  • Add Window path autocomplete

1.3.0

1.2.0

  • Implementation of workspace symbol providers
  • Implementation of folding ranges
  • Implementation of document link for zscriptinset command

1.1.0

  • Implementation of ColorProvider.

1.0.0

  • Initial release.

vscode-zscript's People

Contributors

dependabot[bot] avatar jonasouellet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tpqz-dev

vscode-zscript's Issues

Error when parsing '<'

Parser doesn't parse the code properly when it encounters an '<' probably because of the zscriptinsert command

Text parsing support spaces and ':'

support spaces when parsing a text, also support character ':' ( ui path)
should stop parsing when encountering any other non letter character

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.