Skip to content

For distributing plugins to the community and foster further developments with the community going forward.

License

Notifications You must be signed in to change notification settings

RajkumarVelusamy/vscode-psl

 
 

Repository files navigation

vscode-psl

Build Status

Profile Scripting Language functionality for Visual Studio Code.

Dependencies

  • Visual Studio Code version 1.17 (October 2017) or higher

Configuration

Locate the button at the bottom-right corner titled Configure Environments. If the button is not visible, use the Command Pallete (F1 or Ctrl+Shift+P) to find the PSL: Configure Environment command. A JSON object of the following form will appear:

{
	"environments": [
		{
			"name": "",
			"host": "",
			"port": 0,
			"user": "",
			"password": "",
			"sshLogin": ""
		}
	]
}

Here you can store a global array of configurations. Any project can read from this configuration. Use auto-complete and hover suggestions for hints about using the configuration file.

Once the global configuration is saved, environments can be activated by using the Configure Environments button at the bottom. Multiple environments can be selected, allowing for simultaneous interactions with hosts.

Features

The extension is able to communicate with Host via MRPC121 to do the following:

  • Get/Refresh elements and entire tables from Host
  • Send elements and entire tables to Host
  • Test Compile .PROC and .PSL files
  • Compile and Link .PROC and .PSL files
  • Run .PROC and .PSL files

These commands can be executed via the Command Pallette (F1 or Ctrl+Shift+P), icons at the top-right corner of the document, right-clicking the document, or right-clicking the file in the Side Bar Explorer.

Please note that the Host Commands are executed asynchronously, meaning that vscode will not require you to wait to finish one action before you start another. This may have unintended consequences if you do not wait. For example, you must wait for sending to finish before you compile and link.

Basic language features also exist for files written in PSL, data configuration, and table files.

These features include:

  • Syntax coloring
  • Property and Label outline for PSL files (access by Ctrl+Shift+O or with this extension)
  • Auto-complete for Record objects in PSL (activated by the . operator or by Ctrl+Space)
  • Highlighting and Hover information for editing data configuration files

Development

If you would like to join the development of this extension, you will need to install node.js (with NPM) in order to install the dependencies.

Once you clone the project, from the command line in the root of this project, run npm install.

For ideas on features to implement, visit the below link:

https://code.visualstudio.com/docs/extensions/language-support

About

For distributing plugins to the community and foster further developments with the community going forward.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%