Skip to content
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

VS code: automatically watch ghcid.txt #313

Merged
merged 16 commits into from
Apr 12, 2020

Conversation

chrismwendt
Copy link
Contributor

@chrismwendt chrismwendt commented Mar 24, 2020

This restores the ability to get error diagnostics from an existing ghcid process that writes ghcid.txt to any subdirectory in the VS Code workspace.

Here's a screenshot of files from 2 separate Haskell projects, each file's errors are coming from a different ghcid process:

image

I also stripped the line previews and indentation from hovers:

Before

image

After

image

Resolves #239 by restoring watch functionality that was removed in #118 and improving on it a bit.

@chrismwendt
Copy link
Contributor Author

@ndmitchell Does this look good to merge?

Copy link
Owner

@ndmitchell ndmitchell left a comment

Choose a reason for hiding this comment

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

Sorry, been dragged away from open source work with family stuff for a few weeks. Looks awesome. Also looks like you're now the person who knows most about this code, as I barely remember much of it. Want to add your name in as author/maintainer for the package too?

@@ -7,7 +7,7 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "${workspaceRoot}/../../test/foo", "${workspaceRoot}/../../test/foo/Root.hs" ],
Copy link
Owner

Choose a reason for hiding this comment

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

Is this deliberate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the ../../test/foo directory within this repo is very convenient for developing/debugging. I used it all the time when working on this PR. IMO it's a sensible default that can be changed pretty easily.

@chrismwendt
Copy link
Contributor Author

👍 Added myself as an author.

@ndmitchell ndmitchell merged commit 54553c5 into ndmitchell:master Apr 12, 2020
@ndmitchell
Copy link
Owner

Great. Do you have any additional changes incoming, or shall I push this to the extension store? (will probably be in the next 2 days)

@chrismwendt
Copy link
Contributor Author

No additional changes incoming, thanks for merging 🙇‍♂️

@chrismwendt chrismwendt deleted the vscode-auto-watch branch March 6, 2023 13:32
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.

VSCode: Cannot find "Watch Ghcid output" command
2 participants