Commit Graph
1172 Commits
Author SHA1 Message Date
Cyrus Najmabadi acbcd6c77f Merge branch 'master' into diagnosticsOrganization 2015-02-05 17:30:27 -08:00
jramsay dc06b2f6de Merge pull request #1952 from Microsoft/jasonra-disallowRenameForStandardTSLib
Disallow rename for elements that are defined in the standard TypeScript...
2015-02-05 17:21:22 -08:00
Jason Ramsay 987dab9c9e addressing CR comments 2015-02-05 16:05:54 -08:00
Cyrus Najmabadi 66a363f449 Simplify the API for emitting and reporting exit statuses to callers. 2015-02-05 15:50:18 -08:00
Cyrus Najmabadi ea4e3de91c Remove unnecessary diagnostics split on SourceFile. 2015-02-05 13:38:11 -08:00
Jason Ramsay 953e568d9e Disallow rename for elements that are defined in the standard TypeScript library. 2015-02-05 13:32:33 -08:00
Cyrus Najmabadi 493327af34 Fix language service handling of diagnostics. 2015-02-05 02:10:36 -08:00
Cyrus Najmabadi 337a99f62a Change the API for getting diagnostics so that all calls go through a Program instance. 2015-02-05 01:47:29 -08:00
Cyrus Najmabadi b12be3db19 Remove dependency from the typechecker to the compiler host.
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains.  Now
we don't concatenate them up front.  Instead, we just store the message chain
in the diagnostic itself.  Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Cyrus Najmabadi bb307f8163 Simplify the API for emitting code from the Program instance. 2015-02-04 16:53:14 -08:00
Paul van Brenk 40824ed8a5 Added templates, assignement and arrays + tests. 2015-02-04 16:40:22 -08:00
Cyrus Najmabadi b6d083fa40 Do not publicly expose a way on a Program instance to get typecheckers with differing behavior.
Now, you can only get the non-diagnostics, pull-type-checker from the Program instance.
If you want diagnostics, you simply ask the Program instance for the diagnostics you want.
2015-02-04 16:11:38 -08:00
Cyrus Najmabadi 5b049feb36 Hide the diagnostic producing methods from TypeChecker.
Instead, consumers should get these diagnostics through the Program instance.
2015-02-04 14:29:25 -08:00
Paul van Brenk ece874fde3 Merge branch 'master' into LessAggresiveCompletionList 2015-02-04 14:03:49 -08:00
Paul van Brenk 6e35f79412 Add builder support for variable declarations + test cases. 2015-02-04 14:03:26 -08:00
Cyrus Najmabadi c7160ddb31 Rename semanticDiagnostics to bindDiagnotics. 2015-02-04 13:31:36 -08:00
Mohamed Hegazy 784dda5229 Merge pull request #1904 from Microsoft/changeLSDefaultTarget
Change the default LS target to ES5 from ES6
2015-02-04 09:25:24 -08:00
Paul van Brenk e233da0fd6 Parameter destructuring + tests 2015-02-03 18:03:40 -08:00
Paul van Brenk d9f678fd6d Rename the isBuilder property to something more meaningful. 2015-02-03 16:31:53 -08:00
Cyrus Najmabadi 95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Paul van Brenk 62bc9df899 Support for destructuring + test case. 2015-02-03 14:26:32 -08:00
Paul van Brenk f8adf4ef9c Merge branch 'master' into LessAggresiveCompletionList 2015-02-03 12:04:07 -08:00
Paul van Brenk 3b0f8f67dd Added comments and some additional cases 2015-02-03 11:37:52 -08:00
Vladimir Matveev 288e38fa36 merge with master 2015-02-03 11:26:39 -08:00
Vladimir Matveev c095bb356c [format on keystroke]added comment to the verification of preceding token 2015-02-03 10:17:11 -08:00
Vladimir Matveev 889264f457 ensure that autoformat is triggered by token characters 2015-02-02 22:21:41 -08:00
Mohamed Hegazy 091038eca1 Change the default LS target to ES5 from ES6 2015-02-02 19:15:43 -08:00
Paul van Brenk 5166d09d42 Merge branch 'master' into LessAggresiveCompletionList 2015-02-02 17:36:32 -08:00
Mohamed Hegazy 79a1457491 Ensure that all LS requests are to an exiting soruceFile, and if we fail throw an exception 2015-01-30 18:28:15 -08:00
Mohamed Hegazy 9a6e3ad52d Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-01-30 16:29:45 -08:00
Daniel Rosenwasser ab9ce1e9e6 Merge pull request #1873 from Microsoft/bumpTo1.5
Bump version to 1.5 (compiler)/0.5 (services)
2015-01-30 15:22:05 -08:00
Daniel Rosenwasser 394d6f4f0e Bump version to 1.5. 2015-01-30 12:17:18 -08:00
Paul van Brenk a9245d700f Merge branch 'master' into LessAggresiveCompletionList 2015-01-29 23:01:28 -08:00
Vladimir Matveev a5ce3e126d Merge pull request #1792 from Microsoft/getScriptLexicalStructureWithbindingPatterns
handle binding patterns correctly when getting script lexical structure
2015-01-29 19:42:26 -08:00
Mohamed Hegazy bacc4a7095 Merge pull request #1672 from DickvdBrink/investigate-unused-code
Investigate unused code
2015-01-29 11:29:18 -08:00
Mohamed Hegazy 9f977af9cc Shorten library to lib in getDefaultLibFilePath for consistency 2015-01-29 11:22:00 -08:00
Mohamed Hegazy fd3562b60f Update ServicesVersion 2015-01-28 17:13:26 -08:00
Mohamed Hegazy d593902d5e Add documentation to DocumentRegistry 2015-01-28 11:28:34 -08:00
Mohamed Hegazy e503f38272 Remove unused IScriptSnapshot.getLineStartPositions 2015-01-28 10:48:21 -08:00
Mohamed Hegazy fe836c5639 make documentRegistry optional argument to createLanguageService 2015-01-28 10:37:35 -08:00
Mohamed Hegazy d6decf82e1 Expose underlying program from the LS 2015-01-28 00:13:28 -08:00
Mohamed Hegazy 9628191a14 Allow the LS API to resolve referenced files 2015-01-28 00:08:05 -08:00
Mohamed Hegazy 1945e119f2 remove unused file 2015-01-27 21:39:01 -08:00
Mohamed Hegazy 1f9132259a Merge branch 'master' into LSAPICleanup 2015-01-27 20:12:13 -08:00
Mohamed Hegazy 04d8f5af12 Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-01-27 20:11:16 -08:00
Sheetal Nandi a43bb47d7b Merge pull request #1697 from Microsoft/docCommentUnion
Fixes the duplicate doc comment display in case of union property
2015-01-27 14:21:39 -08:00
Sheetal Nandi 1638ae7518 Updated comments and formatting as per review feedback. 2015-01-27 10:52:40 -08:00
Mohamed Hegazy 0257acebd3 Respond to code review comments 2015-01-26 16:45:34 -08:00
Vladimir Matveev 17b19bf465 Merge pull request #1779 from Microsoft/scopeOfUnionProperties
handle union properties in when doing getOccurences\findAllReferences
2015-01-26 15:21:48 -08:00
Vladimir Matveev f4ca318c39 add binding elements from variable declaration into script lexical structure 2015-01-24 00:17:55 -08:00