Skip to content

Commit 4f9b555

Browse files
committed
forgot build
1 parent 677a1ca commit 4f9b555

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

dist/main/atom/commands/commands.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var atomUtils = require("../atomUtils");
77
var autoCompleteProvider = require("../autoCompleteProvider");
88
var path = require('path');
99
var renameView = require("../views/renameView");
10-
var apd = require('atom-package-dependencies');
1110
var contextView = require("../views/contextView");
1211
var fileSymbolsView = require("../views/fileSymbolsView");
1312
var projectSymbolsView = require("../views/projectSymbolsView");

dist/main/atomts.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ var makeTypeScriptGlobal_1 = require("../typescript/makeTypeScriptGlobal");
33
makeTypeScriptGlobal_1.makeTsGlobal(atomConfig.typescriptServices);
44
var path = require('path');
55
var fs = require('fs');
6-
var apd = require('atom-package-dependencies');
76
var mainPanelView_1 = require("./atom/views/mainPanelView");
87
var autoCompleteProvider = require('./atom/autoCompleteProvider');
98
var tooltipManager = require('./atom/tooltipManager');
@@ -151,29 +150,7 @@ function readyToActivate() {
151150
commands.registerCommands();
152151
}
153152
function activate(state) {
154-
var linter = apd.require('linter');
155-
var acp = apd.require('autocomplete-plus');
156-
if (!linter || !acp) {
157-
var notification = atom.notifications.addInfo('AtomTS: Some dependencies not found. Running "apm install" on these for you. Please wait for a success confirmation!', { dismissable: true });
158-
apd.install(function () {
159-
atom.notifications.addSuccess("AtomTS: Dependencies installed correctly. Enjoy TypeScript \u2665", { dismissable: true });
160-
notification.dismiss();
161-
if (atom.packages.isPackageDisabled('linter'))
162-
atom.packages.enablePackage('linter');
163-
if (atom.packages.isPackageDisabled('autocomplete-plus'))
164-
atom.packages.enablePackage('autocomplete-plus');
165-
if (!apd.require('linter'))
166-
atom.packages.loadPackage('linter');
167-
if (!apd.require('autocomplete-plus'))
168-
atom.packages.loadPackage('autocomplete-plus');
169-
atom.packages.activatePackage('linter')
170-
.then(function () { return atom.packages.activatePackage('autocomplete-plus'); })
171-
.then(function () { return waitForGrammarActivation(); })
172-
.then(function () { return readyToActivate(); });
173-
});
174-
return;
175-
}
176-
waitForGrammarActivation().then(function () { return readyToActivate(); });
153+
require('atom-package-deps').install('atom-typescript').then(waitForGrammarActivation).then(readyToActivate);
177154
}
178155
exports.activate = activate;
179156
function deactivate() {

0 commit comments

Comments
 (0)