TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

VS2015 Community Should have a TypeScript New Item Type in the Folder base website

Open ToddThomson opened this issue 11 years ago • 28 comments

When adding a new item (file) to a VS2015 Web Site there is no option to add a Typescript file type. Everything else under the sun, but no Typescript file option ( or Typescript Definition, d.ts ).

ToddThomson avatar Jul 23 '15 13:07 ToddThomson

Is that in the File -> New Web Site... 'project' or File -> New Project -> ASP.NET Web Application?

paulvanbrenk avatar Aug 11 '15 23:08 paulvanbrenk

That would be: File -> New -> Web Site from top menu. Select 'ASP.NET Empty Web Site' ( or any web site template ). Then: Add -> Add New Item . There is no Typescript file type option. For an ASP.NET 'Project', the Add New Item dialog has a Typescript type listed.

ToddThomson avatar Aug 12 '15 16:08 ToddThomson

Thanks

paulvanbrenk avatar Aug 12 '15 18:08 paulvanbrenk

Presumably this is actually all editions - I'm using VS 2015 Enterprise and have the same problem. I pulled down a website from GitHub that contained some some .html and .js files and attempted to add a typescript (.ts) file to no avail. Eventually I added a JavaScript file but gave it a .ts extension. Intellisense seemed to work but it refuses to compile the typescript to JavaScript.

broomstick73 avatar Aug 23 '15 00:08 broomstick73

I would add, it should show under general in all projects:

image

mhegazy avatar Feb 02 '16 20:02 mhegazy

Same here no option in my VS 2015 Enterprise edition... I even installed the Typescript too for vs 2015 tool manually but still no option to add a Typescript File in my Projects... When is this Bug gonna get solved? Does this Bug avail in the Community edition too?

khaled4vokalz avatar Mar 19 '16 09:03 khaled4vokalz

Same problem here with Community Edition.

ghachey avatar Apr 25 '16 02:04 ghachey

Same problem for me with Professional edition update 2

joe912 avatar May 04 '16 21:05 joe912

The main problem is that there is no build we can hook into. So even if we add a template for TypeScript files, you still won't be able to compile them into .js files.

This is a significant amount of work to get working, and it doesn't look like the ASP.NET team is investing in this scenario.

paulvanbrenk avatar May 04 '16 23:05 paulvanbrenk

Well in our project we use Grunt to compile the TypeScript into JS. So the ability to be able to simply add a TypeScript file would be nice anyway. Currently I add a Javascript file and rename to .ts which feels annoying.

ghachey avatar May 05 '16 00:05 ghachey

+1, didn't have add new item for "New Typescript File.." anymore. annoying

image

jimior2 avatar May 06 '16 02:05 jimior2

@jimior2 Is this a website?

paulvanbrenk avatar May 06 '16 17:05 paulvanbrenk

@paulvanbrenk nope, this is Tools for Apache Cordova project.

jimior2 avatar May 08 '16 12:05 jimior2

@jimior2 That's a different issue then... can you open a new bug so we can track this accordingly? Does IntelliSense work? When did the menu item stop showing up?

paulvanbrenk avatar May 09 '16 19:05 paulvanbrenk

@paulvanbrenk ok, thanks, I probably after upgrade TACO to update 9 then the new ts file disappear.

jimior2 avatar May 17 '16 01:05 jimior2

@paulvanbrenk what's your opinion of this issue as it stands?

RyanCavanaugh avatar Aug 02 '16 03:08 RyanCavanaugh

Still doesn't appear to be fixed. Typescript intellisense works, adding file works, but there is no "add new typescript file" and "typescript" doesn't appear in the list of templates for files to add. What I do is to add an HTML file named with the .ts extension and delete out the HTML. Works fine but is weird.


James C. [email protected]

On Mon, Aug 1, 2016 at 11:35 PM, Ryan Cavanaugh [email protected] wrote:

@paulvanbrenk https://github.com/paulvanbrenk what's your opinion of this issue as it stands?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/TypeScript/issues/3998#issuecomment-236785930, or mute the thread https://github.com/notifications/unsubscribe-auth/AL73DFcR-wuAsTMQHzU6qn93DuHj8brtks5qbrsbgaJpZM4FeYAt .

broomstick73 avatar Aug 02 '16 12:08 broomstick73

We have tried to fix this a bunch of times.. I'll take another stab.

paulvanbrenk avatar Aug 02 '16 17:08 paulvanbrenk

could this be caused by one of the 40 extensions I have enabled?


James C. [email protected]

On Tue, Aug 2, 2016 at 1:17 PM, Paul van Brenk [email protected] wrote:

We have tried to fix this a bunch of times.. I'll take another stab.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/TypeScript/issues/3998#issuecomment-236975054, or mute the thread https://github.com/notifications/unsubscribe-auth/AL73DPKLCcN7VCX1ABTovertnYlBhslFks5qb3udgaJpZM4FeYAt .

broomstick73 avatar Aug 02 '16 17:08 broomstick73

No, it's probably that I haven't figured out the right location to drop the templates, so the new file dialog is able to find them.

paulvanbrenk avatar Aug 02 '16 17:08 paulvanbrenk