Commit Graph

515 Commits

Author SHA1 Message Date
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
Ramya Achutha Rao
84af63a933 Increment version of vscode extension telemetry module 2017-04-18 14:46:35 -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
Matt Bierner
1d05d0c49d Added PII note on ts server trace and log settings #24696 2017-04-13 17:05:01 -07:00
Matt Bierner
5d801251ec Set insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces to default to true to keep with existing behavior 2017-04-13 16:44:42 -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
5f628cd731 Use js/tsconfig schema for jsconfig.*.json files (#24637)
Fixes #24572

Applies the js/tsconfig schema to file names such as `jsconfig.app.json`
2017-04-12 14:46:08 -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
Michel Kaporin
96bd2ed7dd Merge pull request #23281 from michelkaporin/i18n
Added ability for JSON/XLIFF conversion and Push/Pull from Transifex
2017-04-06 14:38:05 +02: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
81f06c8605 Split markdown security selector into own file 2017-04-04 19:32:36 -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
Matt Bierner
84e3f39976 Remove unused TS setting string 2017-04-03 17:47:36 -07:00
Elias Winberg
520fc643c6 Remove class snippet comment (#23209) 2017-04-03 16:57:50 -07:00
Matt Bierner
32e4e575c0 Fixes #23669. Consistent highlighting of puctuators in ts/js return types (#23871) 2017-04-03 14:57:55 -07:00
Matt Bierner
96092113fa Add note about references code lens required TS version 2017-04-03 13:25:52 -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
Matt Bierner
fa342734c3 Add version requirement note to implementaiton code lens setting Fixes #23679 2017-04-03 10:00:47 -07:00
Christof Marti
17801ff9a9 Listen on configuration change (#20832) 2017-03-29 17:01:24 -07:00
Michel Kaporin
2af1e01b44 Implemented transifex push and pull for translations together with json->xlf->json parsing. 2017-03-27 15:45:43 +02: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
Dirk Baeumer
d3efc931f7 Fixes #22730: Contributed problem matchers must use ${cwd} not $cwd 2017-03-16 10:47:11 +01:00
Dirk Baeumer
f51220dbf7 Fixes #22066: Allow extensions to contribute named problem matchers via package.json 2017-03-14 12:07:15 +01: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
Anand Dyavanapalli
8948a2055c TypeScript should use double quotes for string. (#22255)
From style guide: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
2017-03-08 15:20:24 -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