Commit graph

404 commits

Author SHA1 Message Date
zhengbli 3052913b92 add tests for tsserver project system 2016-06-07 02:14:56 -07:00
Andy Hanson 1fe8a08085 Respond to PR comments 2016-06-06 13:31:37 -07:00
Andy Hanson d9ec5125be Support using string values in enums for CompilerOptions in transpile methods 2016-06-06 11:31:22 -07:00
Yui f619282af1 [Transforms] Update transforms with recent master (#8960)
* Remove check narrowing only certain types, add test showing issues with this

* string literal case test

* Reconcile fix with CFA work

* Defaultable -> NotNarrowable to align with use

* Missed a defaultable in comments

* Add test for narrowing to unions of string literals

* Actually merge from master

* Run fixupParentReferences when parsing isolated jsDocComment

* initial revision of unit test support for project system in tsserver

* Add non-widening forms of null and undefined

* Create separate control flows for property declarations with initializers

* Add regression test

* Add tests

* Remove unused variable

* Add null check and CR feedback

* Revert "Merge pull request #7235 from weswigham/narrow-all-types"

This reverts commit ef0f6c8fe4, reversing
changes made to 9f087cb62a.

* reuse the fixupParentReferences function

* Fix up error from merging with master
2016-06-03 11:02:35 -07:00
Yui e35dd79c04 [Transforms] Update baselines from merging with master round 2 (#8926)
* update baselines from merging with master

* Correctly fix#8786

* Fix up linting errors

* Fix spelling error in comment

* Remove usage of null

* Revert "Remove usage of null"

This reverts commit d9102d1e3f.

* Disable using null in unittest as we use null to signal to not generate baselines

* Remove setting disable comment as we already done so in createCommentWriter

* Address linting

* Fix travis failure

* Fix travis failure
2016-06-02 10:57:28 -07:00
Vladimir Matveev 92177bee91 initial revision of unit test support for project system in tsserver 2016-06-02 00:03:10 -07:00
zhengbli 59b188d4ca Add navigationTo test for jsdoc typedef 2016-05-31 02:05:26 -07:00
Richard Knoll aa5c51c516 Fixing lint errors 2016-05-26 10:17:43 -07:00
Richard Knoll 50f0033e61 Merge branch 'master' into glob2_merged
Conflicts:
	src/compiler/sys.ts
	src/harness/harnessLanguageService.ts
	tests/cases/unittests/cachingInServerLSHost.ts
	tests/cases/unittests/tsconfigParsing.ts
2016-05-26 10:04:54 -07:00
Richard Knoll c340c88706 Bringing back excludes error and fixing faulty test 2016-05-25 17:08:24 -07:00
Richard Knoll db856431e8 Fixing linter and test errors 2016-05-25 17:07:36 -07:00
Richard Knoll 084b94c4c1 Merge branch 'master' into glob2
Conflicts:
	Jakefile.js
	src/compiler/commandLineParser.ts
	src/compiler/core.ts
	src/compiler/sys.ts
	src/harness/harness.ts
	src/server/editorServices.ts
	src/services/shims.ts
	tests/cases/unittests/cachingInServerLSHost.ts
2016-05-25 17:06:50 -07:00
Ron Buckton ee39c4e8d4 Merge branch 'master' into transforms-merge 2016-05-25 14:14:32 -07:00
zhengbli 5f9fa69587 Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
# Conflicts:
#	src/services/services.ts
#	tests/cases/unittests/jsDocParsing.ts
2016-05-24 21:06:00 -07:00
Ryan Cavanaugh 7173fa8d02 Merge pull request #8670 from RyanCavanaugh/fix8275
Automatically consume @types/ folders
2016-05-24 15:23:06 -07:00
Nathan Shively-Sanders 9865b48d0f Remove intentionally unused variables 2016-05-24 11:22:25 -07:00
Nathan Shively-Sanders 3d841b20a7 Lint unit tests via harnessSources in Jakefile.js 2016-05-24 10:17:16 -07:00
Yuichi Nukiyama 4e415ebfd0 add SharedArrayBuffer
fix
2016-05-24 00:41:44 +09:00
Mohamed Hegazy b637d76b49 Merge pull request #8700 from Microsoft/Fix8692
Fix #8692: fix "tsserver as a library" (lssl) build target
2016-05-21 12:24:23 -07:00
zhengbli 6cc1ff102e add unit tests 2016-05-19 17:26:12 -07:00
Mohamed Hegazy 75fa7b174c Code review comments 2016-05-19 15:55:18 -07:00
Mohamed Hegazy f573b1031b lint fixes 2016-05-19 13:31:21 -07:00
Mohamed Hegazy c884fee3eb Remove dependncy on NodeJs from editor services 2016-05-19 13:16:20 -07:00
Ryan Cavanaugh 917ab0aa0a Update test harness 2016-05-18 10:43:44 -07:00
Yui b68e93966a Fix 8482: Add Object.values and Object.entries (#8538)
* Add es2017.Object library file

* Add tests and baselines

* Fix unittest

* Add es2017 lib flag

* Update baselines

* Add tests and baselines

* Address PR: add tests

* Address PR: add tests
2016-05-10 14:22:00 -07:00
Mohamed Hegazy 955cc69c70 Merge pull request #8481 from Microsoft/Fix8470-2
Fix #8470: use ts.normalizePath before checking filename idenity
2016-05-06 16:55:47 -07:00
zhengbli 66476e3a4d Add test for explicitly added dotted files 2016-05-06 11:03:45 -07:00
zhengbli 076fe48c3a Add unit tests for tsconfig file list parsing 2016-05-05 14:49:41 -07:00
Mohamed Hegazy 33abdadbeb Fix #8470: use ts.normalizePath before checking filename idenity 2016-05-05 11:22:12 -07:00
Nathan Shively-Sanders f8ab1a5ca6 Merge branch 'master' into transforms 2016-04-18 13:27:33 -07:00
zhengbli a3d74ad550 Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
# Conflicts:
#	src/compiler/diagnosticMessages.json
#	src/services/services.ts
2016-04-13 16:57:35 -07:00
zhengbli 2945f64e3b Add tests for renaming and incremental parsing. Changed how the AST was hydrated
with jsdocComment nodes.
2016-04-13 16:45:06 -07:00
Vladimir Matveev 1a85c5f54c fix issue with optionality of CompilerHost 2016-04-10 20:42:22 -07:00
Vladimir Matveev e5e7d47782 merge with origin/master 2016-04-08 14:38:47 -07:00
Nathan Shively-Sanders 3704ad74d1 Merge pull request #6739 from Microsoft/this-function-types
This function types
2016-04-07 10:31:01 -07:00
Ron Buckton 4ead44db9b Revert to old emit for metadata. Also adds baselines support for transpiler tests.
Fixes #7878.
2016-04-06 18:59:54 -07:00
Vladimir Matveev e2a23fd598 remove compilationRoot parameter, use typesRoot/config file location as a root when computing primary locations 2016-04-05 16:33:11 -07:00
Vladimir Matveev 86a51cbe24 update baselines in unittests, fix linter issues 2016-04-05 09:32:09 -07:00
Yui 11887ccc29 Adjustmodularize lib
* Merge array, function, math, number, object, regexp, string into es2015.core

* Update baselines

* Add node.d.ts; need to fix head of the output

* Update unittests from add node as an option for --lib

* Move interface declaration into NodeJS namespace

* Add console into Node.d.ts

* Add compiler baseline-tests for using --lib node

* Change name from full.es2015 to es6. This is a es6 library file used when no --lib is specified and --target is es6

* Remove add node.d.ts into src/lib

Remove node.d.ts

Revert "Update unittests from add node as an option for --lib"

This reverts commit 5169273680.

Revert "Add compiler baseline-tests for using --lib node"

This reverts commit 17e437b4c7.
2016-04-04 22:02:12 -07:00
Vladimir Matveev 12d90f3be9 added tests 2016-04-01 12:41:45 -07:00
Nathan Shively-Sanders ce68932475 Merge branch 'master' into this-function-types 2016-03-31 10:46:03 -07:00
Yui 68bdbe04e7 Merge pull request #7715 from Microsoft/6974AddLibImplementation
6974 add lib implementation
2016-03-30 14:22:41 -07:00
Kanchalai Tanglertsampan 7e1470d5d4 Address PR: use getDefaultLibLocation? insteadof getUserDefinedLibFileName 2016-03-28 16:24:16 -07:00
Kanchalai Tanglertsampan 623eef6968 Update unittest for --lib 2016-03-28 14:20:54 -07:00
Kanchalai Tanglertsampan 3fef5ba458 Implement --lib flag in the compiler and harness 2016-03-28 14:20:29 -07:00
Nathan Shively-Sanders 9e5f26048b Merge branch 'master' into this-function-types 2016-03-28 10:12:25 -07:00
Yuichi Nukiyama b16f8e1be4 Throw error when tsconfig.json has excludes without exclude property 2016-03-28 21:23:59 +09:00
Anders Hejlsberg 3853bb86d0 Merge pull request #7140 from Microsoft/strictNullChecks
Non-nullable types
2016-03-21 16:52:43 -07:00
Anders Hejlsberg 413d9a639f Merge branch 'master' into strictNullChecks
Conflicts:
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.symbols
	tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.symbols
2016-03-21 16:21:02 -07:00
Ron Buckton 92fbe6b231 Added environment variable support to tests 2016-03-21 11:58:34 -07:00
Vladimir Matveev 497b4c341c revert changes in the signature of 'convertCompilerOptionsFromJson' 2016-03-19 20:59:32 -07:00
Ron Buckton 3c344987de Merge branch 'master' into transforms 2016-03-18 17:13:55 -07:00
Kanchalai Tanglertsampan 9e2df0459e Address PR 2016-03-16 16:35:51 -07:00
Kanchalai Tanglertsampan f7a55fa5a2 Remove --lib 2016-03-16 14:08:49 -07:00
Kanchalai Tanglertsampan 92bee6a533 Unify error message for custom-type compiler option 2016-03-16 13:49:36 -07:00
Kanchalai Tanglertsampan 4d915e59d9 Using ts.filter instead of just .filter 2016-03-15 17:04:18 -07:00
Kanchalai Tanglertsampan 95b43dac29 Handle default compiler-options and typing-options 2016-03-15 16:30:11 -07:00
Kanchalai Tanglertsampan f4e920e2c1 Add unittest for testing convert compiler-options and typing-options 2016-03-15 11:45:21 -07:00
Kanchalai Tanglertsampan 157b8e7456 Add a new unittest for command line parsing for --lib 2016-03-15 11:44:33 -07:00
Anders Hejlsberg b497243f90 Merge branch 'master' into strictNullChecks 2016-03-14 16:31:29 -07:00
Kanchalai Tanglertsampan c7df7770cd Add unittest for parsing --lib in tsconfig 2016-03-14 15:53:57 -07:00
Vladimir Matveev 2b2092b1a2 find module augmentations in preprocessor 2016-03-14 13:30:38 -07:00
Nathan Shively-Sanders fa22250110 Merge branch 'master' into this-function-types 2016-03-09 13:36:42 -08:00
Anders Hejlsberg cf9e08b75c Merge branch 'master' into strictNullChecks
Conflicts:
	src/compiler/checker.ts
2016-03-09 13:00:59 -08:00
Anders Hejlsberg ed958119a1 Fix unit test 2016-03-03 11:18:33 -08:00
Bill Ticehurst cbd7336914 Changed how parserContextFlags are handled in tests
(cherry picked from commit b5da80202f)
2016-03-01 11:08:40 -08:00
Bill Ticehurst 086fb0ee0a Fix failing JSDocParser tests
(cherry picked from commit ae27b89847)
2016-03-01 11:07:08 -08:00
Ron Buckton b1d88282ce Remove transformCompatibleEmit flag and make it the default. 2016-02-29 13:29:03 -08:00
Josh Soref bb85817d7d spelling fixes for src
Fixes:
* actual
* algorithm
* analyze
* applies
* collapse
* contrast
* definition
* diagnostic
* different
* displayed
* display
* documentation
* finite
* function
* highlight
* initialize
* intentional
* interface
* invariants
* items
* keystroke
* language
* literal
* original
* output
* position
* receive
* recorder
* response
* sequence
* simplicity
* statement

Changing a \ to a /
2016-02-25 20:08:44 +00:00
Nathan Shively-Sanders e7aa7e4958 Merge branch 'master' into this-function-types 2016-02-16 13:57:25 -08:00
Vladimir Matveev 9960064bc3 classic resolution: don't perform folder walk if module name is relative 2016-02-12 16:30:19 -08:00
Vladimir Matveev 7d2ce0f5c1 fix falling tests and linter issues
(cherry picked from commit 7404b901b9)
2016-02-11 14:23:01 -08:00
Bill Ticehurst e4462975c8 Fixed up paths in fourslash tests
(cherry picked from commit ed1eb2b274)
2016-02-11 14:07:35 -08:00
Ron Buckton f8e574f1d6 Added ArrayKind, moved createNode, changed JSDocParsing tests to use baselines. 2016-02-04 15:01:31 -08:00
Nathan Shively-Sanders 8032b06f33 Merge branch 'master' into this-function-types 2016-02-02 16:16:46 -08:00
Vladimir Matveev f94c7202d2 update baselines 2016-02-01 15:54:14 -08:00
Vladimir Matveev b0b0712c73 suppress validation of output paths in transpile scenarios 2016-02-01 10:36:47 -08:00
Nathan Shively-Sanders a4f1154377 Fix free function bug in cachingInServerLSHost 2016-01-29 14:51:35 -08:00
guybedford 94fe3e0fb2 set __moduleName from context.id argument 2016-01-29 18:42:23 +02:00
Vladimir Matveev 8a8ed0a871 update implementation based on the results of design meeting 2016-01-25 11:49:26 -08:00
Vladimir Matveev cb3e93f75b Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2016-01-24 19:57:13 -08:00
Vladimir Matveev 3d4e2203b8 merge with origin/master 2016-01-06 14:16:56 -08:00
Ryan Cavanaugh 5eb1cc44f6 Merge remote-tracking branch 'upstream/master' into jsDoc2 2016-01-06 13:51:45 -08:00
Ryan Cavanaugh e223b2e53c Clean up unrelated changes 2016-01-06 12:47:26 -08:00
Vladimir Matveev 36af815bba add optional 'directoryExists' method to hosts to reduce amount of disk probings that are known to fail 2016-01-06 12:37:52 -08:00
Vladimir Matveev 73c94d07a5 Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2016-01-05 13:34:48 -08:00
Vladimir Matveev dbe8489087 Revert "Merge pull request #6098 from guybedford/master"
This reverts commit 996f16940e, reversing
changes made to 51fd41b0c7.
2016-01-05 10:40:24 -08:00
Ron Buckton cde12efec5 Merge branch 'master' into glob2 2016-01-04 12:24:44 -08:00
Vladimir Matveev 39a50fa8a3 merge with origin/master 2016-01-04 12:07:26 -08:00
Mohamed Hegazy 996f16940e Merge pull request #6098 from guybedford/master
Naive implementation for #6097
2016-01-04 09:38:27 -08:00
Vladimir Matveev c06be3a279 Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2015-12-21 09:21:35 -08:00
vladima 532786801b Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2015-12-18 21:13:04 -08:00
Daniel Rosenwasser 287b316937 Addressed CR feedback. 2015-12-17 22:00:04 -08:00
Daniel Rosenwasser f625317709 Added missing require for 'session' tests that relied on 'harness.ts'. 2015-12-17 17:04:53 -08:00
Ron Buckton d23df3430e Detailed comments for regular expressions and renamed some files. 2015-12-16 15:49:31 -08:00
Ron Buckton 94a5327e9a more tests 2015-12-16 13:42:17 -08:00
Ron Buckton 247657ffb5 Merge branch 'master' into glob2 2015-12-14 18:13:56 -08:00
Ron Buckton d8572508ee Heavily revised implementation that relies on an updated 'readDirectory' API. 2015-12-14 15:21:12 -08:00
guybedford a805b6d8c3 update System.register baseline with __moduleName output 2015-12-14 22:31:24 +02:00
vladima a81c875f3e Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2015-12-11 09:29:20 -08:00