The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PLS::Server::Request::Workspace::ExecuteCommand

DESCRIPTION

This is a message from the client to the server requesting that a command be executed.

The commands that are currently implemented are:

perl.sortImports

This sorts the imports of the current Perl file. The sorting follows this order:

use strict and use warnings
use parent and use base
Other pragmas (excluding use constant)
Core and external imports
Internal imports (from the current project)
Constants (use constant)

This command is not perfect and is a work in progress. It does not handle comments or non-contiguous imports well.