Commit Graph

362 Commits

Author SHA1 Message Date
Matt Bierner
072e2f408b Pass Source and Level For TS/JS Errors (#25167)
**Bug**
All TS/JS diagnostics are currently reported as errors. We also cannot pass a custom source to identify them as coming from a tsserver plugin  such as tslint

**Fix**
Add support for the new fields added in TS2.3.1 that provide this information
2017-04-21 15:41:13 -07:00
Matt Bierner
0e7b49949d Lazily Fetch Supported Code Actions for TypeScript (#25164)
Delay fetching the supported code actions for TS/JS until we actually need them.
2017-04-21 14:58:38 -07:00
Matt Bierner
7cda103d46 Prototype Extension Contributed TS Plugins (#24917)
* Prototype TS plugin from extension support

* Update to take typescriptServerPlugins as an array objects instead of strings

* Use extension path
2017-04-21 14:21:46 -07:00
Matt Bierner
51f3f10e36 Add setting to disable NPM Not installed error (#25112)
Adds a new setting to disable the npm not installed warning that we show when ATA fails

Fixes #25063
2017-04-21 14:19:25 -07:00
Matt Bierner
a1677b57b0 Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects (#25116)
* Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects

Fixes #25113

Adds new setting to enable js typechecking in implicit projects

// cc @mhegazy

* Make sure we update config after changing settings

* Update wording
2017-04-21 13:57:23 -07:00
Matt Bierner
6c5926309d Upload projectRootPath for TS 2.3.1 to prevent potentially watching too many files outside of workspace. Fixes #25040 2017-04-20 17:17:47 -07:00
Matt Bierner
b1f7daf8d1 Remove requestFailed telemetry event 2017-04-19 17:12:38 -07:00
Benjamin Pasero
daf9f01aaf 💄 2017-04-18 14:55:08 +02:00
gauss1314
7efc373d68 Update typescriptMain.ts (#24892)
./features/implementationProvider or ./features/ImplementationProvider ?
2017-04-17 15:23:50 -07:00
Alex Dima
aca01f2daa Fix build hygiene issues 2017-04-14 14:08:52 +03:00
Matt Bierner
0d14027696 Fix a few compile issues when using TS 2.3 (#24731)
Tested recomppiling VSCode with TS2.3. This fixes a few issues that were discovered, including workarounds for:

* https://github.com/Microsoft/TypeScript/issues/15184
* https://github.com/Microsoft/TypeScript/issues/15185
2017-04-13 17:14:50 -07:00
Magnus Hiie
95f0c15bf5 Expose insert..Braces rule in VS Code settings (#21649)
* Expose insert..Braces rule in VS Code settings

Fixes #18043

* Add requirement blurb for insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces

* Revert tsfmt change
2017-04-13 16:35:40 -07:00
Matt Bierner
9177027132 Fix go to project config for jsx/tsx Fixes #24723 2017-04-13 15:26:32 -07:00
Matt Bierner
a0cb432471 Allow Code Lenses to Provide only a Title
Fixes #24209

**Bug**
Currently, for the js/ts references code lens, even if there are zero references you can click on the lens. This display an empty peek view

**Fix**
Allow code lenses to only register a title for the lens with no actual backing command
2017-04-12 15:47:20 -07:00
Matt Bierner
cc167f6305 Gate some ts code lenses in the providers themselves #24548 2017-04-11 14:39:40 -07:00
Matt Bierner
e10f06e9dd Workaround for #23924 - only highlight first line of ts/js implementation range 2017-04-10 15:38:36 -07:00
Matt Bierner
d4dc61b684 Add restart TypeScript Server logic (#23877)
* Add restart TypeScript Server logic

**bug**
Currently, we often have to reload VSCode when we need to restart the TSserver to enable logging or change typescript versions

**Fix**
Add a way to restart the TSServer

* Remove old command

* Formatting
2017-04-07 15:19:23 -07:00
Matt Bierner
c905143876 Fix case where opening tsserver log before loading any ts file may cause undefined access 2017-04-05 22:37:14 -07:00
Matt Bierner
541681ea5a Support new completion items in TS 2017-04-04 16:10:17 -07:00
Matt Bierner
fd4935de60 Handle typesInstallerInitializationFailed events (#23876)
* Handle typesInstallerInitializationFailed

Display a warning message when the ts typings installer fails to initilize. One possible cause is that npm is not installed

* Fix a spell
2017-04-03 18:48:36 -07:00
Jakub Synowiec
70e074ac2f Add an option to enable/disable JSDoc autocomplete (#23704)
* Add new option to disable/enable jsdoc autocompletion

* Refactor JsDocCompletionItem

- remove internal command
- move TS service call and template generation to CompletionItem
- only call TS service if JSDoc completion is enabled in settings
- add local config and config update method to CompletionProvider

* Change how and when JsDocCompletionHelper is registered

Register JsDocCompletionHelper and update configuration in registerProviders instead of activate. Also react to configuration change.

* Rename JsDocCompletionHelper to JsDocCompletionProvider

* Add missing newline at the eof

* Restore completion prompt for JSDoc autocomplete

Restores internal command but but as a separate class. Registers command on extension activation.
2017-04-03 10:35:29 -07:00
Christof Marti
17801ff9a9 Listen on configuration change (#20832) 2017-03-29 17:01:24 -07:00
Matt Bierner
cd896ba18e Disable implementations code lens for TS < 2.2.1 Fixes #23120 2017-03-23 15:07:40 -07:00
Johannes Rieken
4cb14c4af1 use CompletionItemKind.Constant in TS provider, #2628 2017-03-23 11:57:45 +01:00
Matt Bierner
ac5eb01a3c Add warning message when tsserver log fails to open 2017-03-22 17:18:10 -07:00
Matt Bierner
f70f643809 Add reloading when log level changes. Fixes #23061 2017-03-22 17:12:29 -07:00
Matt Bierner
4c3cdfbb5b Fix one more ts cancelation token gating issue 2017-03-22 17:03:48 -07:00
Matt Bierner
301d64ef82 Gate cancelation token to ts 2.2.2 since support for this feature is broken in 2.2.1. Fixes #22996 2017-03-22 12:52:14 -07:00
Matt Bierner
d4cda6e357 Follow up on #22914. Log TS Server in own directory so that typings install events are also place in dir with it. #22915 2017-03-20 17:55:30 -07:00
Matt Bierner
23aba8283a Add TSServer Log Collection Commands (#22914)
* Add TSServer Log Options

Adds support for collecting the TSServer log directly in VS Code

* Add enable logging option

* Handle case where user is on older version of TS

* Rename

* Activate on openTSServerLog command

* VSCode -> VS Code
2017-03-20 17:16:01 -07:00
Matt Bierner
8c468dfd21 Prototype Support for TSServer Request Cancelation (#22437) 2017-03-20 12:03:51 -07:00
Matt Bierner
01091bb083 Remove unused TS extension constants 2017-03-09 22:51:42 -08:00
Matt Bierner
1542eb7848 Add timeout for jsdoc completion 2017-03-09 20:25:42 -08:00
Matt Bierner
ee07532963 Fix formatting options possibly not being provided for TS quick fix 2017-03-07 18:03:04 -08:00
Matt Bierner
379da6bc8d Don't remove TS version info when clicking in the debug or output panel fixes #16478 2017-03-06 16:45:17 -08:00
Matt Bierner
4d63ffc48a Fix ts warning order 2017-03-06 13:44:42 -08:00
Matt Bierner
db35205c7c Fixing a few cases for missing tsserver 2017-03-03 15:44:45 -08:00
Matt Bierner
d1d30da52b Only show implementations code lens on top level interface 2017-03-03 14:06:41 -08:00
Matt Bierner
6f8ea44ca2 Show Reinstall VSCode Error Message when our Bundled tsserver.js is Missing (#21690)
* Add resintall message when bundled tsserver.js is missing. Fixes #21689

* Use common wording for error

* Update warning message
2017-03-03 12:48:31 -08:00
Mackenzie McClane
5e10fe283f Add typescript and javascript format.insertSpaceBeforeFunctionParenthesis (#21712)
* Update tsfmt.json

* Update formattingProvider.ts

* Update package.nls.json

* Update package.json

* Update package.json

* Add TS version requirement to description
2017-03-02 12:49:22 -08:00
Matt Bierner
434def671b Use common TS install for both the TS Extension and Html Extension (#21578)
* Use common TS install for both the TS Extension and Html Extension

**Bug**
At least two version of Typescript are shipped in our extensions: one in the typescript extension and one for the html extension. This adds about 5MB to package install size and also results in inconsistent behavior

**Fix**
Change the TypeScript extension to also use the common version of TypeScript. Bump this version up to 2.2.1

* Don't hardcode paths for typescript
2017-03-01 18:34:04 -08:00
Matt Bierner
72ab40c536 Only show ts version for ts files Fixes #21219 2017-02-28 18:21:59 -08:00
Matt Bierner
5547384745 Show references on enum values 2017-02-28 17:16:08 -08:00
Matt Bierner
223ea4bbc0 Prototype of Implementations Code Lens Provider for TypeScript (#20784)
* Prototype of Implementations Code Lens Provider for TypeScript

Adds a prototype code lens that shows the number of implementations for interfaces and abstract classes. This shares a lot of code with the references code lens provider, so I extracted most of the common stuff into a base class.

* Support children of interfaces

* Add setting to control implementations code lens
2017-02-28 17:12:16 -08:00
Matt Bierner
efe5d1c0ad Disable complete on / for path based completions. Fixes #20557 2017-02-23 19:42:25 -08:00
Matt Bierner
151986295e Fixes #21065 - Open js/ts config in same column as active editor 2017-02-23 17:25:24 -08:00
Matt Bierner
e000772e9c Use * in jsdoc comments but don't select the star in the snippet 2017-02-23 16:22:02 -08:00
Matt Bierner
eab23cd0dc #21214 clairify that only project wide intellisense is being disabled when configure excludes shows 2017-02-23 14:58:44 -08:00
Matt Bierner
1ad0809980 Revert to using any to avoid weird selection behavior for * 2017-02-23 14:56:24 -08:00
Matt Bierner
8ced802f0a use {*} instead of in jsdocs 2017-02-23 14:18:06 -08:00