haskell/haskell-ide-engine

More documentation for Sublime

Open

#870 建立於 2018年10月11日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Haskell (2,358 star) (205 fork)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.)

貢獻者指南