Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
basarat committed Apr 24, 2015
1 parent 8ca253d commit 06540fa
Show file tree
Hide file tree
Showing 21 changed files with 71,678 additions and 53,123 deletions.
2 changes: 1 addition & 1 deletion dist/main/atom/autoCompleteProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ exports.provider = {
options.editor.replaceSelectedText(null, function () { return "import " + alias + " = require(" + quote + options.suggestion.atomTS_IsImport.relativePath + quote + ");"; });
}
if (options.suggestion.atomTS_IsES6Import) {
var row = (options.editor.getCursorBufferPosition()).row;
var row = options.editor.getCursorBufferPosition().row;
var originalText = options.editor.lineTextForBufferRow(row);
var beforeFrom = originalText.match(/(.*)from/)[1];
var newTextAfterFrom = "from " + quote + options.suggestion.atomTS_IsES6Import.relativePath + quote + ";";
Expand Down
6 changes: 3 additions & 3 deletions dist/main/atom/commands/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function registerCommands() {
});
atom.workspace.addOpener(function (uri, details) {
try {
var protocol = (url.parse(uri)).protocol;
var protocol = url.parse(uri).protocol;
}
catch (error) {
return;
Expand All @@ -276,7 +276,7 @@ function registerCommands() {
});
atom.workspace.addOpener(function (uri, details) {
try {
var protocol = (url.parse(uri)).protocol;
var protocol = url.parse(uri).protocol;
}
catch (error) {
return;
Expand All @@ -300,7 +300,7 @@ function registerCommands() {
});
atom.workspace.addOpener(function (uri, details) {
try {
var protocol = (url.parse(uri)).protocol;
var protocol = url.parse(uri).protocol;
}
catch (error) {
return;
Expand Down
2 changes: 1 addition & 1 deletion dist/main/lang/fixmyts/addClassMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var AddClassMember = (function () {
var relevantError = info.positionErrors.filter(function (x) { return x.code == 2339; })[0];
var identifier = info.positionNode;
var identifierName = identifier.text;
var className = (getIdentifierAndClassNames(relevantError)).className;
var className = getIdentifierAndClassNames(relevantError).className;
var typeString = 'any';
var parentOfParent = identifier.parent.parent;
if (parentOfParent.kind == 169
Expand Down
10 changes: 5 additions & 5 deletions dist/main/lang/projectService.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ exports.getProjectFileDetails = getProjectFileDetails;
function sortNavbarItemsBySpan(items) {
items.sort(function (a, b) { return a.spans[0].start - b.spans[0].start; });
for (var _i = 0; _i < items.length; _i++) {
var item_1 = items[_i];
if (item_1.childItems) {
sortNavbarItemsBySpan(item_1.childItems);
var item = items[_i];
if (item.childItems) {
sortNavbarItemsBySpan(item.childItems);
}
}
}
Expand Down Expand Up @@ -479,14 +479,14 @@ function getNavigateToItems(query) {
var file = _a[_i];
for (var _b = 0, _c = file.getNamedDeclarations(); _b < _c.length; _b++) {
var declaration = _c[_b];
var item_2 = {
var item = {
name: getDeclarationName(declaration),
kind: getNodeKind(declaration),
filePath: file.fileName,
fileName: path.basename(file.fileName),
position: project.languageServiceHost.getPositionFromIndex(file.fileName, declaration.getStart())
};
items.push(item_2);
items.push(item);
}
}
return resolve({ items: items });
Expand Down
2 changes: 1 addition & 1 deletion node_modules/typescript/bin/lib.core.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 20 additions & 13 deletions node_modules/typescript/bin/lib.core.es6.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 06540fa

Please sign in to comment.