Commit Graph
16677 Commits
Author SHA1 Message Date
csigs 5b2f4ac380 LEGO: check in for master to temporary branch. 2018-04-21 04:10:23 +00:00
csigs ec0e04f853 LEGO: check in for master to temporary branch. 2018-04-20 22:10:46 +00:00
AndyandGitHub 699ea246ff Skip arrow functions in checkAndReportErrorForMissingPrefix (#23584) 2018-04-20 15:02:18 -07:00
AndyandGitHub 5c94bef0e1 Add 'renameFile' command to services (#23573)
* Add 'renameFile' command to services

* renameFile -> getEditsForFileRename

* Support `<reference path>` directives
2018-04-20 13:43:09 -07:00
Nathan Shively-SandersandGitHub e65681a2b7 Fix assert in getjsdochost (#23575)
* Fix assert in getJSDocHost

* Update public API to add wider type

* Remove now-unnecessary type assertion
2018-04-20 10:41:58 -07:00
AndyandGitHub 22f2b118b7 Add 'triggerCharacter' option for completions requests (#23491)
* Add 'triggerCharacter' option for completions requests

* mhegazy code review

* More code review

* Handle '<' in comment
2018-04-20 10:25:58 -07:00
Mohamed HegazyandGitHub 2826bc72b8 Merge pull request #23470 from JoshuaKGoldberg/standardized-non-pretty-newlines
Adjusted newlines in non-pretty output for consistency
2018-04-20 10:01:03 -07:00
AndyandGitHub 18c3f5ffa0 Use getFirstConstructorWithBody in one more place, and simplify other class members iteration (#23567) 2018-04-20 09:43:38 -07:00
AndyandGitHub 94cc59ca60 Support getting JSDoc comment starting at a FunctionType node (#23546)
* Support getting JSDoc comment starting at a FunctionType node

* Move || to end of line
2018-04-20 09:43:20 -07:00
Mohamed HegazyandGitHub c8e4b7ba50 Merge pull request #23566 from ajafff/generator-cfa
binder: don't inline control flow of generator function
2018-04-20 09:11:50 -07:00
csigs 760f8b85ab LEGO: check in for master to temporary branch. 2018-04-20 16:10:25 +00:00
Klaus MeinhardtandNathan Shively-Sanders f57ba59a77 resolveEntityName: don't return false (#23563)
Fixes: #23562
2018-04-20 08:42:29 -07:00
Klaus Meinhardt 4827728b16 binder: don't inline generator function's control flow
Fixes: #23565
2018-04-20 16:26:53 +02:00
csigs ee834a270a LEGO: check in for master to temporary branch. 2018-04-20 10:10:36 +00:00
Josh Goldberg 7812e5180f Trailing whitespace, oh no! 2018-04-19 22:01:08 -07:00
Josh Goldberg 351251193d Simplified to one output line 2018-04-19 21:54:08 -07:00
Josh Goldberg 8d6c2bc1b1 Used return value from clearScreenIfNotWatchingForFiles 2018-04-19 21:53:01 -07:00
csigs 8740045d8e LEGO: check in for master to temporary branch. 2018-04-20 04:10:18 +00:00
Nathan Shively-SandersandGitHub 8d969a23cb In JS, class supports @template tag for declaring type parameters (#23511)
* Support @template as a class type parameter

Still need to do the following:
1. Correctly get jsdoc host in predicate.
2. Make this work for constructor functions too.
3. Scan rest of codebase for other usages of the type parameters
property that should be calls to getEffectiveTypeParameterDeclarations.
4. Rename tp to something more readable, like typar or ts'.

* Use jsdoc host declaration to find container

* Longer names for type parameters

* Fix renaming operation

* Update fourslash test

* Support @template for JS constructors

* Look for both outer and tag type parameters

* Improve naming to improve code clarity
2018-04-19 15:58:43 -07:00
Daniel RosenwasserandGitHub 84b12910e8 Merge pull request #23430 from Microsoft/taggedTemplateTypeArguments
Allow type arguments in generic tagged templates
2018-04-19 15:50:19 -07:00
AndyandGitHub a7c08e4691 Make code fix to add 'this.' work for statics (#23527)
* Make code fix to add 'this.' work for statics

* Add 'C.' instead of 'this.'

* DanielRosenwasser code review
2018-04-19 15:39:44 -07:00
AndyandGitHub c258d6e1b6 Fix bug: Don't rename 'default' in export { default as x } from "m"; (#23434)
* Fix bug: Don't rename 'default' in `export { default as x } from "m";`

* Rename `foo` in `{ default as foo }` if that's the original export name
2018-04-19 15:35:25 -07:00
AndyandGitHub bc7979c174 quickInfo: Get JSDoc tags from aliased symbol (#23526)
* quickInfo: Get JSDoc tags from aliased symbol

* Add test with existing tags
2018-04-19 15:33:36 -07:00
Daniel Rosenwasser 70feb7b10b Avoid duplicate code when checking for tagged templates. 2018-04-19 15:16:25 -07:00
csigs 0f861bbfa8 LEGO: check in for master to temporary branch. 2018-04-19 22:10:53 +00:00
Ron Buckton 6aab09a82f Revert change to PromiseConstructor in #22772 2018-04-19 11:42:57 -07:00
Wesley WighamandGitHub 557a34e897 Visit typedef type expressions so they contribute to referenced-ness (#23525) 2018-04-19 10:28:30 -07:00
Sheetal NandiandGitHub 0526ff5fad Merge pull request #23484 from Microsoft/typingInstallerWatch
Use watch recursive directories instead of watchFile for node_modules and bower components
2018-04-19 09:59:58 -07:00
csigs b8425fc596 LEGO: check in for master to temporary branch. 2018-04-19 16:10:34 +00:00
Daniel RosenwasserandGitHub 6ee4989674 Merge pull request #23408 from Microsoft/autoPretty
--pretty-er output by default
2018-04-18 23:10:02 -07:00
Josh Goldberg d1b044b72f Standardized for --preserveWatchOutput too 2018-04-18 17:08:43 -07:00
Wesley WighamandGitHub 238ed7a94c Visit EOF to collect jsdoc import types (#23521)
* Visit EOF to collect jsdoc import types

* Add flag to prevent jsdoc import types from influencing compilation set
2018-04-18 19:52:34 -04:00
Ron BucktonandGitHub f7163a0a75 Merge pull request #23466 from falsandtru/lib/Promise.reject
Fix Promise.reject
2018-04-18 15:51:15 -07:00
Ron BucktonandGitHub 1a3e88c62b Merge pull request #22772 from falsandtru/lib/promise
Fix Promise interfaces
2018-04-18 15:50:58 -07:00
AndyandGitHub 2f6b59eab9 Misc. improvements to addImplementationReferences (#23507)
* Misc. improvements to addImplementationReferences

* Test typeHavingNode.type === typeNode

* Fix bug: refNode.parent -> refNode
2018-04-18 15:24:19 -07:00
AndyandGitHub 8f1bdc7e18 findAllReferences: Reduce node.getSourceFile() calls (#23524)
* findAllReferences: Reduce node.getSourceFile() calls

* Don't create extra object
2018-04-18 15:24:02 -07:00
falsandtru 55a3c22d43 Revert "Improve PromiseConstructor"
This reverts commit 4318f0d9a0.
2018-04-19 05:11:00 +09:00
AndyandGitHub b271df1639 Simplify getParentSymbolsOfPropertyAccess (#23513) 2018-04-18 12:58:40 -07:00
AndyandGitHub 0e9b815956 Improve performance of duplicate check (#23516) 2018-04-18 12:58:16 -07:00
Daniel Rosenwasser 320cb40f12 Address CR feedback. 2018-04-18 12:33:38 -07:00
Sheetal Nandi 56b618b9fc Use indexOf and substr to exclude node_modules and bowerComponents instead of using loop 2018-04-18 11:44:28 -07:00
Sheetal NandiandGitHub b0d6896235 Merge pull request #23438 from Microsoft/typingsFiles
Better handling of typing installer events and consuming typing files in tsserver
2018-04-18 11:34:46 -07:00
Sheetal Nandi 67bb67edf1 Cache canonical global cache's package.json path 2018-04-18 11:22:02 -07:00
Sheetal Nandi 7c5f5249ae Renames as per PR feedback 2018-04-18 11:05:56 -07:00
Andrew CaseyandGitHub a2f494ab57 Merge pull request #23494 from amcasey/PropagateUnnecessary
Propagage reportsUnnecessary in convertToDiagnosticsWithLinePosition
2018-04-18 09:55:45 -07:00
AndyandGitHub afde2b5bf3 MissingDeclaration is only ever a Statement (#23485) 2018-04-18 07:55:57 -07:00
csigs 81b347d61d LEGO: check in for master to temporary branch. 2018-04-18 04:10:18 +00:00
falsandtru 0303d14a1f Merge remote-tracking branch 'master/master' into lib/promise 2018-04-18 12:05:32 +09:00
falsandtru 4318f0d9a0 Improve PromiseConstructor 2018-04-18 11:45:01 +09:00
Andrew Casey 26c836b12a Propagage reportsUnnecessary in convertToDiagnosticsWithLinePosition 2018-04-17 19:44:52 -07:00