Commit graph

337 commits

Author SHA1 Message Date
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
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
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
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
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
Daniel Rosenwasser c8baadfbc2 Updated unit test. 2015-12-08 17:49:29 -08:00
Vladimir Matveev 2dbf621e97 merge with origin/master, add trace message with type of 'typings' field is not 'string' 2015-12-07 11:40:35 -08:00
Tim Perry 384ee18c7b Gracefully handle errors where 'typings' is not a string (fixes #4828) 2015-12-07 18:25:25 +01:00
Vladimir Matveev 62370a0d08 addressed PR feedback 2015-11-25 16:41:09 -08:00
Vladimir Matveev cccdd44c3d merge with master 2015-11-24 16:02:42 -08:00
Wesley Wigham 044ff46ed8 fix transpile unit tests 2015-11-23 15:16:10 -08:00
Vladimir Matveev 6bed1ba53a merge with master 2015-11-19 21:11:57 -08:00
Vladimir Matveev d2fd6437d7 initial implementation of path mapping based module resolution 2015-11-18 21:46:45 -08:00
Sheetal Nandi a19307d533 Merge branch 'master' into jsFileCompilation 2015-11-18 11:26:58 -08:00
Vladimir Matveev a26d89d7a2 addressed PR feedback 2015-11-16 23:44:07 -08:00
Vladimir Matveev 33fc598a8a clean residual state in binder and emitter, clean test data in version cache test 2015-11-16 23:24:25 -08:00
Sheetal Nandi 1ee5022350 Change the api for node name resolver to take compiler options instead of supportedExtensions 2015-11-16 11:49:26 -08:00
Vladimir Matveev 078ed3f485 use normalized absolute file names when doing consistency check 2015-11-16 09:49:58 -08:00
Sheetal Nandi fc07763499 Merge branch 'master' into jsFileCompilation 2015-11-13 13:44:57 -08:00
Ryan Cavanaugh e630ce247b Fix merge problems from master 2015-11-09 12:49:36 -08:00
Ryan Cavanaugh 7dd1bf487d Merge branch 'master' into javaScriptModules
# Conflicts:
#	lib/lib.es6.d.ts
#	lib/tsc.js
#	lib/tsserver.js
#	lib/typescript.d.ts
#	lib/typescript.js
#	lib/typescriptServices.d.ts
#	lib/typescriptServices.js
#	src/compiler/binder.ts
#	src/compiler/checker.ts
#	src/compiler/parser.ts
#	src/compiler/program.ts
#	src/harness/fourslash.ts
2015-11-06 16:49:09 -08:00
Ryan Cavanaugh d880d4f4fb Don't look for .js files when resolving node modules 2015-11-06 14:38:29 -08:00
Sheetal Nandi 4c842591f7 Merge branch 'master' into jsFileCompilation 2015-11-06 12:39:42 -08:00
Sébastien Arod 638e4b758a Use regex for repacing comments content.
Use space for indents
2015-11-01 15:31:16 +01:00
Sébastien Arod 00b389d477 New commit using TS scanner.
This commit uses TS scanner and replaces comments token text
by whitespaces to preserve orginal positions.
2015-10-31 23:17:46 +01:00
Sheetal Nandi b217b8b620 Merge branch 'master' into jsFileCompilation 2015-10-30 09:34:32 -07:00
Sébastien Arod f5e73ab8bf Fix handling of escaped characters in string 2015-10-29 14:55:23 +01:00
Sébastien Arod b60d88fa80 Allow comments in tsconfig.json issue #4987 2015-10-29 12:56:13 +01:00
Sheetal Nandi 2d3a345fd3 Since there arent any user given extensions, have extensions start with "." like before 2015-10-28 16:24:53 -07:00
Sheetal Nandi 45b995d030 Remove extensions doesnt need to depend on compiler options any more 2015-10-28 15:45:00 -07:00
Vladimir Matveev f5d4aa7d9c addressed PR feedback (change command line flag description), added tests 2015-10-27 13:27:51 -07:00
Ryan Cavanaugh eda6eca3c7 Merge remote-tracking branch 'upstream/master' into javaScriptModules 2015-10-19 13:53:52 -07:00
Ryan Cavanaugh 61b71008d7 Remove obsolute AMD logic from reference preprocessing in services 2015-10-16 17:35:43 -07:00
Vladimir Matveev b8a3564d28 use absolute path as key to store files, correctly handle scenarios when file names differ only in casing 2015-10-15 14:43:51 -07:00
Sheetal Nandi acf7de7d34 Merge branch 'master' into tscJsFiles 2015-10-15 12:30:55 -07:00
Zhengbo Li 8864b06cbf Merge pull request #5127 from zhengbli/newAddDirectoryWatcher
Add directory watcher for tsserver and tsc
2015-10-14 17:43:10 -07:00
Ryan Cavanaugh 1a36fce4c2 JavaScript LS scaffolding + JS module inference 2015-10-14 17:36:03 -07:00
Vladimir Matveev 4ccf630f63 merge with master 2015-10-12 13:45:06 -07:00
Sheetal Nandi 2c3c321593 Merge branch 'master' into tscJsFiles 2015-10-08 14:40:40 -07:00
Sheetal Nandi f7b72047f0 Remove extension for emitting output should remove any of supported extensions + js/jsx to get the dts file 2015-10-08 14:26:40 -07:00
Vladimir Matveev fb1d2cf42c address PR feedback 2015-10-07 15:48:53 -07:00
Vladimir Matveev 75af4f70b6 transpile text as tsx if jsx option is specified 2015-10-07 10:37:28 -07:00
zhengbli 9ed5b4c435 more test fixes 2015-10-06 13:10:03 -07:00
Sheetal Nandi b580c5588e Merge branch 'master' into tscJsFiles 2015-10-05 16:42:37 -07:00
Vladimir Matveev bfa390e09e Merge pull request #4989 from Microsoft/relativeModuleNamesInImports
record resolution for relative file name if file was found via absolu…
2015-09-29 10:17:43 -07:00
Vladimir Matveev e53646a0cd harden the implementation of Program.getSourceFile to handle all relative file names correctly 2015-09-27 13:32:13 -07:00
Vladimir Matveev dae5a626da record resolution for relative file name if file was found via absolute name 2015-09-26 21:29:07 -07:00
Colin Snover f3969048c5 Put AMD dependency list inline with define call in UMD modules
Fixes #4952.
2015-09-25 23:57:47 +00:00
Vladimir Matveev d57ceb1d32 extend the list of extensions for module file names in node_modules folder 2015-09-21 16:10:03 -07:00
Sheetal Nandi c30104e3b6 Add option --jsExtensions to handle extensions to treat as javascript
- Command line now takes --jsExtension multiple times or comma separated list of extensions
- tsconfig accepts array of extension strings
2015-09-21 15:39:53 -07:00
Sheetal Nandi bc48c7c9f0 Merge branch 'master' into tscJsFiles 2015-09-16 11:38:11 -07:00
Daniel Rosenwasser ad8bcfabdc handeles -> handles 2015-09-15 15:18:24 -07:00
Sheetal Nandi 885babc9bc Merge branch 'master' into tscJsFiles 2015-09-14 12:40:47 -07:00
Vladimir Matveev a880be1f75 resolve merge conflicts, update tests 2015-09-10 21:53:49 -07:00
Vladimir Matveev 98f31635f8 Check if imported file is a proper external module 2015-09-10 21:46:03 -07:00
Vladimir Matveev 4b5c2fe31c reattach file diagnostics for modified files when reusing program structure 2015-09-10 21:29:52 -07:00
Vladimir Matveev 87e1569d1f resolve merge conflicts, update tests 2015-09-10 17:00:29 -07:00
Vladimir Matveev 04949a005c Merge remote-tracking branch 'origin/master' into properExternalModules 2015-09-10 16:42:17 -07:00
Vladimir Matveev e0c16b4332 Check if imported file is a proper external module 2015-09-10 16:00:44 -07:00
Mohamed Hegazy 7e1739604a Fix #4727: prerocess export import declarations correctelly 2015-09-10 13:24:45 -07:00
Vladimir Matveev 6e24570135 reattach file diagnostics for modified files when reusing program structure 2015-09-10 10:46:39 -07:00
Sheetal Nandi 279018d49c Baseline updates 2015-09-10 09:44:04 -07:00
Vladimir Matveev e484305c98 allow backslashes in fileName argument of the transpile function 2015-09-03 13:31:57 -07:00
Vladimir Matveev 9a78b66068 allow backslashes in fileName argument of the transpile function 2015-09-03 09:25:43 -07:00
Mohamed Hegazy ab6fe49d56 Merge branch 'master' into moduleResolutionStrategies
Conflicts:
	src/compiler/diagnosticMessages.json
2015-08-24 15:46:06 -07:00
Sheetal Nandi 2defe94b1f Added test for transpilation with emitting of metadata and decorator 2015-08-24 12:47:39 -07:00
Vladimir Matveev 8cc7953941 use \r\n as default new line in transpile 2015-08-21 11:57:07 -07:00
Vladimir Matveev 4f25efbd79 simplify module resolution tests 2015-08-21 10:57:36 -07:00
Vladimir Matveev dde7545d34 address PR feedback 2015-08-20 16:13:49 -07:00