Skip to content

Commit

Permalink
fix: hide installation prompt in package-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 6, 2021
1 parent 05b7c34 commit 21d1d9b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use babel"

import { CompositeDisposable } from "atom"
import { install as installPackageDependencies } from "atom-package-deps"
import { goToDefinition } from "./goToDefinition"
import { ProviderRegistry } from "atom-ide-base/commons-atom/ProviderRegistry"
import { ClickProvider } from "./clickProvider"
Expand All @@ -10,11 +9,9 @@ const providerRegistry = new ProviderRegistry() // <DefinitionsProvider>
const clickProvider = new ClickProvider({
providerRegistry,
})
let subscriptions
const subscriptions = new CompositeDisposable()

export function activate() {
subscriptions = new CompositeDisposable()

subscriptions.add(
atom.commands.add("atom-workspace", {
"atom-ide-go-to-definition:go-to-definition": () => {
Expand All @@ -23,8 +20,7 @@ export function activate() {
},
})
)

installPackageDependencies("atom-ide-definitions", false)
require("atom-package-deps").install("atom-ide-definitions", true)
}

export function deactivate() {
Expand Down

0 comments on commit 21d1d9b

Please sign in to comment.