haskell/haskell-ide-engine

More documentation for Sublime

Open

#870 opened on 2018年10月11日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Haskell (2,358 stars) (205 forks)batch import
component: documentationeditor: sublimegardening 🌱good first issuehelp wanted

説明

Some issues I encountered:

Where settings have to go

Answer: Into the Sublime LSP settings, like this:

// Settings in here override those in "LSP/LSP.sublime-settings",

{
  "clients": {
    "haskell-ide-engine": {
      "command": ["hie"],
      "scopes": ["source.haskell"],
      "syntaxes": ["Packages/Haskell/Haskell.sublime-syntax"],
      "languageId": "haskell",
      "settings": {
        "languageServerHaskell": {
            "hlintOn": false,
            // "maxNumberOfProblems": Number
        },
      },
    },
  },
  // "log_debug": true,
}

When settings seem to have no effect

Apparently currently you have to fully restart Sublime for Sublime's LSP plugin to notice changes in configuration; using the command to restart the LSP server isn't enough.

(It is worth saying that in the docs because most other Sublime settings apply immediately without need for a restart.)

コントリビューターガイド