Commit Graph

508 Commits

Author SHA1 Message Date
Fu** Yeah
8bb4ffb4ef Fix Typo: langauge to language (#32077) 2017-08-07 11:53:20 -07:00
Matt Bierner
d2edc00d6f Fix some possible TSServer spawn issues (#32007)
**Bug**
A few users are seeing issues spaning the tsserver. The most common error seems to be ERRNO when spawning it

**Fix**
- Ensure we always try to set `env.PATH`
- Use `require.resolve` to check the existance of the `electronForkStart` helper before calling spawn
2017-08-04 16:07:15 -07:00
Dirk Baeumer
c4c66d8bc4 Fixes #31971: Disable TypeScript watch support 2017-08-03 14:41:36 +02:00
Christof Marti
a8ea82ddf3 Delete rogue line 2017-08-02 16:17:37 -07:00
Matt Bierner
19e7485691 Make sure we don't set diagnostics in js/ts when validation is disabled 2017-08-02 15:53:12 -07:00
Matt Bierner
6a49783e8e Make sure we only mark one selected TS version in the picker
Fixes #31876
2017-08-02 12:55:45 -07:00
Matt Bierner
1b399814a3 Configure Exclude status bar item should open config directly
Fixes #21215
2017-08-02 12:33:29 -07:00
Matt Bierner
80515175cb Always use fileSearch to pick up tsconfig.jsons
Fixes #31822
2017-08-01 18:54:06 -07:00
Matt Bierner
cdcadccc37 Don't show path in TS version selector for bundled TS. Fixes #31843 2017-08-01 17:21:08 -07:00
Matt Bierner
22a6fe5c9c Present all possible local ts versions in the selector
Fixes #31877
2017-08-01 17:11:48 -07:00
Matt Bierner
b3223a8416 VSCode -> VS Code 2017-08-01 15:28:01 -07:00
Matt Bierner
a3b67392fd Fix tsconfigs not being piced up properly after rename
Fixes #31858
2017-08-01 14:27:15 -07:00
Matt Bierner
20519a8fe1 Fix possible race condition in tsconfig provider
Fixes #31847
2017-08-01 14:27:15 -07:00
Matt Bierner
31d1c4c4ca Show error message in TS Version picker when TS verison cannot be loaded
Fixes #31846
2017-08-01 13:44:11 -07:00
Matt Bierner
4ecd158b1a Use async for TS code action provider 2017-07-31 14:27:15 -07:00
Matt Bierner
8eb1c4575c Allow selecting invalid TypeScript versions if you have configured these in the typescript.tsdk setting
Fixes #31716
2017-07-31 13:55:54 -07:00
Matt Bierner
b0574eba0d Use async in workspaceSymbolProvider 2017-07-31 13:55:54 -07:00
Matt Bierner
a8d0740cb7 Cleaning up version provider 2017-07-31 11:39:47 -07:00
Matt Bierner
e9764d95bc Fix JS/TS indentation for if (...) | {} case
Fixes #30933
2017-07-31 11:39:47 -07:00
Matt Bierner
78ce031581 Use label instead of path for typescript task info 2017-07-31 08:06:46 -07:00
Matt Bierner
36a1b225d8 Use async for hover provider 2017-07-31 08:06:46 -07:00
Matt Bierner
bb2e869489 Show multiple node_modules versions in TSVersion picker 2017-07-24 18:01:23 -07:00
Matt Bierner
0b1f37600b Fix tsconfig provider not setting workspace for active file 2017-07-24 13:39:12 -07:00
Matt Bierner
5f5e17bc91 Tsconfig provider handle workspace folder changes 2017-07-21 15:54:02 -07:00
rebornix
ed20f81b22 Fix #29972. We should not adjust indent on comments. 2017-07-20 21:17:04 -07:00
Matt Bierner
a48dd08f78 First cut supporting tsconfig task provider for multiroot workspaces
part of #30415
2017-07-20 18:30:11 -07:00
Matt Bierner
2153a47d22 Move formatting provider registration logic into a manager that enables or disables based on config 2017-07-20 17:37:29 -07:00
Matt Bierner
28f5fda049 Don't register language configuration for TS plugin languages 2017-07-20 17:12:27 -07:00
Matt Bierner
fe59149dc0 Move jsx tags mode language config out of language provider 2017-07-20 17:12:27 -07:00
Matt Bierner
733e208be4 Add support for workspace relative tsdk settings 2017-07-20 17:12:27 -07:00
Matt Bierner
0cd033daff Re-enable TS refactoring provider 2017-07-20 17:12:27 -07:00
Matt Bierner
58e7b4045e Show path labels for TS version picker in multiroot cases 2017-07-20 17:12:27 -07:00
Matt Bierner
8f3197dbc0 Fix potential null reference in directive provide 2017-07-17 10:04:16 -07:00
Matt Bierner
ed327d3640 First cut of watch for tsconfig task
Fixes #29580

Use `compileOnSave` in the `tsconfig.json` to run `tsc` task 2.0 task in watch mode
2017-07-14 17:06:11 -07:00
Matt Bierner
b83d2ea286 Prep task provider for muiltiroot 2017-07-14 17:06:11 -07:00
lslv1243
b4c281cedd fixed typo (#30653) 2017-07-14 13:26:01 -07:00
Johannes Rieken
0df555f5f4 have an explicit WorkspaceFolder with some extra bits and pieces, #28526 2017-07-13 16:22:19 +02:00
Matt Bierner
62975361cb Disable TS refactorings
Investigating #30449, it seems that typescript refactoring can take a long time to compute in some projects. Disabling these in insiders. We'll disable them in 1.14 is this is found to help
2017-07-12 15:56:14 -07:00
Matt Bierner
0bf8b3c8f7 Force kill tsserver on ts extension shutdown 2017-07-12 11:30:43 -07:00
Matt Bierner
4080a38ada Remove use of module path 2017-07-11 22:37:05 -07:00
Matt Bierner
63be84eba4 Move API to own file
Refactor TS Version detection and version picker for multiroot support

Extracts the ts version detector and the TS version picker to their own files and cleans up their interfaces. This is the initial work to support a multiroot ts version picker
2017-07-11 22:25:27 -07:00
Matt Bierner
883ed445c8 Remove the checkTSC warning
The purpose of the checktsc warning has never been very clear and has caused quite a bit of confusion. I'd like to try removing it this iteration to see if many users run into TypeScript mismatch errors
2017-07-11 15:11:03 -07:00
Matt Bierner
3c432b4044 💄 2017-07-11 15:11:03 -07:00
Matt Bierner
ac8f47b193 Use most broad root for typescript project root in multiroot. Fixes #30163 2017-07-05 18:13:08 -07:00
Matt Bierner
2a1d11ed06 Disable open trigger file in configFileEvent
Workaround for #28593

**Bug**
TypeScript Server is hanging onto a file in `node_modules/.staging`, causing npm installs to fail. I believe the root cause is that 0d5c9f4 changed vscode logic to always open the `triggerFile` in config diagnostic events.  In this case, TS sends us a trigger file from `.staging` which we then tell the TS Server to open

**Fix**
Disable checking the trigger file
2017-07-05 15:06:48 -07:00
Matt Bierner
7910b3d7ba Fix js/ts decrease indentation for block comments inside brackets
fixes #29886
2017-06-29 15:45:10 -07:00
Matt Bierner
19decf745e Add insertSpaceAfterTypeAssertion formatting option
Fixes #10296
2017-06-28 05:06:53 -05:00
Dirk Baeumer
19f310a027 Fixes #29427 & #29617 2017-06-27 21:38:56 +02:00
rebornix
e81bc86629 Fix https://github.com/Microsoft/vscode/issues/29472#issuecomment-311125846 . Fix TS decreaseIndentPattern bug. 2017-06-26 11:31:17 -07:00
Dirk Baeumer
cf594ad817 Make tthe source attribute mandantory for tasks defined in extensions 2017-06-25 22:44:46 +02:00