Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Workspace roots and getFileExists#412

Merged
cocreature merged 5 commits intohaskell:masterfrom
pepeiborra:workspace-roots
Feb 13, 2020
Merged

Workspace roots and getFileExists#412
cocreature merged 5 commits intohaskell:masterfrom
pepeiborra:workspace-roots

Conversation

@pepeiborra
Copy link
Collaborator

@pepeiborra pepeiborra commented Feb 8, 2020

This is a correctness fix for getFileExists when targetting files out of the workspace - they cannot be watched by the client so we need to fall back to the slow path.

This is a spinout from the effort to switch to interface files (#355).

Copy link
Collaborator

@cocreature cocreature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you! A couple of minor style comments and it would be great to have a test for this.

@pepeiborra
Copy link
Collaborator Author

I'll look at adding some tests tomorrow

@pepeiborra
Copy link
Collaborator Author

I'll look at adding some tests tomorrow

Tests added!

pepeiborra and others added 2 commits February 12, 2020 17:39
Left as future work: adding tests for workspace folder notifications
alanz added a commit to alanz/haskell-language-server that referenced this pull request Feb 12, 2020
Needs haskell/ghcide#412 to land first, as a basis
for the needed changes
@alanz
Copy link
Collaborator

alanz commented Feb 13, 2020

What is holding this up? I have a PR (#416) that needs to be updated once this lands, so we can select formatters in hls.

Copy link
Collaborator

@cocreature cocreature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cocreature cocreature merged commit ffb0563 into haskell:master Feb 13, 2020
@cocreature
Copy link
Collaborator

@alanz there were changes less than a day ago give us some time please 🙂 Merged now.

@alanz
Copy link
Collaborator

alanz commented Feb 13, 2020

@cocreature Thanks. I saw it got updated yesterday, but figured I would give it a kick for time zone differences, so if it was easy to merge it would be done for me to work on it tonight.

I was not intending to harras anyone.

pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* Add buildifier targets.

The tool allows to check and format BUILD files in the repo.

To check if files are well formatted, run:

    bazel run //:buildifier

To fix badly-formatted files run:

    bazel run //:buildifier-fix

* Cleanup dade-copyright-headers formatting.

* Fix dade-copyright-headers on files with just the copyright.

* Run buildifier automatically on CI via 'fmt.sh'.

* Reformat all BUILD files with buildifier.

Excludes autogenerated Bazel files.
pepeiborra added a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* parse lsp client configuration to track workspace roots

* Only use Watched files on workspace files

* Apply suggestions from code review

Co-Authored-By: Moritz Kiefer <[email protected]>

* Add tests for watched files

Left as future work: adding tests for workspace folder notifications

* Add a test for file creation outside workspace

Co-authored-by: Moritz Kiefer <[email protected]>
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* Add buildifier targets.

The tool allows to check and format BUILD files in the repo.

To check if files are well formatted, run:

    bazel run //:buildifier

To fix badly-formatted files run:

    bazel run //:buildifier-fix

* Cleanup dade-copyright-headers formatting.

* Fix dade-copyright-headers on files with just the copyright.

* Run buildifier automatically on CI via 'fmt.sh'.

* Reformat all BUILD files with buildifier.

Excludes autogenerated Bazel files.
pepeiborra added a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* parse lsp client configuration to track workspace roots

* Only use Watched files on workspace files

* Apply suggestions from code review

Co-Authored-By: Moritz Kiefer <[email protected]>

* Add tests for watched files

Left as future work: adding tests for workspace folder notifications

* Add a test for file creation outside workspace

Co-authored-by: Moritz Kiefer <[email protected]>
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* Add buildifier targets.

The tool allows to check and format BUILD files in the repo.

To check if files are well formatted, run:

    bazel run //:buildifier

To fix badly-formatted files run:

    bazel run //:buildifier-fix

* Cleanup dade-copyright-headers formatting.

* Fix dade-copyright-headers on files with just the copyright.

* Run buildifier automatically on CI via 'fmt.sh'.

* Reformat all BUILD files with buildifier.

Excludes autogenerated Bazel files.
pepeiborra added a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* parse lsp client configuration to track workspace roots

* Only use Watched files on workspace files

* Apply suggestions from code review

Co-Authored-By: Moritz Kiefer <[email protected]>

* Add tests for watched files

Left as future work: adding tests for workspace folder notifications

* Add a test for file creation outside workspace

Co-authored-by: Moritz Kiefer <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants