You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Run elm-format from project directory for Elm version auto-detection.
* Specify elm-format command-line options with `elm_format_options` setting.
* Override all settings in project settings file.
Fixes#53
- Four standard build commands (<kbd>Super+[Shift]+B</kbd> or <kbd>Super+[Shift]+F7</kbd>)
51
-
1.`Build` just checks errors. Kudos to this [tweet][]!
52
-
2.`Run` additionally outputs your compiled program to an inferred path.
53
-
3. The same as the above two, but ignoring warnings
54
-
4. Output path is configurable in `elm-package.json` or `Elm Build System: …` in the Command Palette. Elm build system only requires a valid config in any ancestor directory of the active file. 
51
+
1.`Build` just checks errors. Kudos to this [tweet][]!
52
+
2.`Run` additionally outputs your compiled program to an inferred path.
53
+
3. The same as the above two, but ignoring warnings
54
+
4. Output path is configurable in `elm-package.json` or `Elm Build System: …` in the Command Palette. Elm build system only requires a valid config in any ancestor directory of the active file. 
55
55
- Compile messages
56
-
1. Navigate errors and warnings (<kbd>Super+[Shift]+F4</kbd>).
57
-
2. Formatted for build output panel.
58
-
3. Compile message highlighting, embedded code highlighting, and color scheme for output panel. 
56
+
1. Navigate errors and warnings (<kbd>Super+[Shift]+F4</kbd>).
57
+
2. Formatted for build output panel.
58
+
3. Compile message highlighting, embedded code highlighting, and color scheme for output panel. 
59
59
- Integration with popular plugins (installed separately)
60
-
1.[SublimeREPL][] — Run `elm-repl` in an editor tab with syntax highlighting. 
60
+
1.[SublimeREPL][] — Run `elm-repl` in an editor tab with syntax highlighting. 
61
61
- Integration with [elm format](https://github.com/avh4/elm-format)
62
-
1. Make sure `elm-format` is in your PATH
63
-
2. Run the "Elm Language Support: Run elm-format" command from the Command Palette to run elm-format on the current file
64
-
3. To enable automatic formatting on every save, Go to Preferences -> Package Settings -> Elm Language Support -> Settings and add this setting:
65
-
`"elm_format_on_save": true`
66
-
4. If there are certain Elm source files you don't want to automatically run `elm-format` on, for example elm-css based files, you can set a regex filter which will search the full filename (including the path to the file). If the regex matches, then it will not automatically run `elm-format` on the file when you save. For example, the following filter would prevent automatic `elm-format` on a file named `elm-css/src/Css/TopBar.elm`:
2. Run the "Elm Language Support: Run elm-format" command from the Command Palette to run elm-format on the current file
64
+
3. To enable automatic formatting on every save, Go to Preferences -> Package Settings -> Elm Language Support -> Settings and add this setting:
65
+
`"elm_format_on_save": true`
66
+
4. If there are certain Elm source files you don't want to automatically run `elm-format` on, for example elm-css based files, you can set a regex filter which will search the full filename (including the path to the file). If the regex matches, then it will not automatically run `elm-format` on the file when you save. For example, the following filter would prevent automatic `elm-format` on a file named `elm-css/src/Css/TopBar.elm`:
Need to configure a setting (such as `elm_format_binary`) per-project? Prefix the name of the setting with `elm_language_support_` and add it to your project settings file.
- I have `elm-oracle` installed, but completions, type signature display, and the type panel don't work
72
-
1. Make sure `elm-oracle` is on your PATH, or
73
-
2. Add the absolute path of the directory containing `elm-oracle` to the `elm_paths` setting in your Elm Language Support User settings
90
+
1. Make sure `elm-oracle` is on your PATH, or
91
+
2. Add the absolute path of the directory containing `elm-oracle` to the `elm_paths` setting in your Elm Language Support User settings
74
92
- I have `elm-format` installed, but it's not working
75
-
1. Make sure `elm-format` is on your PATH, or
76
-
2.If using an alternate name for the binary (`elm-format-0.17` or `elm-format-0.18`) add it to the `elm_format_binary` setting in your Elm Language Support User settings; an example might be `"elm_format_binary": "elm-format-0.18",`, or
77
-
3.Add the absolute path of the directory containing `elm-format` to the `elm_paths` setting in your Elm Language Support User settings. Note that you can combine paths with the above, so an example might be `"elm_paths": "/users/alex/elm-format:/users/alex/elm-oracle"`
93
+
1. Make sure `elm-format` is on your PATH, or
94
+
2.Add the absolute path of the directory containing `elm-format`to the `elm_paths` setting in your Elm Language Support User settings. Note that you can combine paths with `:`, for example `"elm_paths": "/users/alex/elm-format/bin:/users/alex/elm-oracle/bin"`.
95
+
3.If using an alternate name for the binary (`elm-format-0.19`), adjust the `elm_format_binary` setting in your Elm Language Support User settings. This can be relative to your project directory. For example, if you want to use the NPM package version of `elm-format` installed locally in your project, use `"elm_format_binary": "node_modules/elm-format/unpacked_bin/elm-format"`.
78
96
- Elm format automatically runs every time I save a file, but there are some files I don't want it to run on
79
-
1. If there are certain Elm source files you don't want to automatically run `elm-format` on, for example elm-css based files, you can set a regex filter which will search the full filename (including the path to the file). If the regex matches, then it will not automatically run `elm-format` on the file when you save. For example, the following filter would prevent automatic `elm-format` on a file named `elm-css/src/Css/TopBar.elm`:
1. If there are certain Elm source files you don't want to automatically run `elm-format` on, for example elm-css based files, you can set a regex filter which will search the full filename (including the path to the file). If the regex matches, then it will not automatically run `elm-format` on the file when you save. For example, the following filter would prevent automatic `elm-format` on a file named `elm-css/src/Css/TopBar.elm`:
0 commit comments