Skip to content

[Discussion] [Live Share] Restricting language services to local files #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2018
Merged

[Discussion] [Live Share] Restricting language services to local files #49

merged 1 commit into from
Apr 17, 2018

Conversation

lostintangent
Copy link
Contributor

@lostintangent lostintangent commented Apr 16, 2018

In preparation for Visual Studio Live Share adding support for "guests" to receive remote language services for Fortran, this PR simply updates the current DocumentSelector to be limited to local files. This way, when someone has the Fortran 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).

If someone joins a Fortran project using Live Share, and doesn't have the Fortran extension installed, then they will automatically receive language services from the host (which is awesome! 🎉), so this PR is simply an optimization for the case where collaborating developers both have the Fortran extension installed. Additionally, this wouldn't impact the "local" Fortran development experience.

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.

@codecov
Copy link

codecov bot commented Apr 16, 2018

Codecov Report

Merging #49 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #49   +/-   ##
=======================================
  Coverage   13.21%   13.21%           
=======================================
  Files           9        9           
  Lines         348      348           
  Branches       49       49           
=======================================
  Hits           46       46           
  Misses        302      302
Impacted Files Coverage Δ
src/extension.ts 0% <0%> (ø) ⬆️
src/features/linter-provider.ts 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9af5983...b69b833. Read the comment docs.

@krvajal krvajal merged commit d0f2b04 into fortran-lang:master Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants