Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • Apr 29 01:12
    dyping closed #1500
  • Apr 28 06:56
    dyping edited #1500
  • Apr 28 06:54
    dyping edited #1500
  • Apr 26 11:38
    dyping opened #1500
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
Basarat Ali Syed
@basarat
@Stacey-Gammon its just the way it :)
this.something = Foo.bar(something.something);
^ same here
If you have a suggestion you can make them here : https://github.com/Microsoft/TypeScript-TmLanguage that way all ides get it (atom/vscode/sublime)
Basarat Ali Syed
@basarat
blob
^ one suggestion is to highlight function calls. This is what I do with alm.tools however it doesn't use the tmLanguage files (uses the typescript language service instead)
Francesco Mazzoli
@bitonic
Does atom-typescript pick up tsconfig.json automatically?
I'm getting errors on a project that compiles fine with tsc
Basarat Ali Syed
@basarat
Yes. Please see TypeStrong/atom-typescript#910
@bitonic ^ :rose:
Valentin Robert
@Ptival
@basarat is there a one command atom-ts invokes to compile all .ts files? I'd like to have a script trigger the same thing for my users who don't use atom
Valentin Robert
@Ptival
if I do tsc -p mydir/, I'm not sure why but it goes ahead and tries to compile all of DefinitelyTyped/, ignoring my filesGlob...
Valentin Robert
@Ptival
oh I see, I have to use files, and I have to list all files if I don't use /// reference path, what a bummer...
Basarat Ali Syed
@basarat
@Ptival you can use grunt-ts by @nycdotnet as it supports filesGlob : https://github.com/TypeStrong/grunt-ts/ :rose:
Marc Wensauer
@daslicht
@Valentin FilesGlob is a Atom Specific setting, it will be not used when running tsc in cli
Valentin Robert
@Ptival
got it
now I have another trouble where atom-ts does not pick up on my typings
I put "typings/main.d.ts" in my "filesGlob", is it not enough?
Basarat Ali Syed
@basarat
@Ptival its enough. Please share the tsconfig.json completely :rose:
Valentin Robert
@Ptival
and main.d.ts contains http://paste.awesom.eu/YrQz
Valentin Robert
@Ptival
I also tried removing filesGlob entirely and putting an empty excludes list, I get errors everywhere
and when I open es6-shim/index.d.ts, it complains about duplicate identifiers
maybe relevant, in my typings/ folder, I have a main.d.ts and a browser.d.ts, with both their subdirectories, not sure why
Valentin Robert
@Ptival
do I need a /// <reference path...> in my files in that setting?
Valentin Robert
@Ptival
@basarat you can see a bit of the setup and issues on this gif http://i.imgur.com/DM2O3yB.gifv not sure it'll help
Basarat Ali Syed
@basarat

@Ptival your files glob:

  "filesGlob": [
    "*.ts",
    "coq/*.ts",
    "editor/*.ts",
    "peacoq/*.ts",
    "prooftree/*.ts",
    "typings/main.d.ts"
  ],

Should be :

  "filesGlob": [
    "*.ts",
    "coq/*.ts",
    "editor/*.ts",
    "peacoq/*.ts",
    "prooftree/*.ts",
    "typings/main.d.ts",
    "!typings/browser/**",
    "!typings/browser.d.ts"
  ],
as *.ts matches that
Marc Wensauer
@daslicht
This message was deleted
Marc Wensauer
@daslicht
This message was deleted
Marc Wensauer
@daslicht
funny stuff, I cant use the file name , main.server.ts it will be always not in compile context
but it compiles to Main.server.ts
yeah with capital letter wtf ?!
is there somekimnf of cache going on ?
I renames the Main.server.ts to main.server.ts before
funky
Valentin Robert
@Ptival
ok I've made some progress, now my remaining issue is that the --ambient version of d3 is worthless, and I don't understand how to make the npm typings work
Eugenio Arosteguy
@euginio
I guys
is there some way to replace text preserving case in atom?
Valentin Robert
@Ptival
@euginio yes, click on the "Aa" button on the right
I still am unable to call tsc -p . succesfully from the command line, even though my project builds under atom-typescript, it misses some interface files somehow
Eugenio Arosteguy
@euginio
Hey @Ptival , the option you mention is for match case in the search, I want an option to "preserve case" in the replacement, for example replace "hello" with "hola" and preserving case it will replace also "Hello" with "Hola" (as in sublime)
Yousef Shanawany
@AskYous
Anyone else wish the syntax highlighting was better? I wish it was as good as JavaScript's highlighting in atom.
Leigh Caplan
@texel
Yep, it's pretty terrible for me too
Yousef Shanawany
@AskYous
You think I should open up an issue?
Basarat Ali Syed
@basarat
@texel @AskYous we just use the defacto Microsoft version. More : https://github.com/TypeStrong/atom-typescript/blob/master/docs/grammar.md#cson-grammar
@texel @AskYous because of text mate limitations (plus maintenance burden) I'm using a code based grammar for my next WIP project : https://basarat.gitbooks.io/alm/content/features/typescript.html#syntax-highlighting :rose: