10538 Commits

Author SHA1 Message Date
Wesley Wigham
5484e754e4 Remove extra semicolon 2016-07-13 12:40:37 -07:00
Andy
1546974ea6 Merge pull request #9676 from Microsoft/relative_module
Treat "." and ".." as relative module names
2016-07-13 12:18:14 -07:00
Andy Hanson
df59058812 Fix endsWith bug 2016-07-13 11:47:53 -07:00
Nathan Shively-Sanders
5efbf61c95 Skip this in emitter in 2 more places 2016-07-13 11:42:59 -07:00
zhengbli
606ac0e533 Port #9621 to release-2.0 2016-07-13 11:38:26 -07:00
Zhengbo Li
9eeb69dfbc Merge pull request #9621 from zhengbli/fixJSDocPropertyTag
fix the issue that @property types are not recoganized
2016-07-13 11:32:36 -07:00
Alex Eagle
34e81f2805 Add formatDiagnostics utility 2016-07-13 11:15:09 -07:00
Richard Knoll
574851f526 More PR feedback 2016-07-13 11:00:54 -07:00
Andy Hanson
8e679b7021 Remove duplicate startsWith and endsWith functions 2016-07-13 10:04:21 -07:00
Andy Hanson
e6e6a8b110 Use regex 2016-07-13 09:55:57 -07:00
Andy Hanson
122c47c035 Handle JSX bodies in formatter 2016-07-13 08:15:55 -07:00
Andy Hanson
c90897ccdd Treat "." and ".." as relative module names 2016-07-13 06:51:00 -07:00
Vladimir Matveev
a9ba0a5585 use circular buffer instead of unbounded array 2016-07-12 18:48:41 -07:00
Vladimir Matveev
78974efe18 defer updates in project structure after file is edited 2016-07-12 18:02:54 -07:00
Richard Knoll
fd2caf6e48 Merge remote-tracking branch 'origin/master' into explicitly_included_globs 2016-07-12 11:21:53 -07:00
Richard Knoll
0fe6c55fe3 Merge branch 'master' into explicitly_included_globs 2016-07-12 11:17:42 -07:00
Richard Knoll
e0aca418bc Responding to PR feedback 2016-07-12 11:13:47 -07:00
Andy Hanson
5d37c29dbb Handle JSX bodies in formatter 2016-07-12 09:45:55 -07:00
Vladimir Matveev
bcdb06c4f7 introduce methods that allow to get project without refreshing inferred projects 2016-07-11 20:59:22 -07:00
Yui
48ab0ce07f Change version to 2.1.0 (#9615) 2016-07-11 20:53:12 -07:00
Vladimir Matveev
aea1534704 move saveTo to ScriptInfo 2016-07-11 19:51:14 -07:00
Vladimir Matveev
ac9717dc3d use Logger directly 2016-07-11 19:44:23 -07:00
Wesley Wigham
cfe3aadeb3
Move unittests into harness 2016-07-11 17:42:52 -07:00
Wesley Wigham
fb20df0568
Have tsconfig for harness 2016-07-11 16:36:20 -07:00
Nathan Shively-Sanders
f19844fbe9 Merge pull request #9580 from Microsoft/compile-with-noImplicitThis
Compile with --noImplicitThis
2016-07-11 15:25:44 -07:00
zhengbli
c19512edb5 Add node flag check 2016-07-11 14:57:54 -07:00
Sheetal Nandi
78a1ca7d50 Make setting properties explicit instead of using parameter properties 2016-07-11 14:02:23 -07:00
Nathan Shively-Sanders
fa0fab1523 Merge branch 'release-2.0' of https://github.com/Microsoft/TypeScript into release-2.0 2016-07-11 13:54:22 -07:00
Nathan Shively-Sanders
6414a5721c Remove another use of this, in program.ts 2016-07-11 13:49:36 -07:00
Bill Ticehurst
2f768f622e Merge pull request #9607 from Microsoft/issue9542
Fix #9542 (allow files under node_modules to be included in the compilation).
2016-07-11 13:47:39 -07:00
Vladimir Matveev
09a978538c use indentation from ts.formattting 2016-07-11 13:42:17 -07:00
zhengbli
73f741418f fix the issue that @property types are not recoganized 2016-07-11 13:01:05 -07:00
Nathan Shively-Sanders
4598c13eec Provide a symbol for salsa-inferred class types 2016-07-11 12:51:45 -07:00
Nathan Shively-Sanders
9ae04223e3 Fix multiple Salsa assignment-declarations
Previously, all assignment-declarations needed to be of the same kind:
either all `this.p = ...` assignments or `C.prototype.p = ...`
assignments.
2016-07-11 12:51:24 -07:00
Yui
cfc20a956a [Transforms] Merging Master to Transforms on 06/21 (#9294)
* Initial support for globs in tsconfig.json

* Added caching, more tests

* Added stubs to ChakraHost interface for readDirectoryNames/readFileNames

* Fixed typos in comments

* Changed name of 'reduce' method added to FileSet

* Heavily revised implementation that relies on an updated 'readDirectory' API.

* more tests

* Minor update to shims.ts for forthcoming VS support for globs.

* Detailed comments for regular expressions and renamed some files.

* Comment cleanup

* Fixed new linter warnings

* Add upper limit for the program size, fix readDirectory for the symlink files

* Add comments

* CR feedback / Change upper limit / Add disableSizeLimit compiler option

* online and offline CR feedback

* Don't count current opened client file if it's TS file

* Speed up file searching

* Make language service optional for a project

* Fix failed tests

* Fix project updateing issue after editing config file

* Fixing linter and test errors

* Bringing back excludes error and fixing faulty test

* Fixing lint errors

* Passing regular expressions to native hosts

* Fix merging issues and multiple project scenario

* Refactoring

* add test and spit commandLineParser changes to another PR

* Fix #8523

* check the declaration and use order if both are not in module file

* Type guards using discriminant properties of string literal types

* Fix #9098: report missing function impelementation errors for merged classes and namespaces

* Narrow type in case/default sections in switch on discriminant property

* No implicit returns following exhaustive switch statements

* Narrow non-union types to ensure consistent results

* Add tests

* No Need to store dot token when parsing property access expression

* Added tests.

* Accepted baselines.

* Check tuple types when getting the type node's type.

* Accepted baselines.

* Fix #9173: clear out lib and types before creating a program in transpileModule

* Added tests.

* Accepted baselines.

* Always check type assertion types.

* Clear out unused compiler options when transpiling

* Accepted baselines.

* improve error message for extending interface

* accept baselines

* Use helper functions to simplify range tests

* Remove String, Number, and Boolean from TypeFlags.Falsy

* Add regression test

* Accept new baselines

* Allow property declarations in .js files

* Remove old test

* Do not use Object.assing in test

* Fix comment

* Refactor code to make if statements cheaper

* ignore casing when converting a source file path to relative path

* add tests & add branches for module interface

* Using baselines for transpile unittests (#9195)

* Conver to Transpile unittest to use baselines instead

* Add baselines

* Fix linting error

* use resolveEntityName to find interface

* add new tests for extends interface

* address code style

* Refactor navigation bar

* routine dom update

* Updating readDirectory for tsserverProjectSystem unit tests

* Array#map -> ts.map.

* Responding to PR feedback

* Add conditional index signature for Canvas2DContextAttributes (https://github.com/Microsoft/TypeScript/issues/9244)

* Add libcheck tests

* Add missing worker types

* Accept webworker baselines

* Classify `this` in parameter position as a keyword

* Adding more matchFiles test cases

* Use implicit boolean casts; it doesn't hurt performance

* Use getCanonicalFileName

* export interface used by other exported functions

* Fix from merging with master

* Update tests and baselines from merging with master

* Remove using dotToken as it is no longer needed

* Update baselines from removing dotToken

* Address PR: Add NodeEmitFlags to no indent when emit

* Address PR; and refactor setting NodeEmitFlags for createMemberAccessForPropertyName

* Update baselines
2016-07-11 12:41:12 -07:00
Nathan Shively-Sanders
cc83c799aa Merge pull request #9578 from Microsoft/fix-salsa-out-of-memory-on-methods-returning-this
Provide a symbol for salsa-inferred class types
2016-07-11 11:41:18 -07:00
Nathan Shively-Sanders
a138e6307f Avoid using this in object literals where possible 2016-07-11 11:30:22 -07:00
Nathan Shively-Sanders
135cc12218 Merge pull request #9574 from Microsoft/fix-union-of-salsa-property-types
Fix type union of differing Salsa assignment-properties
2016-07-11 11:29:02 -07:00
Sheetal Nandi
767da71cc1 Add __tokentag to Token 2016-07-11 11:28:14 -07:00
Sheetal Nandi
0764590691 Make sure the order of setting pos, end, flags, parent, kind is consistent among nodes, tokens and identifiers 2016-07-11 11:03:38 -07:00
Nathan Shively-Sanders
a3d9a85546 Add --pretty to tsconfigs 2016-07-11 11:00:06 -07:00
Vladimir Matveev
8ec02c0e77 merge with origin/master 2016-07-11 10:36:05 -07:00
Nathan Shively-Sanders
cf15e825ee Fix this in harness and improve gulpfile defaults 2016-07-11 09:30:58 -07:00
Bill Ticehurst
5f6eb5bb12 Removed duplicate logic
(cherry picked from commit 21bf801c6cd98063ebcbd7439a49c1152717188f)
2016-07-11 09:11:48 -07:00
Bill Ticehurst
f5769875e5 Fixed implicit any
(cherry picked from commit b75053cae3733d0c402a36fab0d7fd2366ed9dc8)
2016-07-11 09:11:47 -07:00
Bill Ticehurst
f8a92611eb fixed lint error
(cherry picked from commit a7467a1d2b5795a1bae38885ee5127cce37a9682)
2016-07-11 09:11:46 -07:00
Bill Ticehurst
5eba2e09fb Fixed the node tracking and a harness bug
(cherry picked from commit 2ab1143f1cb694f43cd2622fc3fddbbe304a805b)
2016-07-11 09:11:46 -07:00
Bill Ticehurst
b360ad5f3c Fix module tracking
(cherry picked from commit ca874bdd17c0c5e5e8b70c0db7bb847e2711b8f3)
2016-07-11 09:11:45 -07:00
Bill Ticehurst
21bf801c6c Removed duplicate logic 2016-07-10 23:07:45 -07:00
Bill Ticehurst
b75053cae3 Fixed implicit any 2016-07-10 21:49:13 -07:00