Giter Club home page Giter Club logo

stylish-haskell-vscode's People

Contributors

adamse avatar fintara avatar slaks avatar vigoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stylish-haskell-vscode's Issues

Upload the extension to Open VSX

There is Open VSX Registry for VSCode extensions. It's an open-source alternative to the most popular VSCode marketplace. Some Linux distributions (at least Archlinux) package VSCode to use Open VSX registry by default. People using these distributions may have hard time figuring out why the vigoo.stylish-haskell extension can't be found. I think the best solution is to support both registries and upload the extension to Open VSX. Could you please do that?

Provide option to disable defaulting formatting provider

I like having the ability to manually run stylish-haskell from vscode, but it would be nice if I could use the brittany integration from the vscode-hie-server plugin for the default "format document" command. Would it be feasible to add an option to support this scenario?

There was some talk about similar things here: microsoft/vscode#11609

Thanks!

Plugin does not respect project stylish haskell settings

When putting a .stylish-haskell.yaml file at the root of the project, and then using the Run: stylish-haskell command on a file, I get an output that does not use the project wide settings, and differs with manually running stylish-haskell file on the same file.

Changing the setting "Stylish Haskell: Command Line" also seems to have absolutely no effect on the plugin.

Version 0.0.10 is broken

Last night I was using VSCode and the stylish-haskell extension automatically reformatted my code on save.

This morning there was no automatic code formatting on save. After a bit of troubleshooting I figured out how to downgrade VSCode extensions and installed version 0.0.9 of the extension. Automatic reformatting worked again.

I'm using VSCode 1.26.1 (SHA 493869ee8e8a846b0855873886fc79d480d342de). There was no error output in the developer tools javascript console, so I am unsure of how to proceed in debugging.

Output pane steals focus

On syntax error in my code, Output pane arises with Stylish error message. The focus is there, and I have to use mouse to return to editing and fix the error.

I suggest to use Errors pane to show errors from Stylish.

Formatting/saving a file with parse errors opens up Output pane and steals cursor focus

I save pretty frequently and anytime I save a haskell file that has any sort of parse error in it, the style-haskell Output pane (from the bottom) opens itself up and takes away the focus from the main text editor. It says

Language.Haskell.Stylish.Parse.parseModule: could not parse <unknown>: ParseFailed (SrcLoc "<unknown>.hs" 72 1) "Parse error: ;"

and this gets really annoying since it happens on almost every save.

Run from the file's directory

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.