Skip to content

Commit 35cecd5

Browse files
committed
Delete more things
1 parent f16a8ba commit 35cecd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+74
-2652
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ JavaScript developers can now just open a `.ts` file and start hacking away like
1515
## Reviews
1616
*Featured on the TypeScript home page under tools http://www.typescriptlang.org/* and [demoed by **Anders Hejlsberg**](https://twitter.com/schwarty/status/593858817894404096).
1717

18-
"I was shocked at how good it felt to poke around on the compiler with it." [Jonathan Turner](https://twitter.com/jntrnr)
19-
"And guess what, it worked perfectly. Like everything else! Faster than Visual Studio!" [Daniel Earwicker](http://stackoverflow.com/users/27423/daniel-earwicker)
20-
"It's a thing of beauty - they had me at '*Type information on hover*'. Discovering `tsconfig.json` support as well was just an enormous bonus." [John Reilly](https://twitter.com/johnny_reilly)
18+
"I was shocked at how good it felt to poke around on the compiler with it." [Jonathan Turner](https://twitter.com/jntrnr)
19+
"And guess what, it worked perfectly. Like everything else! Faster than Visual Studio!" [Daniel Earwicker](http://stackoverflow.com/users/27423/daniel-earwicker)
20+
"It's a thing of beauty - they had me at '*Type information on hover*'. Discovering `tsconfig.json` support as well was just an enormous bonus." [John Reilly](https://twitter.com/johnny_reilly)
2121
"This may be your best option for editing TypeScript at the moment - very nice!" [Rasmus Schultz](https://twitter.com/mindplaydk)
2222

2323
[*Add yours!*](https://github.com/TypeStrong/atom-typescript/issues/66)
@@ -30,7 +30,6 @@ JavaScript developers can now just open a `.ts` file and start hacking away like
3030
* Project Context Support (`tsconfig.json`)
3131
* Project Build Support
3232
* `package.json` Support
33-
* React Support
3433
* Format code (configurable to be on save)
3534
* Goto Declaration
3635
* Find References
@@ -94,8 +93,6 @@ Shortcut: `F6`. If there are any errors they are shown as well.
9493
## NPM Module Support
9594
We have a sample NPM module : https://github.com/basarat/ts-npm-module (trick : in tsconfig have `"declaration" : true` an in package.json have a `typings` field pointing to the `main` file) and its usage is demoed in https://github.com/basarat/ts-npm-module-consume.
9695

97-
## React Support
98-
9996
### Configuration tips
10097

10198
Covered here : http://basarat.gitbooks.io/typescript/content/docs/jsx/tsx.html

dist/client/clientMap.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/client/findTSServer.js

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

dist/linter.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
11
"use strict";
2-
var fs = require("fs");
3-
exports.provider = {
4-
name: 'TS',
5-
grammarScopes: ['source.ts', 'source.tsx'],
6-
scope: 'file',
7-
lintOnFly: true,
8-
lint: function (textEditor) {
9-
if (!textEditor.buffer.file
10-
|| !textEditor.buffer.file.path
11-
|| !fs.existsSync(textEditor.buffer.file.path))
12-
return Promise.resolve([]);
13-
var filePath = textEditor.buffer.file.path;
14-
return Promise.resolve([]);
15-
}
16-
};

dist/main/atom/autoCompleteProvider.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
"use strict";
22
var tslib_1 = require("tslib");
3-
var parent = require("../../worker/parent");
4-
var fs = require("fs");
53
var atomUtils = require("./atomUtils");
6-
var fuzzaldrin = require('fuzzaldrin');
7-
var CSON = require("season");
4+
var fs = require("fs");
5+
var parent = require("../../worker/parent");
86
var explicitlyTriggered = false;
97
function triggerAutocompletePlus() {
108
atom.commands.dispatch(atom.views.getView(atom.workspace.getActiveTextEditor()), 'autocomplete-plus:activate');

dist/main/atom/commands/commands.js

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function __export(m) {
33
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
44
}
55
var parent = require("../../../worker/parent");
6-
var buildView = require("../buildView");
76
var atomUtils = require("../atomUtils");
87
var autoCompleteProvider = require("../autoCompleteProvider");
98
var path = require("path");
@@ -18,19 +17,10 @@ var mainPanelView_1 = require("../views/mainPanelView");
1817
var astView_1 = require("../views/astView");
1918
var dependencyView_1 = require("../views/dependencyView");
2019
var simpleSelectionView_1 = require("../views/simpleSelectionView");
21-
var outputFileCommands = require("./outputFileCommands");
22-
var moveFilesHandling_1 = require("./moveFilesHandling");
2320
var escapeHtml = require("escape-html");
24-
var rView = require("../views/rView");
25-
var reactCommands_1 = require("./reactCommands");
26-
var fileStatusCache_1 = require("../fileStatusCache");
2721
var json2dtsCommands_1 = require("./json2dtsCommands");
28-
var semanticView = require("../views/semanticView");
2922
__export(require("../components/componentRegistry"));
3023
function registerCommands() {
31-
outputFileCommands.register();
32-
moveFilesHandling_1.registerRenameHandling();
33-
reactCommands_1.registerReactCommands();
3424
json2dtsCommands_1.registerJson2dtsCommands();
3525
atom.commands.add('atom-text-editor', 'typescript:format-code', function (e) {
3626
if (!atomUtils.commandForTypeScript(e))
@@ -57,25 +47,6 @@ function registerCommands() {
5747
});
5848
}
5949
});
60-
atom.commands.add('atom-workspace', 'typescript:build', function (e) {
61-
if (!atomUtils.commandForTypeScript(e))
62-
return;
63-
var editor = atom.workspace.getActiveTextEditor();
64-
var filePath = editor.getPath();
65-
atom.notifications.addInfo('Building');
66-
parent.build({ filePath: filePath }).then(function (resp) {
67-
buildView.setBuildOutput(resp.buildOutput);
68-
resp.tsFilesWithValidEmit.forEach(function (tsFile) {
69-
var status = fileStatusCache_1.getFileStatus(tsFile);
70-
status.emitDiffers = false;
71-
});
72-
resp.tsFilesWithInvalidEmit.forEach(function (tsFile) {
73-
var status = fileStatusCache_1.getFileStatus(tsFile);
74-
status.emitDiffers = true;
75-
});
76-
mainPanelView_1.panelView.updateFileStatus(filePath);
77-
});
78-
});
7950
var handleGoToDeclaration = function (e) {
8051
if (!atomUtils.commandForTypeScript(e))
8152
return;
@@ -131,11 +102,6 @@ function registerCommands() {
131102
atom.commands.add('atom-text-editor', 'typescript:autocomplete', function (e) {
132103
autoCompleteProvider.triggerAutocompletePlus();
133104
});
134-
atom.commands.add('atom-workspace', 'typescript:toggle-semantic-view', function (e) {
135-
if (!atomUtils.commandForTypeScript(e))
136-
return;
137-
semanticView.toggle();
138-
});
139105
atom.commands.add('atom-text-editor', 'typescript:rename-refactor', function (e) {
140106
var editor = atom.workspace.getActiveTextEditor();
141107
if (true) {
@@ -323,17 +289,6 @@ function registerCommands() {
323289
return new dependencyView_1.DependencyView(data.filePath);
324290
}
325291
});
326-
atomUtils.registerOpener({
327-
commandSelector: 'atom-workspace',
328-
commandName: 'typescript:testing-r-view',
329-
uriProtocol: rView.RView.protocol,
330-
getData: function () { return atomUtils.getFilePath(); },
331-
onOpen: function (data) { return new rView.RView({
332-
icon: 'repo-forked',
333-
title: 'React View',
334-
filePath: data.filePath,
335-
}); },
336-
});
337292
atom.commands.add('atom-workspace', 'typescript:sync', function (e) {
338293
if (!atomUtils.commandForTypeScript(e))
339294
return;

dist/main/atom/commands/moveFilesHandling.js

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

dist/main/atom/commands/outputFileCommands.js

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

dist/main/atom/commands/reactCommand.js

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

dist/main/atom/commands/reactCommands.js

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

dist/main/atom/views/contextView.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
var tslib_1 = require("tslib");
33
var sp = require("atom-space-pen-views");
44
var mainPanelView = require("./mainPanelView");
5-
var semanticView = require("./semanticView");
65
var titles = {
76
togglePanel: 'Toggle TypeScript Panel',
87
tabErrors: 'Tab: Errors in Open Files',
98
tabLastBuild: 'Tab: Last Build Output',
109
tabReferences: 'Tab: Find References',
11-
fileSemantics: 'Toggle: File Semantics',
1210
};
1311
var items = Object.keys(titles).map(function (item) { return { title: titles[item] }; });
1412
var ContextView = (function (_super) {
@@ -42,9 +40,6 @@ var ContextView = (function (_super) {
4240
if (item.title == titles.tabReferences) {
4341
mainPanelView.panelView.referencesPanelSelected();
4442
}
45-
if (item.title == titles.fileSemantics) {
46-
semanticView.toggle();
47-
}
4843
this.hide();
4944
};
5045
ContextView.prototype.getFilterKey = function () { return 'title'; };

dist/main/atom/views/fileSemanticView.js

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

0 commit comments

Comments
 (0)