Skip to content

processing-language-server/LS4P

Repository files navigation

Processing Language Server

LS4P Port

What's Processing Language Server

Processing Language Server is a Language Server Protocol (LSP) implementation for Processing Programming Language. All the language specific features of Processing can now be extended to most the generic editors like VSCode, Atom, Sublime text and so on, by extending this Language Server. LS4P contains both Processing Language Server and a VSCode client. Refer SETUP.md to setup Processing Language Server locally and NEWCLIENT.md to create your own Processing Language Client.

  • Pre-note:

    • Save the sketch with the extension .pde to initiate the Processing Language Server.

  • Activation Event:

    • Processing should appear in the status bar of vscode - indicates Processing Language Server is active.

Current Capabilities of LS4P

  • Auto-completion:

    • Gives you context-aware suggestions to help you code faster.
    • Autocompletion will function as you enter your code in the workspace and can be explicitly triggered using the character . after an instance of a class.

  • Diagnostics:

    • Automatically detects the errors in your code in real-time.
    • Represented using squiggly lines.
    • Hover over the word that has squiggly lines to find out the cause of the error.

  • Go-to definition:

    • cmd+click on a variable, will move the cursor to the variable declaration.
    • This also works for method and class declarations
    • An alternate way of invocation: right-click on the variable name and click Go to Definition.

  • Hover Insights:

    • Hover mouse pointer over a keyword - this brings up a pop-up containing what that keyword means.

  • Finding References:

    • Helps you find all the references of a variable, class or a function used.
    • Can be invoked by clicking on the n References link that appears over all the Variable, Class or Method Declarations.
    • An alternate way of invocation: Right-click on a Variable, Class or Method name and click Peek References.

  • Running sketch:

    • cmd+shift+P to bring up the run console and type Run Processing sketch, press enter - runs the processing sketch.


Releases

No releases published

Packages

No packages published