Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 18 18:59
    danieltroger opened #1595
  • Nov 11 00:19
    github-actions[bot] closed #1589
  • Nov 09 20:22
    ChronomancerDev opened #1594
  • Oct 31 20:04
    lierdakil closed #1590
  • Oct 28 12:01
    ayame113 closed #1587
  • Oct 28 11:50
    lierdakil unlabeled #1590
  • Oct 28 11:49
    lierdakil assigned #1590
  • Oct 28 00:18
    github-actions[bot] labeled #1589
  • Oct 28 00:18
    github-actions[bot] labeled #1590
  • Oct 27 08:49
    droid001 closed #1593
  • Oct 27 08:34
    droid001 edited #1593
  • Oct 25 14:30
    droid001 opened #1593
  • Oct 11 00:18
    github-actions[bot] closed #1586
  • Oct 11 00:18
    github-actions[bot] closed #1588
  • Sep 26 00:19
    github-actions[bot] labeled #1586
  • Sep 26 00:19
    github-actions[bot] labeled #1588
  • Aug 31 00:16
    github-actions[bot] closed #1585
  • Aug 25 11:30
    Nilos opened #1591
  • Aug 16 00:17
    github-actions[bot] labeled #1585
  • Aug 14 00:15
    github-actions[bot] closed #1584
David Driscoll
@david-driscoll
@basarat what's interesting is that I don't see something similar with omnisharp-atom, I was thinking of making some local changes to switch to stdio instead of ipc (write messages to the output, read messages from the input) and to see if I still experienced the problem... next time I run into being fairly repeatable I think I will.
Tay Nelson
@TayNelson
Hi. How can I enable this visual alert? It is not currently displayed for me (Atom Version 1.5.4) screenshot
Jari Pennanen
@Ciantic
@basarat holy crap, very useful! Thanks. I was figuring this same thing out myself, how to typescriptify the redux. Was just about refactor handleActions and createAction (from redux-actions package) to something more typesafe, but you've done something similar already.
Jari Pennanen
@Ciantic
btw, I think you still are doing way more OSS contributions than my sanity would allow
like answering random people on gitter while on leave travelling world, I think it's totally unneccessary
Basarat Ali Syed
@basarat
@TayNelson that message started to annoy people. So now we show a little indicator in the TypeScript toolbar on the bottom
blob
Urban Lavbič
@xban1x
Can i ask how to enable Angular 2 support ??
So i don't get errors on importing Angular 2 related stuff??
mLaird
@mLaird
@xban1x Can you be more specific? I've been using Atom to build Angular2 apps for several months and have never had a problem with something Angular2 specific.
David Driscoll
@david-driscoll
@xban1x make sure you have "moduleResolution": "node" set, that might be problem you're experiencing
Daphne Maddox
@laurelnaiad
… and have paths that match most (if not all) of the angular d.ts files in your filesGlob….
Benjamin Bock
@bb
Hi there! I have found a small syntax highlighting glitch in the ts and tsx syntax which is fine in the js syntax. The code example is actually valid js as well:
    var x = bar ? `/${bar}` : (baz ? `/${baz.bar}` : "");
are those ts.cson grammar files written by hand or generated from some base files? Do they inherit from other files or are they fully self-contained? I'd see if I can fix it myself before creating a ticket.

btw, the issue is that the second string is not highlighted as a string.

`/${baz.bar}`

With the parenthesis removed, the second backtick of the second string is treated as the start of a multi line string which makes all the following lines string-colored

const foo = bar ? `/${bar}` : baz ? `/${baz.bar}` : "";
Josh
@joshkopecek
Is there a way to specify a custom tsconfig.json file?
Daphne Maddox
@laurelnaiad
@joshkopecek what do you mean by “custom”? You can use multiple tsconfig.json files in one project, if that’s what you mean. Occasionally this confuses atom-typescript but it works well enough to be considered reaonsable IMO.
Josh
@joshkopecek
I mean I have a tsconfig.test.json file as well as a tsconfig.json file.
@laurelnaiad
Daphne Maddox
@laurelnaiad
I don’t think that would work without some changes to atom-typescript.
Josh
@joshkopecek
It's useful having separate config files for testing and production
The reason I'd like this is because if atom-typescript doesn't find the tsconfig.json file the autocomplete seems to break
Valentin Robert
@Ptival
@basarat This might be a little specific to my setup, but my DefinitelyTyped folder in my project is a symbolic link to ~/DefinitelyTyped, a shared checkout of the repo.
My tsconfig.json mentions "DefinitelyTyped/.../foo.d.ts"
Now, when I open a file like ~/MyProject/DefinitelyTyped/.../foo.d.ts, atom-typescript complains that the actual file ~/DefinitelyTyped/.../foo.d.ts is not included in my compilation context, which I understand but is unfortunate.
Do you have a solution for such a setup or should I file this as an enhancement issue?
Basarat Ali Syed
@basarat

is not included in my compilation context, which I understand but is unfortunate

We just do a findup to look for a tsconfig.json. If not found its considered out of context. Might be an issue in your case.

Valentin Robert
@Ptival
@basarat it is not my tsconfig.json that is not found, rather, I get a warning that foo.d.ts is not in my compilation context, but it is, just under a different path
because my compilation context contains a symbolic link
Basarat Ali Syed
@basarat
@Ptival there isn't a bug report for that. Feel free to create one :rose: PS only symbolic link issue I remember : TypeStrong/atom-typescript#330
Valentin Robert
@Ptival
@basarat do you just check out a copy of DefinitelyTyped per project?
Basarat Ali Syed
@basarat
@Ptival The answer has changed over time. Now I just use typings by @blakeembrey :rose:
Valentin Robert
@Ptival
what is it?
Valentin Robert
@Ptival
Basarat Ali Syed
@basarat
yup :rose:
Valentin Robert
@Ptival
@basarat how do I know which version of TS atom-ts is using?
I'm hitting a bug in atom-ts that seems fixed on the TS playground online
Valentin Robert
@Ptival
thanks
I am actually facing a new issue
in the generated AMD, it seems that an extends fails because the parent class is undefined
oh, I have a circular dependency
Valentin Robert
@Ptival
@basarat that dependency view is golden :+1:
Valentin Robert
@Ptival
Do you happen to know what the solution to separating a module across multiple files is? I see a lot of long discussions on Github that end up closed with no resolution
Marc Wensauer
@daslicht
the option "allowJs": false is marked as error
Matheus Magalhães de Alcantara
@demhydraz
is there any way to have the awesome highlighting without making my editor crawl to a halt?
Carlos Ruiz Ballesteros
@cruizba
penis
sorry it was a friend
i love typescript jeje
Marc Wensauer
@daslicht
is there ab filesExcludeGlob ?
Basarat Ali Syed
@basarat
@daslicht you can exclude using negation:
"filesGlob":[
  "**/*.server.ts",
  "!**/**.client.ts",
]
Stacey Gammon
@stacey-gammon
Any ideas on why this syntax is highlighting in just grey? http://www.theshelterhelper.com/images/syntaxhighlighting.png