In preparation for Visual Studio Live Share adding support for "guests" to receive remote language services for Haskell, this PR simply updates the current DocumentSelector to be limited to file and untitled (unsaved) files. This way, when someone has this extension installed, and joins a Live Share session (where files use the vsls: scheme), their language services will be entirely derived from the remote/host side, which provides a more accurate and project-wide experience (guests in Live Share don't have local file access to the project they're collaborating with).
Note: As an example, the TypeScript/JavaScript language services that come in-box with VS Code already have this scheme restriction, and so this PR replicates that behavior.
In preparation for Visual Studio Live Share adding support for "guests" to receive remote language services for Haskell, this PR simply updates the current
DocumentSelector
to be limited tofile
anduntitled
(unsaved) files. This way, when someone has this extension installed, and joins a Live Share session (where files use thevsls:
scheme), their language services will be entirely derived from the remote/host side, which provides a more accurate and project-wide experience (guests in Live Share don't have local file access to the project they're collaborating with).Note: As an example, the TypeScript/JavaScript language services that come in-box with VS Code already have this scheme restriction, and so this PR replicates that behavior.