Commit Graph
26450 Commits
Author SHA1 Message Date
Sheetal NandiandGitHub a0fe072fa7 Merge pull request #22613 from Microsoft/configFileErrors
Make config file parsing errors available through program and expose API
2018-03-29 13:08:03 -07:00
AndyandGitHub d5a7dc1053 fixAddMissingMember: Remove special-casing for 'this' (#22987)
* fixAddMissingMember: Remove special-casing for 'this'

* Update type of 'call'
2018-03-29 12:54:17 -07:00
Wesley WighamandGitHub 51a4fe6d20 Handle ts-only declaration export aliases in system transformer (#22919)
* handle ts declarations export alises in system transformer

* Retain end of declaration marker
2018-03-29 12:50:29 -07:00
Wesley WighamandGitHub 3365272f69 Dont follow aliases when looking for default exported symbol (#22995) 2018-03-29 12:46:31 -07:00
Wesley WighamandGitHub 51d44b6097 Move JSX props support check and make syntactic (#22970)
* Move JSX props support check and make syntactic

* Make parameter required
2018-03-29 12:36:42 -07:00
AndyandGitHub e4a73f3981 Assert argument is provided to diagnostic (#22992) 2018-03-29 12:28:37 -07:00
AndyandGitHub a9aca81601 Error on for (const x in never) (#22988)
* Error on `for (const x in never)`

* Update diagnostic

* Provide argument to diagnostic
2018-03-29 11:39:30 -07:00
Wesley WighamandGitHub 6c517ef276 Dont let an import that doesnt need helpers override one that does (#22966) 2018-03-29 11:03:33 -07:00
Dhruv Rajvanshi ac97987ee0 Allow strict mode reserved keywords in qualified type names; Fixes 22785 2018-03-29 22:59:58 +05:30
Anders Hejlsberg 1575b7a77e Fix parent node walk termination condition in getConstrainedTypeVariable 2018-03-29 10:16:31 -07:00
AndyandGitHub 65659d7297 Don't allow to iterate over 'never' (#22964)
* Don't allow to iterate over 'never'

* Include type in error message
2018-03-29 10:01:21 -07:00
Nathan Shively-SandersandGitHub eca3d68eb4 @typedef supports nested @property names (#22967)
Previously it did not, because this capability is not documented on
usejsdoc.org. However, several people requested this feature.
2018-03-29 09:39:23 -07:00
Anders Hejlsberg da32f2b4f1 Fix formatting 2018-03-29 09:36:28 -07:00
Sheetal NandiandGitHub 4e76dec0b4 Merge pull request #22976 from Microsoft/childWatches
Do not watch child directories of the sym link folders
2018-03-29 09:34:29 -07:00
Sheetal Nandi d8bf95ff10 PR feedback 2018-03-29 09:13:03 -07:00
AndyandGitHub 57e28dfb4f Remove unnecessary test (#22962) 2018-03-29 07:54:20 -07:00
Sheetal Nandi f885cd971e Do not watch child directories of the sym link folders
Fixes #22668
2018-03-28 21:11:13 -07:00
Sheetal Nandi e40f2943b1 Revert "Do not watch child directories of the sym link folders"
This reverts commit 3280865049.
2018-03-28 21:10:29 -07:00
Sheetal Nandi 3280865049 Do not watch child directories of the sym link folders
Fixes #22668
2018-03-28 18:37:07 -07:00
Anders HejlsbergandGitHub 9dd31488f6 Merge pull request #22959 from Microsoft/fixInferTypeParameterLeak
Fix 'infer T' type parameter leaks
2018-03-28 15:45:09 -07:00
Sheetal NandiandGitHub 5472ca9ed8 Merge pull request #22963 from Microsoft/incrementalEditWithJsDocNode
Correct the incremental parsing when there is jsDoc node
2018-03-28 15:42:18 -07:00
Sheetal Nandi 33e9ef60c4 Correct the incremental parsing when there is jsDoc node
Fixes #22924
2018-03-28 14:32:46 -07:00
AndyandGitHub 7d39b457f8 Simplify createChildren (#22270)
* Simplify createChildren

* Move 'getSourceFile()' call after early returns
2018-03-28 13:57:43 -07:00
Mohamed HegazyandGitHub 85a7118c42 Merge pull request #22960 from Microsoft/portGeneratedLibFiles3-28
Port generated lib files
2018-03-28 13:42:57 -07:00
AndyandGitHub 6ec13bb945 Use getAllSuperTypeNodes in more places (#22718) 2018-03-28 13:33:20 -07:00
Mohamed Hegazy 272aba1c7d Port generated lib files 2018-03-28 13:26:10 -07:00
Anders Hejlsberg dc3eb3c27e Erase 'infer T' locations in conditional type constraints 2018-03-28 13:16:11 -07:00
Wenlu WangandNathan Shively-Sanders cb9f436b54 fix accessor parse with line terminator (#22893) 2018-03-28 10:59:09 -07:00
Nathan Shively-SandersandGitHub adf30dd694 isMethodLike recognises prototype-assignment methods (#22935)
* isMethodLike recognises prototype-assignment methods

* Require js prototype methods to be in JS files
2018-03-28 10:41:24 -07:00
AndyandGitHub e60348be46 Inline isParameterOfConstructorDeclaration (#22838) 2018-03-27 20:15:43 -07:00
AndyandGitHub 659dc03f68 completions: isNewIdentifierLocation = false for string literal where all legal values are known (#22933) 2018-03-27 19:36:54 -07:00
AndyandGitHub 6118f211d1 Add 'isParameterPropertyModifier' helper (#22841) 2018-03-27 19:36:42 -07:00
AndyandGitHub 4f1656035b findAllReferences: Consistently use getTextSpan (#22847)
* findAllReferences: Consistently use getTextSpan

* Remove initializer
2018-03-27 19:36:16 -07:00
AndyandGitHub b518120883 findAllReferences: Respect search file set searching for references to an exported symbol (#22657)
* findAllReferences: Respect search file set searching for references to an exported symbol

* Remove debugging code
2018-03-27 18:48:27 -07:00
AndyandGitHub 3e32e15895 Add 'fixAllDescription' property to CodeFixAction (#22616)
* Add 'fixAllDescription' property to CodeFixAction

* Code review

* Add to protocol

* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00
AndyandGitHub 2cbad6ab06 Support completion details for string literal completions (#22664) 2018-03-27 17:02:04 -07:00
Mohamed HegazyandGitHub 4699c829de Merge pull request #22898 from Kingwl/fix-return-type-lookup-rule
fix type lookup rule
2018-03-27 17:01:56 -07:00
AndyandGitHub b9f48c1d5d refactorConvertToEs6Module: Preserve quote style of imports (#22929) 2018-03-27 17:01:31 -07:00
AndyandGitHub 07a890dbbb Reuse getBinaryOperatorPrecedence (#22844)
* Reuse getBinaryOperatorPrecedence

* Code review

* Consistently sort cases in ascending order
2018-03-27 16:38:39 -07:00
AndyandGitHub 47d768ceb3 Anything after Debug.failBadSyntaxKind is dead code (#22922) 2018-03-27 15:36:05 -07:00
Wesley WighamandGitHub 1db769d566 Transform setter bodies if they contain es2015 (#22931) 2018-03-27 15:16:56 -07:00
AndyandGitHub 6ef4d7774a Always test replacementSpan, and don't provide if it would just be an identifier (#22918) 2018-03-27 15:15:50 -07:00
AndyandGitHub 0a2c160dd1 Debug.failBadSyntaxKind should always be defined and return 'never' (#22091) 2018-03-27 13:35:48 -07:00
AndyandGitHub 21cd68dd04 Test for isNewIdentifierLocation, and make true for type with index signature (#22910) 2018-03-27 13:05:41 -07:00
AndyandGitHub ccd6a010e0 completions: Use keywordForNode helper instead of .getText() (#22751) 2018-03-27 12:56:30 -07:00
Nathan Shively-SandersandGitHub 61aad4c7b8 Handle toplevel this-assignment (#22913)
Do nothing now. Someday we might handle it correctly.
2018-03-27 12:24:37 -07:00
AndyandGitHub 2bd66b3292 textChanges: Add insertCommentBeforeLine method (#22902) 2018-03-27 11:50:48 -07:00
AndyandGitHub e9e1d0d70b textChanges: Use InsertNodeOptions instead of ChangeNodeOptions where possible (#22903) 2018-03-27 11:50:34 -07:00
AndyandGitHub 85f11cc5e4 textChanges: Use replaceRange in more places (#22904) 2018-03-27 10:57:42 -07:00
AndyandGitHub ea6740fa91 replaceNode: Always use non-adjusted end (#22519)
* replaceNode: Always use non-adjusted end

* Never adjust start position either

* Fix excess property checks, remove unnecessary arguments

* Make 'insertText' and 'newLineCharacter' private

* Use replaceNode in one more place now that it doesn't affect comments

* Update replaceNodeRange too

* Always ask for ChangeNodeOptions
2018-03-27 10:34:16 -07:00