Commit Graph
22917 Commits
Author SHA1 Message Date
Ron Buckton 4863d55d01 Merge branch 'master' into vfs 2018-04-27 14:03:42 -07:00
Ron Buckton 8424c4d1ab Partial migration of some shared vpath functionality to core 2018-04-27 13:58:45 -07:00
Wesley WighamandGitHub d5ef1174bd Copy consistient valueDeclarations on union/intersection symbols (#23190) 2018-04-27 13:12:35 -07:00
AndyandGitHub bcb5599bf2 Fix typo (#23725) 2018-04-26 16:18:47 -07:00
Nathan Shively-SandersandGitHub 1595f7fe83 Add prettier user test and fix associated crash (#23715)
* Add prettier and fix crash bug

Name resolution would crash when resolving a type name inside a
typedef's property tag.

* Update tsconfig and thefore prettier baseline
2018-04-26 14:03:18 -07:00
Nathan Shively-SandersandGitHub 1541599ea0 Check base type for special property declarations (#23671)
If the base type has a property by that name, add it to the list
constructor types to make it as authoritative as special assignments
found in the constructor.
2018-04-26 08:14:22 -07:00
AndyandGitHub aa102435b3 Fix insertNodeAtClassStart for empty class with comment (#23342) 2018-04-26 08:00:38 -07:00
csigsandGitHub 76e7d91a26 LEGO: Merge pull request 23699
LEGO: Merge pull request 23699
2018-04-25 21:10:40 -07:00
csigs 096f65c05d LEGO: check in for master to temporary branch. 2018-04-26 04:10:18 +00:00
AndyandGitHub cdfd92b90d Don't add import completion from a re-export in "./index" (#23623)
* Don't add import completion from a re-export in "./index"

* Simpler heuristic
2018-04-25 16:15:49 -07:00
AndyandGitHub 4a379d66d4 Use @types/travis-fold (#23694) 2018-04-25 16:15:06 -07:00
Wesley WighamandGitHub 4a6888a850 There exist type parameters with symbols but without TypeParameterDeclaration nodes (#23690)
* There exist type parameters with symbols but without TypeParameterDeclaration nodes

* Add test
2018-04-25 15:53:06 -07:00
AndyandGitHub 4dc4b8d777 Remove unused property 'referencedDiagnostics' (#23688) 2018-04-25 15:24:36 -07:00
Nathan Shively-SandersandGitHub b2bfccfce4 Prototype-property assignment:fix name resolution crash (#23680) 2018-04-25 13:59:40 -07:00
AndyandGitHub 9b05bd5cd7 Remove unnecessary check for ElementAccessExpression#argumentExpression being defined (#23685) 2018-04-25 13:30:34 -07:00
AndyandGitHub 3ebcbd4d44 Handle diagnostic with unknown file (#23681) 2018-04-25 13:11:35 -07:00
Wesley WighamandGitHub ec05f29632 Make signature help node building cancellable (#23543)
* Make token building cancellable

* Scope cancellation token, make find all refs and quickinfo cancellable

* Make completion entry details cancellable

* Actually accept public API update

* Add test verifying cancellations within checker for select language service operations

* Document runWithCancellationToken a bit more

* Add post-cancellation verification to test
2018-04-25 11:44:13 -07:00
AndyandGitHub 583bcea603 Always parse an argument for an ElementAccessExpression (#23683) 2018-04-25 10:08:35 -07:00
AndyandGitHub 5280d23b63 importNameCodeFix: consistently put fixes to use existing imports before fixes for existing imports (#23663) 2018-04-25 08:04:20 -07:00
csigsandGitHub 1f59e6f77a LEGO: Merge pull request 23674
LEGO: Merge pull request 23674
2018-04-24 21:10:41 -07:00
csigs 16c24bd57c LEGO: check in for master to temporary branch. 2018-04-25 04:10:19 +00:00
csigsandGitHub f7a0e0cb42 LEGO: Merge pull request 23668
LEGO: Merge pull request 23668
2018-04-24 15:11:36 -07:00
csigs dfbc842164 LEGO: check in for master to temporary branch. 2018-04-24 22:11:15 +00:00
Sheetal NandiandGitHub ce5d5d8f72 Merge pull request #23636 from Microsoft/getErrWithInferredProject
Fix the crash when reporting errors of file that was referenced by inferred project root, is opened right after closing the root file
2018-04-24 11:33:29 -07:00
Ron Buckton c9c562afac Reorganize and remove duplication 2018-04-24 10:48:55 -07:00
Anders HejlsbergandGitHub 5d67f8ef68 Merge pull request #23645 from Microsoft/distributeKeyofUnion2
Distribute 'keyof' union types (take 2)
2018-04-24 10:09:45 -07:00
AndyandGitHub 59765e2d86 goToDefinition: Also add definitions for symbol if it does not match the signature symbol (#23657) 2018-04-24 09:41:47 -07:00
csigsandGitHub ac519804e0 LEGO: Merge pull request 23658
LEGO: Merge pull request 23658
2018-04-24 09:10:52 -07:00
csigs b72abdb120 LEGO: check in for master to temporary branch. 2018-04-24 16:10:31 +00:00
AndyandGitHub 969aa45ea5 Improve error message for unused type (#23633) 2018-04-24 08:54:42 -07:00
AndyandGitHub eca17ac243 Support import fix even when the error is that a type is used as a value (#23655) 2018-04-24 08:54:14 -07:00
csigsandGitHub b1baca565b LEGO: Merge pull request 23650
LEGO: Merge pull request 23650
2018-04-24 03:11:07 -07:00
csigs 0e5ea2c8f6 LEGO: check in for master to temporary branch. 2018-04-24 10:10:45 +00:00
Ron Buckton bb26ab5556 Merge branch 'master' into vfs 2018-04-23 22:48:48 -07:00
Ron Buckton e422365870 Fix issues with runtests-browser 2018-04-23 21:52:16 -07:00
csigsandGitHub 054a6ff354 LEGO: Merge pull request 23644
LEGO: Merge pull request 23644
2018-04-23 21:10:42 -07:00
csigs 90500e88df LEGO: check in for master to temporary branch. 2018-04-24 04:10:22 +00:00
Anders Hejlsberg f0c3291976 Accept new baselines 2018-04-23 21:09:56 -07:00
Anders Hejlsberg 7befd35009 Add tests 2018-04-23 21:09:49 -07:00
Anders Hejlsberg 2911d5d7d7 Accept new baselines 2018-04-23 20:57:20 -07:00
Anders Hejlsberg 09590bc041 Transform 'keyof (A | B)' to 'keyof A & keyof B' 2018-04-23 20:57:11 -07:00
AndyandGitHub fc30bd10e3 Suggestion to convert to ES6 module should only trigger in projects which express some intent to use ES6 (#23576) 2018-04-23 16:05:37 -07:00
Sheetal Nandi 6ec763884e Fix the crash when reporting errors of file that was referenced by inferred project root, is opened right after closing the root file
Fixes the crash reported in https://github.com/Microsoft/TypeScript/issues/23255#issuecomment-382653325
2018-04-23 15:36:32 -07:00
Nathan Shively-SandersandGitHub 905f9a02ad module.exports = Entity is an alias, just like export = Entity (#23570)
* Make `module.export =` an alias like `export=` is

This breaks a couple of tests for previous workarounds. Fix in upcoming
commits.

* Basically fixes all the breaks, but needs cleanup

* More notes to myself

* Clean up TODOs

* Call mergeSymbolTable and delete export= afterward

instead of basically copying the code myself.

* More cleanup

* Remove unnecessary check in import type checking

* Revert to DIY code.

It is more correct and will go away in a few days.

* Exported class expressions can be used as type

In both JS and TS

* Do not require named class expressions
2018-04-23 15:24:31 -07:00
csigsandGitHub ef8af93329 LEGO: Merge pull request 23635
LEGO: Merge pull request 23635
2018-04-23 15:11:08 -07:00
csigs 1f753b3962 LEGO: check in for master to temporary branch. 2018-04-23 22:10:46 +00:00
AndyandGitHub 222f35d927 Make symbol display at ExportSpecifier use 'export', not 'import' (#23629) 2018-04-23 13:29:14 -07:00
Anders HejlsbergandGitHub 0179d97403 Merge pull request #23592 from Microsoft/improveIndexTypes
Support number and symbol named properties with keyof and mapped types
2018-04-23 13:22:56 -07:00
AndyandGitHub 645258cc7d Allow getting import completion details with misspelled name (#23624) 2018-04-23 11:24:51 -07:00
AndyandGitHub 2e78d1ef21 getEditsForFileRename: Update tsconfig "files" (#23625) 2018-04-23 11:11:06 -07:00