Skip to content

Commit

Permalink
Remove hoogle command from vscode extension (#896)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fendor authored Jul 1, 2023
1 parent 3cddfa9 commit de547b3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 471 deletions.
10 changes: 0 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,7 @@
}
},
"devDependencies": {
"@types/bent": "^7.3.2",
"@types/cheerio": "^0.22.30",
"@types/glob": "^8.1.0",
"@types/js-yaml": "^4.0.5",
"@types/lodash-es": "^4.17.7",
"@types/mocha": "^10.0.1",
"@types/node": "^20.1.0",
"@types/vscode": "^1.79.1",
Expand All @@ -578,7 +574,6 @@
"husky": "^8.0.2",
"mocha": "^10.2.0",
"prettier": "^2.8.7",
"pretty-quick": "^3.1.2",
"ts-loader": "^9.4.2",
"typescript": "^5.0.4",
"webpack": "^5.83.1",
Expand All @@ -588,11 +583,6 @@
"justusadam.language-haskell"
],
"dependencies": {
"bent": "^7.3.12",
"cheerio": "^1.0.0-rc.12",
"js-yaml": "^4.1.0",
"lodash-es": "^4.17.21",
"lru-cache": "^7.18.3",
"ts-pattern": "^4.2.2",
"vscode-languageclient": "^7.0.0",
"which": "^3.0.1",
Expand Down
116 changes: 0 additions & 116 deletions src/commands/importIdentifier.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
TransportKind,
} from 'vscode-languageclient/node';
import { RestartServerCommandName, StartServerCommandName, StopServerCommandName } from './commands/constants';
import * as ImportIdentifier from './commands/importIdentifier';
import * as DocsBrowser from './docsBrowser';
import { HlsError, MissingToolError, NoMatchingHls } from './errors';
import { findHaskellLanguageServer, IEnvVars } from './hlsBinaries';
Expand Down Expand Up @@ -87,8 +86,6 @@ export async function activate(context: ExtensionContext) {

context.subscriptions.push(startCmd);

context.subscriptions.push(ImportIdentifier.registerCommand());

// Set up the documentation browser.
const docsDisposable = DocsBrowser.registerDocsBrowser();
context.subscriptions.push(docsDisposable);
Expand Down
Loading

0 comments on commit de547b3

Please sign in to comment.