Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 09:57
    arcanis opened #1511
  • Sep 20 16:18
    reduxdj edited #1510
  • Sep 20 16:18
    reduxdj opened #1510
  • Sep 20 08:28
    mininek opened #1509
  • Aug 15 17:06
    chaffeqa opened #1508
  • Aug 08 16:07
    lierdakil closed #1507
  • Aug 08 16:07
    lierdakil labeled #1507
  • Aug 08 11:43
    rahamin1 opened #1507
  • Aug 07 12:07
    lierdakil labeled #1505
  • Aug 07 12:07
    lierdakil closed #1505
  • Aug 06 21:51
    TheEmrio closed #1506
  • Aug 05 14:22
    TheEmrio opened #1506
  • Jul 15 15:40
    Xapphire13 closed #1496
  • Jul 10 13:23
    akonwi opened #1505
  • Jul 10 04:44
    nelson6e65 edited #1504
  • Jul 10 04:40
    nelson6e65 opened #1504
  • Jul 08 06:40
    sshquack closed #846
  • Jun 17 16:02
    akonwi opened #1503
  • Jun 02 18:18
    tanfonto opened #1502
  • May 28 17:11
    jazzdragon opened #1501
Robert Knight
@robertknight
@basarat - Thanks for atom-typescript :) Is there a way to turn off emit-on-save?
Basarat Ali Syed
@basarat
@robertknight no. But valid suggestion to have atom-typescript config. Please open an issue : https://github.com/TypeStrong/atom-typescript/issues and this will be the first config option we add :+1:
Robert Knight
@robertknight
@basarat - I've opened TypeStrong/atom-typescript#67 . There are several possible ways to solve the particular use case I have and I'm not sure which is best - atom-typescript specific config? tsconfig.json? Something else?
Basarat Ali Syed
@basarat
room note: discussion moved to issue : #67
Basarat Ali Syed
@basarat
@park9140 lets resume discussion here :)
yeah. I don't find a good place to query the dom either :)
that is don't find a good place to query from linter callback
will do it from autocomplete callback
Jonathan Park
@park9140
We should fix it in autocomplete-plus temporarily.
Basarat Ali Syed
@basarat
cool. So back to other room :smile: ?
nevermind my humor ^
nhrones
@nhrones
Is node required to run Atom? (can it be installed on Chromebook?)
Basarat Ali Syed
@basarat
No node is not required. However atom cannot be installed on chrome book.
Ronn
@ronnross
Hi brand new to TS and currently using atom-typescript to help learn.
I have a simple node project that includes a few .ts files and underscore.
I have a file where I'm trying to include underscore that I got from npm and it looks like so

/// <reference path="typings/node.d.ts" />
/// <reference path="typings/underscore.d.ts" />

import _ = require('underscore');
I have the correct .d.ts files for the libs I want, but I'm getting an error for example node.d.ts not found
Should I just be using the commonjs pattern instead of TS imports?
Basarat Ali Syed
@basarat
Ts imports is commonjs (our default). Is that a runtime error? Or a compile time error?
Ronn
@ronnross
Compile time. Even if I put the d.ts files in the same directory and using a path like I would with commonjs /// <reference path="./node.d.ts" /> I still get the same error, when I try to build.
Basarat Ali Syed
@basarat
@ronnross Can you share a repo?
Basarat Ali Syed
@basarat
working on TypeStrong/atom-typescript#163
Basarat Ali Syed
@basarat
working on snippets TypeStrong/atom-typescript#155
Vaughn Royko
@vaughnroyko
TypeScript grammar/syntax highlighting doesn't appear to be working for me, is this actually implemented or not? I can't really find anything about it.
Basarat Ali Syed
@basarat
Should work. Is implemented. All the screenshots you see are with this package alone. Did you get the installed successful message?
Vaughn Royko
@vaughnroyko
Yep, everything is working great. Here's what I am seeing: http://screencast.com/t/Qo4qjIgSjO
Basarat Ali Syed
@basarat
@vaughnroyko cool. Have fun :heartbeat:
Vaughn Royko
@vaughnroyko
By working great, I meant everything but the grammar/syntax, hah. Was hoping to illustrate that in the screenshot.
Basarat Ali Syed
@basarat
The screenshot shows grammar tokenization working correctly. I can keywords, identifiers etc.
Vaughn Royko
@vaughnroyko
I don't get it. Identifier is just a generic class is it not? Compare this to JS: http://screencast.com/t/jUWbwXfFX - missing things like parameter, variable, definition, entity, class, method, boolean, etc.
Basarat Ali Syed
@basarat
@vaughnroyko yes. It is not as powerful as the JS one.
this does mean that we are super fast Try opening lib.d.ts to see what I mean
Try opening a js file of similar size and you will see a noticeable difference (due to lots of regex processing).
@vaughnroyko we do plan to add a semantic classifier as well at some point : TypeStrong/atom-typescript#71 which will give all the things you need e.g. parameter etc.
It might just turn out to be feasible to do a syntactic classification in the UI thread (I haven't tested) : https://github.com/TypeStrong/atom-typescript/blob/master/lib/main/atom/typescriptGrammar.ts#L85 you are welcome to experiment :heart: . Figuring out a way to do code based grammars was not trivial, so we doc'ed it : https://github.com/TypeStrong/atom-typescript/blob/master/CONTRIBUTING.md#dynamic-grammar
Vaughn Royko
@vaughnroyko
Awesome! Thanks for the help @basarat - I'll do some experimenting, and ya, I know of how much it can bog down the speed, but I love me some colors, haha!
Basarat Ali Syed
@basarat
Thing is the way tokenization works in Atom you only have a current line to deal with. This makes some things simple, others very difficult without extending the ruleSet (we only store the finalLexState of the tsClassifier for now). Best of luck! and thanks :heart:
Vaughn Royko
@vaughnroyko
Hey there @basarat - Thanks for looking into that large file bug! I noticed the issue was closed, but I was confused by your comments. Did you find a fix, or was that for another issue? I grabbed the latest typescript 1.5 commit and still had the issue present on my end, so I assume it was something different, haha.
Basarat Ali Syed
@basarat
The head matches the head of the 1.5 branch? It should be fixed.
Basarat Ali Syed
@basarat
Lars Klein
@lhk
Just wanted to say thank you. This plugin is fantastic
Basarat Ali Syed
@basarat
🌹
mintwurm
@mintwurm
Does this plugin look into the .d.ts files for autocompletion ? I just installed it and tried to create something with three.js but the autocompletion only suggests words from the current open file. If I type THREE. nothing happens. The definitions are referenced, the rest works just fine. The project builds, the generated javascript works. Even type information on hover is correct. But autocomplete is only the functionality you get in any text editor.
Basarat Ali Syed
@basarat
blob
@mintwurm just pushed this demo : TypeStrong/atom-typescript-examples@96da88d with THREE js working as shown. Let me know if you still have issues :rose: