Skip to content

Commit 2e833db

Browse files
committed
Remove hoogle command from vscode extension
The command allows to import an identifier via hoogle. Such a feature should be contributed by HLS, not the vscode-plugin. If searching on hoogle is desired, prefer haskell-spotlight.
1 parent 3cddfa9 commit 2e833db

File tree

4 files changed

+5
-651
lines changed

4 files changed

+5
-651
lines changed

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,7 @@
559559
}
560560
},
561561
"devDependencies": {
562-
"@types/bent": "^7.3.2",
563-
"@types/cheerio": "^0.22.30",
564562
"@types/glob": "^8.1.0",
565-
"@types/js-yaml": "^4.0.5",
566-
"@types/lodash-es": "^4.17.7",
567563
"@types/mocha": "^10.0.1",
568564
"@types/node": "^20.1.0",
569565
"@types/vscode": "^1.79.1",
@@ -578,21 +574,14 @@
578574
"husky": "^8.0.2",
579575
"mocha": "^10.2.0",
580576
"prettier": "^2.8.7",
581-
"pretty-quick": "^3.1.2",
582577
"ts-loader": "^9.4.2",
583578
"typescript": "^5.0.4",
584-
"webpack": "^5.83.1",
585-
"webpack-cli": "^5.1.1"
579+
"webpack": "^5.83.1"
586580
},
587581
"extensionDependencies": [
588582
"justusadam.language-haskell"
589583
],
590584
"dependencies": {
591-
"bent": "^7.3.12",
592-
"cheerio": "^1.0.0-rc.12",
593-
"js-yaml": "^4.1.0",
594-
"lodash-es": "^4.17.21",
595-
"lru-cache": "^7.18.3",
596585
"ts-pattern": "^4.2.2",
597586
"vscode-languageclient": "^7.0.0",
598587
"which": "^3.0.1",

src/commands/importIdentifier.ts

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

src/extension.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
TransportKind,
2121
} from 'vscode-languageclient/node';
2222
import { RestartServerCommandName, StartServerCommandName, StopServerCommandName } from './commands/constants';
23-
import * as ImportIdentifier from './commands/importIdentifier';
2423
import * as DocsBrowser from './docsBrowser';
2524
import { HlsError, MissingToolError, NoMatchingHls } from './errors';
2625
import { findHaskellLanguageServer, IEnvVars } from './hlsBinaries';
@@ -87,8 +86,6 @@ export async function activate(context: ExtensionContext) {
8786

8887
context.subscriptions.push(startCmd);
8988

90-
context.subscriptions.push(ImportIdentifier.registerCommand());
91-
9289
// Set up the documentation browser.
9390
const docsDisposable = DocsBrowser.registerDocsBrowser();
9491
context.subscriptions.push(docsDisposable);

0 commit comments

Comments
 (0)