Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Pharo Language SupportNew to Visual Studio Code? Get it now.

Pharo Language Support

badetitou

|
145 installs
| (0) | Free
Highlighting, Auto-completion, Execution, ...
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-pharo

A Pharo client extension for VSCode.

  • Supported files
  • Features
    • Generic feature
    • Supported Language Server feature
    • Debug Adapter Protocol feature
    • Additional feature
  • Installation
  • Thanks

Supported files

This extension support .st files and .class.st files (tonel format)

Features

We present here the existing features

Generic feature

  1. Code highlighting

Highlighting

Supported Language Server feature

  1. Code formatting

Format gif

  1. Hover

Hover

  1. Auto-completion

Auto-Completion

  1. Help with method signature

Signature help gif

Debug Adapter Protocol feature

  1. Break on halt
    1. Show the stack
    2. Show the variables
    3. Add watch

Break on halt

  1. Step, step in, step out

Step the stack gif

Additional feature

The additional feature can be access using the command palette of VSCode

  1. Save the Pharo image
  2. Execute and show the result

Inspect gif

  1. Execute and print the result

Print gif

  1. Keep variable state

Keep Variable state gif

  1. Show the current server version

Show version gif

  1. Saving a tonel file in VSCode, save the corresponding methods/class in the Pharo image

Installation

To install the extension:

  1. Install VSCode
  2. Install the Pharo extension
  3. Download a Pharo Language Server image or install the server in a pre-existing image
  4. Download a VM (headless or not) for the image
  5. Set up the Pharo extension property
    1. pharo.pathToVM: is the path to the VM executable
      1. Windows: C:\path\to\pharo.exe
      2. Linux: /path/to/pharo
      3. MacOS: /path/to/Pharo.app/Contents/MacOS/Pharo
    2. pharo.pathToImage: is the absolute path to the image

Thanks

This extension is inspired from the one of Leonardo Nascimento for smalltalk.

Thanks a lot Leonardo!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft