43 Commits

Author SHA1 Message Date
Ryan Cavanaugh
f739f68231 Tidy up 2017-06-06 16:08:24 -07:00
Ryan Cavanaugh
1f3ef7df7a Refactor refactor 2017-06-06 14:58:18 -07:00
Andy Hanson
f6240cb6f9 Make CommandTypes a const enum and use allCommandTypes for unit test 2017-05-22 11:17:12 -07:00
Andy Hanson
c6e69dd64b Fix missing initializers 2017-05-22 11:05:30 -07:00
Andy Hanson
3b56ebeabe Convert other namespace + type alias in protocol.ts to const enums 2017-05-22 10:47:28 -07:00
Andy Hanson
f94818da36 Also convert ClassificationTypeNames and CommandTypes/CommandNames 2017-05-22 10:40:59 -07:00
andy-ms
b162097c3c Make ScriptElementKind and HighlightSpanKind string enums 2017-05-20 07:56:24 -07:00
Ryan Cavanaugh
f6fbe61718 Refactoring support (squash) 2017-05-19 10:45:49 -07:00
Mohamed Hegazy
ca748d6c02 Add insertSpaceAfterTypeAssertion to the server protocol 2017-05-12 14:48:13 -07:00
Mohamed Hegazy
8534b430be Add missing compiler options 2017-04-20 15:11:40 -07:00
Mohamed Hegazy
5d7c75d88d Add a source property on Diagnostic 2017-04-20 13:22:55 -07:00
Mohamed Hegazy
75cdb47cfa Return Diagnostic.category from the server 2017-04-19 17:12:20 -07:00
Zhengbo Li
e8fd1cf466 Support project root path for controlling config file searching depth (#15238)
* stops at projectRootPath when searching config file

* Add tests

* Update editorServices.ts

Remove extra `true &&`
2017-04-19 11:42:24 -07:00
Andy Hanson
73cab09608 Enable jsdoc-format lint rule 2017-04-03 14:39:19 -07:00
Mine Starks
af0b2d9768 Merge pull request #12856 from minestarks/includejsdoctags
Expose JSDoc tags through the language service
2017-03-31 17:58:41 -07:00
Zhengbo Li
5040e1d279 Mark occurence item in string with a special property (#14677)
* mark occurence item in string with a special property

* Adding trailing commas
2017-03-16 11:01:48 -07:00
Vladimir Matveev
17cb68cbbf send error if obtaining of types-registry package failed (#14573) 2017-03-10 10:34:01 -08:00
Magnus Hiie
9ac2ea722d Add insert...Braces Option to Server Protocol
Closes #13275
2017-03-01 18:48:08 +02:00
Jason Jarrett
e2222b2680 Update protocol.ts 2017-02-19 22:14:39 -08:00
Ryan Cavanaugh
aec310996c Language service extensibility 2017-02-14 13:35:16 -08:00
Vladimir Matveev
81f4e38643 Enable per-request cancellation (#12371)
enable -per-request cancellation

* restore request for deferred calls

* add tests

* introduce MultistepOperation

* (test) subsequent request cancels the preceding one
2017-02-14 13:18:42 -08:00
Vladimir Matveev
de40000814 switch FileExtensionInfo to always mean .js file and deduplicate entries in getSupportedExtensions (#14046)
* - switch FileExtensionInfo to always mean .js file
- deduplicate entries in getSupportedExtensions

* (PR feedback): updated comment
2017-02-13 12:19:33 -08:00
Vladimir Matveev
bb71dcdde8 add projectUsesOutFile field to protocol.CompileOnSaveAffectedFileListSingleProject (#13915) 2017-02-08 11:01:32 -08:00
David Sheldrick
8d590d5191 rename preserveWithJsExtension to react-native 2017-01-23 21:42:39 +01:00
David Sheldrick
dd0ed44b9a Add option to output .js files while preserving jsx
This commit adds the ability to preserve jsx in source code, but
also to output .js files rather than .jsx files. This is useful
for react-native which does not support .jsx files.
2017-01-23 18:17:16 +01:00
Andrew Ochsner
3b3d71542c Add InsertSpaceAfterConstructor option & additonal test cases
Fixes #12234
2016-12-20 10:05:10 -06:00
Andrew Ochsner
7bf73be7fe space-before-function-paren
Adding option InsertSpaceBeforeFunctionParenthesis
Should be optional
Typically used to support http://eslint.org/docs/rules/space-before-function-paren

Fixes #12234
2016-12-19 23:05:30 -06:00
Vladimir Matveev
e68161adfa when language service is disabled - build program using only open files (#12809) 2016-12-13 13:21:32 -08:00
Jason Ramsay
05160cae8e Rename fileExtensionMap: fileExtensionMapItem[] to extraFileExtensions: FileExtensionInfo[] 2016-12-09 13:36:43 -08:00
Jason Ramsay
d52894302a Changes due to CR comments 2016-12-08 17:56:08 -08:00
Jason Ramsay
1c3689edef Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-12-07 15:33:42 -08:00
Vladimir Matveev
1418fd170d send begin/end notifications when installing types packages (#12551) 2016-11-29 10:14:22 -08:00
Jason Ramsay
70e130b08c Maintain support for deprecated API typingOptions.enableAutoDiscovery 2016-11-21 18:17:27 -08:00
Jason Ramsay
5a9451ae23 Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable 2016-11-18 18:14:32 -08:00
Jason Ramsay
464bc0e9e0 Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-11-18 16:15:15 -08:00
Jason Ramsay
7dd30dbfd4 tsconfig.json mixed content support 2016-11-18 15:51:28 -08:00
Vladimir Matveev
4c2474463c ports #12237, #12258 and #12259 into master (#12274)
* treat failures to resolve module name as missing packages (#12237)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event (#12258)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event

* use ts.version

* switch to execSync to ensure that no install orders are interleaved (#12259)

* Make sure version is public

* Update file with version string for nightly release
2016-11-15 12:53:46 -08:00
Vladimir Matveev
f13e6d4ca6 enable syntactic features if project size exceeded the limit, send events when state of language service changes (#12190)
* enable syntactic features if project size exceeded the limit, send events when state of language service changes

* allow getting compiler options diagnostics when language service is disabled
2016-11-14 15:10:32 -08:00
Vladimir Matveev
f11e8a3c69 add 'installSuccess' flag to telemetry, cache misses if npm install fails (#12163)
* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
2016-11-14 14:10:22 -08:00
Vladimir Matveev
3b09010c7c enable syntactic features if project size exceeded the limit, send events when state of language service changes 2016-11-11 17:35:11 -08:00
Vladimir Matveev
4ffdea838a Ports #12051 and #12032 into master (#12090)
* use local registry to check if typings package exist (#12014)

use local registry to check if typings package exist

* enable sending telemetry events to tsserver client (#12035)

enable sending telemetry events
2016-11-07 13:36:08 -08:00
Vladimir Matveev
05ebd1d5fb Merge pull request #11651 from Microsoft/vladima/literals-in-protocol
switch enums in protocol to unions of literal types
2016-10-17 15:46:55 -07:00
Vladimir Matveev
92b63fa725 Merge pull request #11550 from Microsoft/vladima/generate-protocol
Automatically generate protocol.d.ts by pulling in necessary dependencies
2016-10-12 14:18:19 -07:00