Skip to content

Request referenced files from the client instead of attempting to load from the language service #187

Open
@daviwil

Description

@daviwil

Currently any files that are referenced from an edited script (i.e. dot-source references) are being resolved and loaded by the language service. Since we want to target remote editing scenarios (language service running in a web service), we need to shift the file resolution responsibility to the client so that it can resolve files with respect to its own workspace.

This will require the introduction of new protocol request/response types which allow the server to request files from the client. The core PSES API will handle this behavior through an interface so that file resolver implementations can be chosen at runtime.

This bug in vscode-powershell should benefit from the improvement: PowerShell/vscode-powershell#31

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions