Skip to content

Visual Studio 2017 Compile on Save only compiles the current file #18222

Closed
@ghost

Description

Windows 10 Version 1607

Microsoft Visual Studio Enterprise 2017
Version 15.3.3

TypeScript Version: 2.4.1 Release

Using the exact same solution (see example below) under VS2015 and VS2017, which uses "compileOnSave", VS2017 is not building any of the files listed under the "include" folders, when saving the single file listed in the "files" section. The only output is for that one file, when the file is saved. It is now also only outputting the single file being saved that is a part of the "include" section, Previously, it was building all of the files in that folder.

Can we get back the normal functionality of TSC.exe (watch), which was available in VS2015? This currently functionality is basically useless. Also, if the output files are checked-in to source control, VS2017 is not automatically checking them out like VS2015 does, which is another piece that has been broken.

Sample Project: https://developercommunity.visualstudio.com/storage/attachments/10591-typescriptbug.zip

Steps to reproduce the issue:

  1. Open the solution in VS2015.
  2. Open ~/Scripts/_apps/tsTest/tsTest.ts for edit.
  3. Save the file (CTRL-S).
  4. Look on your file system for the ~/Scripts/.tsbuild folder.
  5. You will see that all files were built.
  6. Close VS2015.
  7. Delete the ~/Scripts/.tsbuild folder.
  8. Open the solution in VS2017.
  9. Open ~/Scripts/_apps/tsTest/tsTest.ts for edit.
  10. Save the file (CTRL-S)
  11. Look on your file system for the ~/Scripts/.tsbuild folder.
  12. You will immediately see that there is no _modules folder.

VS2017 is not using TypeScript correctly.

Metadata

Metadata

Assignees

Labels

Visual StudioIntegration with Visual StudioWorking as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions