303 Commits

Author SHA1 Message Date
Andy
d052bb83ca Add project telemetry (#16050)
* Add project telemetry

* Respond to some PR comments

* Wrap event in a TelemetryEvent payload

* Replace paths with empty string instead of removing them entirely

* Add "version" property to payload

* Add telemetry for typeAcquisition settings

* Add "files", "include", "exclude", and "compileOnSave"

* Convert typingsOptions include and exclude to booleanss

* Add "extends", "configFileName", and "projectType"

* configFileName: Use "other" instead of undefined

* Add "languageServiceEnabled" telemetry
2017-05-25 13:30:27 -07:00
Andy Hanson
f94818da36 Also convert ClassificationTypeNames and CommandTypes/CommandNames 2017-05-22 10:40:59 -07:00
Ryan Cavanaugh
f6fbe61718 Refactoring support (squash) 2017-05-19 10:45:49 -07:00
Ryan Cavanaugh
ab3ffa22da Add flag to allow local plugin loading 2017-05-17 19:52:57 -07:00
Mohamed Hegazy
0736d8e3d0 Merge pull request #15283 from Microsoft/Fix15237
Return Diagnostic.category from the server
2017-04-20 14:20:13 -07:00
Mohamed Hegazy
24814ec387 Merge pull request #15260 from Microsoft/Fix15200
Fix #15200: Query for semantic errors on .js files with '@ts-check' with no config file
2017-04-20 13:46:52 -07:00
Mohamed Hegazy
5d7c75d88d Add a source property on Diagnostic 2017-04-20 13:22:55 -07:00
Mohamed Hegazy
420908eb63 Change function name and clarify comment 2017-04-19 17:47:51 -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
Mohamed Hegazy
92d592c23d Update logic for shouldSkipSemanticCheck to allow for quering semantic errors for JS files with @ts-check 2017-04-18 16:19:28 -07:00
Arthur Ozga
cbbf6f8847 Merge branch 'master' into tripleEquals 2017-04-17 15:57:51 -07:00
Ryan Cavanaugh
3cc379c3c0 Fix merge 2017-04-13 16:16:57 -07:00
Zhengbo Li
11ac006d60 Fix issue that randomly closes configured projects (#15080)
* Fix issue that randomly closes configured projects

* Correct the default project selection
2017-04-11 14:25:32 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -07:00
Ryan Cavanaugh
e3bb5d3f28 Update linting to avoid typechecking for booleanTriviaRule 2017-04-04 22:34:51 -07:00
Arthur Ozga
7e03429a8e enforce triple-equals 2017-04-04 15:51:13 -07:00
Mine Starks
9c9b659f44 Merge pull request #14960 from minestarks/master
Expose JSDoc tags through the language service
2017-04-03 11:29:38 -07:00
Andy Hanson
130a24015a Fix options for typedef-whitespace lint rule 2017-04-03 09:38:37 -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
Mohamed Hegazy
8ea961714b Merge remote-tracking branch 'origin/master' into checkJSFiles 2017-03-27 21:23:26 -07:00
Jason Ramsay
d20cebf998 Merge branch 'master' into CancellationChecksForLowPriorityTasks 2017-03-27 14:49:41 -07:00
Mohamed Hegazy
e630ab1a31 Report semantic errors for JS files if checkJs is enabled 2017-03-27 14:20:00 -07:00
Bill Ticehurst
25d8367aaf Suppress semantic errors in JS only configured projects
(cherry picked from commit 4ee8bdb762f870351da9be51d13dae6c9328e72f)
2017-03-24 11:58:14 -07:00
Mohamed Hegazy
a710e9433b Do not report semantic diagnostics for infered and external projects with only .js files 2017-03-17 17:20:43 -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
2b10611fbf initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer (#14441)
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00
Andy Hanson
3bc125463b Add more missing semicolons 2017-03-03 07:00:52 -08:00
Jason Ramsay
21ef9078ad Wrapping LSHost's cancellationtoken with a throttle 2017-02-24 17:14:04 -08:00
Vladimir Matveev
359823b4be ignore request for codefixes with no error codes (#14215) 2017-02-21 13:59:33 -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
bb71dcdde8 add projectUsesOutFile field to protocol.CompileOnSaveAffectedFileListSingleProject (#13915) 2017-02-08 11:01:32 -08:00
Andy Hanson
16bdaaa0a6 Fix positionToLineOffset conversion for getImplementation 2017-01-25 12:53:39 -08:00
Andy Hanson
30462e11ef Merge branch 'master' into map5 2017-01-11 12:24:47 -08:00
Andy Hanson
8c5afd7f54 Merge branch 'master' into map5 2017-01-06 13:03:34 -08:00
Joel Day
3a9a136e51 Changes based on feedback.
Whitespace cleanup.
Switching back to protocol.ts and reenabling stripInternal.
Marking internal symbols indirectly exported by dependencies of protocol.ts as internal.
2017-01-04 15:56:16 -08:00
Andy Hanson
9e33585a80 Merge branch 'master' into map5 2016-12-27 12:56:05 -08:00
Vladimir Matveev
e68161adfa when language service is disabled - build program using only open files (#12809) 2016-12-13 13:21:32 -08:00
Andy Hanson
55fc62bc45 Merge branch 'master' into map5 2016-12-12 07:50:09 -08:00
Vladimir Matveev
7da3383504 do not use ScriptVersionCache for closed files (#12777) 2016-12-08 16:17:42 -08:00
Andy Hanson
6b1cc8972d Use native maps when they're available 2016-12-08 06:40:31 -08:00
Vladimir Matveev
c1ec7eff08 remove projects that were no present in the input list in openExternalProjects (#12699)
remove projects that were no present in the input list in openExternalProjects
2016-12-06 16:44:46 -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
Andy Hanson
12f6dcefa1 Revert "Merge pull request #11354 from Microsoft/map4"
This reverts commit adfdae0dc47db5ad8248d26929a7b31cb895a539, reversing
changes made to aad663cebf6a89f7029af57d8cb6a0a011854978.
2016-10-27 15:50:21 -07:00
Andy Hanson
a11838215c Merge branch 'master' into map4 2016-10-19 13:16:55 -07:00
Andy Hanson
6814c1d883 Forbid unused locals/parameters anywhere 2016-10-19 08:27:49 -07:00
Andy Hanson
f828bc3fae Merge branch 'master' into map4 2016-10-18 09:07:00 -07:00
Vladimir Matveev
121f51e552 Merge pull request #11694 from Microsoft/vladima/reload-tmp
allow reload from temp files
2016-10-17 23:20:39 -07:00
jramsay
68c485d9f9 Merge pull request #11686 from Microsoft/AddIsSemanticToGetDiagnosticsWorker
TSServer: Add isSemantic check to getDiagnosticsWorker
2016-10-17 22:10:59 -07:00