0

I'm trying to make a SPA with .Net Core and Angular.

So I followed this tutorial: Microsoft

It runs perfectly. Even if I open the solution in VS4Mac.

The problem is that I can't edit the typescript files. I've searched everywhere!

I have the latest version of everything involved. NodeJS, VS4Mac, etc...

Update after the comments bellow:

  • I've reinstalled VS for Mac and it didn't help.
  • I can see and open them in VS. But as soon as I start writing, a box appears with a message "no completions found".
  • I can open and edit in other editors.
  • I even did "chmod 777" to a file just to see if it were the permissions, but it didn't help.
  • I'd tried to disable IntelliSense, but No difference.

I have no idea of what is the reason why VS for Mac can't edit ts. And I'd like to use a native IDE, instead of a VM. Could it be that VS for Mac CAN'T edit typscript altogether? I haven't been able to prove otherwise. Has anybody else been able to edit TS with this IDE?

ryanwebjackson
  • 1,017
  • 6
  • 22
  • 36
Rui Silva
  • 413
  • 1
  • 5
  • 12
  • 1
    Please help us understand why you can't edit the typescript files. Do you see them in VS? If you do, what happens when you click on them? Have you tried opening them in other code editors? – Jorge Valle Sep 03 '17 at 08:59
  • Yes, I can see and open them in VS. But as soon as I start writing, a box appears with a message "no completions found". I can open and edit in other editors. I even did "chmod 777" to a file just to see if it were the permissions, but it didn't help. – Rui Silva Sep 03 '17 at 10:45
  • So the TypeScript autocomplete doesn't seem to be working. I'd try to disable IntelliSense first, and report back. – Jorge Valle Sep 04 '17 at 01:57
  • No difference. Well, now the message doesn't appear... ;) – Rui Silva Sep 04 '17 at 17:46
  • So if the message doesn't appear now, what is preventing you from editing the TypeScript file? I'm not advocating disabling IntelliSense as a sustainable solution, just to arrive at the root cause. – Jorge Valle Sep 06 '17 at 13:24
  • That is my original question. I have no idea of what is the reason why vs for mac can't edit ts. And I'd like to use a native IDE, instead of a VM. Could it be that VS for Mac CAN'T edit ts altogether? I haven't been able to prove otherwise. Has anybody else been able to edit TS with this IDE? – Rui Silva Sep 06 '17 at 13:29
  • I've never used VS on Mac. On Windows, I've never had any problem working with TypeScript files on VS. – Jorge Valle Sep 06 '17 at 16:01
  • Thank you anyway. I've used VS in a Win VM. And everything works fine. – Rui Silva Sep 06 '17 at 16:12

1 Answers1

3

I am able to create and edit TypeScript (TS) files in Visual Studio for Mac (Version 7.1, screenshot below). Now, as far as I can tell, the IDE does not support TS compilation out of the box, so you'll have to compile yourself via tsc (TypeScript Compiler) or another transpiler (ex. Babel) with TS plugin.

enter image description here

That being said, a better editing experience for TypeScript on Mac is WebStorm, an IDE from JetBrains, which supports TypeScript out-of-the-box.

ryanwebjackson
  • 1,017
  • 6
  • 22
  • 36
  • Thank you very much. I've got it running now. The git management is somewhat limited, but every thing is going great now! – Rui Silva Sep 13 '17 at 09:14