These are chat archives for TypeStrong/atom-typescript

29th
Apr 2015
Vaughn Royko
@vaughnroyko
Apr 29 2015 05:13 UTC
@basarat Reverting that URL didn't seem to effect the compile errors. I can confirm that 4.0.4 is the update that broke it for me though. I can provide a example/sample later, but simply just trying to use either DataView/texImage2D at all will trigger the issues. I'll stay at 4.0.3 for now.
Basarat Ali Syed
@basarat
Apr 29 2015 05:17 UTC

@vaughnroyko I can reproduce (sample from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)

var littleEndian = (function() {
  var buffer = new ArrayBuffer(2);
  new DataView(buffer).setInt16(0, 256, true);
  return new Int16Array(buffer)[0] === 256;
})();
console.log(littleEndian); // true or false

Will ping you once I have a fix :rose:

Basarat Ali Syed
@basarat
Apr 29 2015 05:23 UTC
@vaughnroyko It is an issue in lib.d.ts. Reported to the TypeScript team : Microsoft/TypeScript#2953
Vaughn Royko
@vaughnroyko
Apr 29 2015 05:26 UTC
@basarat Much appreciated as always!
Basarat Ali Syed
@basarat
Apr 29 2015 05:28 UTC
:rose: thanks for your continuous usage :)
Nelo Mitranim
@Mitranim
Apr 29 2015 05:40 UTC
Have been using side by side with the official Microsoft Typescript plugin for Sublime, atom-typescript is so much more powerful and reliable, it's not even funny
I hope they catch up as Sublime is generally faster, but for now, it can't really compete
so great work there :D
Basarat Ali Syed
@basarat
Apr 29 2015 05:43 UTC
@Mitranim Its an uneven playing field. They are very limited by their use of TSServer. We on the other hand have the advantage of JS (TS) everywhere and therefore can do fancy stuff like quickfix refactorings (as we have the complete AST). Also the atom UI is very open for extension. Thanks for the kind words though :rose:
Nelo Mitranim
@Mitranim
Apr 29 2015 05:45 UTC
Huh good to know :D
Nelo Mitranim
@Mitranim
Apr 29 2015 06:21 UTC
Question. Can you alias a module in your .d.ts?
Basarat Ali Syed
@basarat
Apr 29 2015 06:21 UTC
yes e.g. we have import ng = angular in angular.d.ts
Note there are limitations here
Nelo Mitranim
@Mitranim
Apr 29 2015 06:22 UTC
Seems to be working, perfect
althought atom-typescript gives me an error
Complains about duplicate identifier ng, hmm
What kinds of limitations?
Nelo Mitranim
@Mitranim
Apr 29 2015 06:34 UTC
Oh gosh, the downloaded definition file has ng = angular itself, how didn't I notice
Basarat Ali Syed
@basarat
Apr 29 2015 06:40 UTC

What kinds of limitations?

If you do import foo = bar then you can't do declare module foo otherwise you get duplicate identifier :)

I see you've already hit that "limitation" :D
Nelo Mitranim
@Mitranim
Apr 29 2015 06:41 UTC
:D
Florian Verdonck
@nojaf
Apr 29 2015 08:14 UTC
Quick question: is this package using the latest version of TS (alpha 1.5)?
Mike Graham
@cmichaelgraham
Apr 29 2015 08:44 UTC
@nojaf i believe atom-typescript is using (imbeds) a much more current build than the typescript alpha.
Florian Verdonck
@nojaf
Apr 29 2015 08:49 UTC
I see
blob
Is there a way to reduce this?
Mike Graham
@cmichaelgraham
Apr 29 2015 08:52 UTC
i don't know. i'm just a user ;)
Florian Verdonck
@nojaf
Apr 29 2015 08:54 UTC
Is it also so high on your end?
Mike Graham
@cmichaelgraham
Apr 29 2015 08:55 UTC
checking...
where do i go to see the time it took to load?
found it. 9780ms
on windows
not on latest version, upgrading now
as a sidenote, i'd wait 30 seconds for atom-typescript if i had to, it is awesome :)
Mike Graham
@cmichaelgraham
Apr 29 2015 09:01 UTC
here is where the build pulls in typescript
could use some verification ^^^
Florian Verdonck
@nojaf
Apr 29 2015 09:04 UTC
Thanks
Mike Graham
@cmichaelgraham
Apr 29 2015 09:06 UTC
ok, so first launch after update was 6515ms
second was 3999ms
sounds like you win :)
Florian Verdonck
@nojaf
Apr 29 2015 09:24 UTC
Hah ok, I'll just learn to live with it.
Mike Graham
@cmichaelgraham
Apr 29 2015 09:25 UTC
cool :+1:
Mike Graham
@cmichaelgraham
Apr 29 2015 18:17 UTC
can't figure out how to get atom-typescript to expand filesGlob? i'm sure its super obvious
Steve Ognibene
@nycdotnet
Apr 29 2015 20:14 UTC
Have you all seen the "Visual Studio Code" client MS just announced? It is an atom shell app and runs on Mac and Linux https://www.visualstudio.com/
Nelo Mitranim
@Mitranim
Apr 29 2015 20:16 UTC
Looks interesting, might give a run to compare to Sublime and Atom. The most interesting thing is not the software but MS's new direction
Steve Ognibene
@nycdotnet
Apr 29 2015 20:17 UTC
indeed
@cmichaelgraham you have to add an entry called "filesGlob" in the tsconfig.json and the value is an array of glob items to evaluate
when you save the tsconfig.json, atom-typescript should rewrite the "files" element appropriately
Yeah - apparently it works with C#, objective C, etc. Wild stuff.
Basarat Ali Syed
@basarat
Apr 29 2015 21:27 UTC

Even setting "declare var DataView: any;" is not working.

@vaughnroyko FWIW that should have worked. You need to put this code in a d.ts file that isn't an external module (i.e. no import/export allowed in that file). Then it becomes a part of the global compilation context (like lib.d.ts)

@nojaf About the startup time : it should now be back to under a second with version 4.0.14. Its because of the way I loaded the language service TypeStrong/atom-typescript#314
@nycdotnet wow. Visual studio code looks like a great idea. What are the extensibility options?
Basarat Ali Syed
@basarat
Apr 29 2015 21:35 UTC
@nycdotnet no customization options yet, but its the most voted request : http://visualstudio.uservoice.com/forums/293070-visual-studio-code