vigoo / stylish-haskell-vscode

stylish-haskell support for VS code
14 stars 8 forks source link

Run from the file's directory #6

Closed cblp closed 8 years ago

cblp commented 8 years ago

stylish reads its configuration from the current directory (or higher), so you must run it with proper working directory.

Running from project directory may be right solution if Code were supported multiple project windows. But currently it doesn't, and many people open a projects directory that is higher than any project directory.

So the only solution I see is to run stylish from the file's own directory.

Currently stylish is run from nowhere, so it is unable to use project config. I consider it a bug.

cblp commented 8 years ago

I want to implement this myself. How can I test your package?

vigoo commented 8 years ago

Hi, thanks for the report. Unfortunately there are no ways to automatically test it currently, I just did it manually (running it from vscode, opening a haskell project..).

If you don't want to bother with it I'll probably have time to do it in the next few days.

cblp commented 8 years ago

I just noticed some files in test directory and tried npm test without result.

Ok, thank you.

cblp commented 8 years ago

How can I help?

cblp commented 8 years ago

thanks!

vigoo commented 8 years ago

I'll upload the new version soon

On Tue, Aug 16, 2016, 07:58 Yuriy Syrovetskiy notifications@github.com wrote:

thanks!

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/vigoo/stylish-haskell-vscode/issues/6#issuecomment-240009620, or mute the thread https://github.com/notifications/unsubscribe-auth/ACL7CTaGp0Si7QwgKkQD4A4IEvXI3PAvks5qgVGWgaJpZM4JfIoe .