Skip to content

Commit b5df91f

Browse files
committed
coc.nvim second attempt
1 parent 6b58a5c commit b5df91f

File tree

9 files changed

+428
-665
lines changed

9 files changed

+428
-665
lines changed

package-lock.json

Lines changed: 393 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"onLanguage:haskell",
4040
"onLanguage:literate haskell"
4141
],
42-
"main": "./dist/extension",
42+
"main": "./dist/extension.js",
4343
"contributes": {
4444
"languages": [
4545
{
@@ -155,15 +155,20 @@
155155
}
156156
},
157157
"commands": [
158-
{
159-
"command": "haskell.commands.importIdentifier",
160-
"title": "Haskell: Import identifier",
161-
"description": "Imports a function or type based on a Hoogle search"
162-
},
163158
{
164159
"command": "haskell.commands.restartServer",
165160
"title": "Haskell: Restart Haskell LSP server",
166161
"description": "Restart the Haskell LSP server"
162+
},
163+
{
164+
"command": "haskell.commands.applyOne",
165+
"title": "Haskell: Apply one HLint suggestion",
166+
"description": "Apply one HLint suggestion"
167+
},
168+
{
169+
"command": "haskell.commands.applyAll",
170+
"title": "Haskell: Apply all HLint suggestions",
171+
"description": "Apply all HLint suggestions"
167172
}
168173
]
169174
},
@@ -190,6 +195,7 @@
190195
"@types/request-promise-native": "^1.0.17",
191196
"@types/vscode": "^1.48.0",
192197
"@types/yauzl": "^2.9.1",
198+
"coc.nvim": "^0.0.77",
193199
"husky": "^4.2.5",
194200
"prettier": "^2.0.5",
195201
"pretty-quick": "^2.0.1",
@@ -212,6 +218,7 @@
212218
"request": "^2.88.2",
213219
"request-promise-native": "^1.0.8",
214220
"vscode-languageclient": "6.1.3",
221+
"vscode-languageserver-textdocument": "^1.0.1",
215222
"yauzl": "^2.10.0"
216223
}
217224
}

src/commands/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export namespace CommandNames {
22
export const ImportIdentifierCommandName = 'haskell.commands.importIdentifier';
33
export const RestartServerCommandName = 'haskell.commands.restartServer';
4+
export const HlintApplyOneCommandName = 'haskell.commands.applyOne';
5+
export const HlintApplyAllCommandName = 'haskell.commands.applyAll';
46
}

src/commands/importIdentifier.ts

Lines changed: 0 additions & 116 deletions
This file was deleted.

src/docsBrowser.ts

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)