Andrew Casey
b5e6b890f1
Merge pull request #18997 from amcasey/ExtractDeclaration
...
Allow extraction of variable decls used outside the extracted range
2017-10-12 09:31:19 -07:00
Sheetal Nandi
6e5a4a9476
Merge pull request #18959 from Microsoft/configFileDiag
...
Do not report config file errors if the file opened isn't from configured project and that project doesn't have the config errors
2017-10-12 08:56:00 -07:00
Sheetal Nandi
5a776e28ba
Merge pull request #19088 from Microsoft/resolutionCacheDefensiveChecks
...
Function to clear the per directory resolution
2017-10-12 08:55:17 -07:00
Andrew Casey
1b896c2f80
Fix lint error
2017-10-11 17:35:52 -07:00
Andrew Casey
c5f40a1b2b
Add additional deep clone tests
2017-10-11 17:26:41 -07:00
Anders Hejlsberg
728d2a92ce
Merge pull request #19091 from Microsoft/fixAnonymousTypeInstantiation
...
Fix anonymous type instantiation
2017-10-12 00:54:14 +01:00
Andrew Casey
568c8a3298
Allow extraction of variable decls used outside the extracted range
...
If there are only declarations, use the new function as the initializer
for a destructuring declaration.
If there are declarations and writes, changes all of the `const`
declarations to `let` and add `| undefined` onto any explicit types.
Use destructuring assignment to accomplish both "initialization" and
writes.
I don't believe there is a case where there are both declarations and a
return (since the declarations wouldn't be available after the return).
UNDONE: this could probably be generalized to handle binding patterns
but,
for now, only identifiers are supported.
Fixes #18242
Fixes #18855
2017-10-11 16:38:38 -07:00
Andrew Casey
bada0095ed
Merge pull request #18979 from amcasey/DeepClone
...
Introduce getSynthesizedDeepClone
2017-10-11 16:36:25 -07:00
Anders Hejlsberg
6cf41ae882
Merge pull request #19107 from Microsoft/fixRecursiveCallbacks
...
Fix checking of recursive callback types
2017-10-12 00:28:16 +01:00
Anders Hejlsberg
9ef417b846
Account for type queries in type literals
2017-10-11 16:02:58 -07:00
Andrew Casey
eb4f067ecb
Don't clobber the position of cloned nodes
2017-10-11 15:52:48 -07:00
Sheetal Nandi
562a0463bc
Merge pull request #19111 from Microsoft/useCaseSensitiveProjectRootToSearchConfigFile
...
Handle case sensitivity when looking up config file for Script info
2017-10-11 15:31:00 -07:00
Wesley Wigham
b949245336
Add ValueModule as a valid object literal type, as they are immutable ( #19090 )
...
* Add ValueModule as a valid object literal type, as they are immutable
* Rename method based on usage
2017-10-11 15:13:33 -07:00
Wesley Wigham
9f4130b204
Fix incorrect cast target ( #19093 )
...
Found while updating #18285 to latest master. Not sure what this fixes, but it was definitely incorrect - `node` must be a `Block` at this point, so this cast must have been intended for `node.parent`, which was checked against `TryStatement` right before it.
2017-10-11 14:52:23 -07:00
Andy
917ae32937
Always log output of execSync ( #19110 )
...
* Always log output of execSync
* Fix lint
2017-10-11 14:50:45 -07:00
Sheetal Nandi
deed981715
Handle case sensitivity when looking up config file for Script info
...
Fixes #17726
2017-10-11 13:35:06 -07:00
Nathan Shively-Sanders
461e29bbd8
Merge pull request #18965 from Microsoft/set-symbol-on-union-of-spreads
...
Set symbol on union that is returned from `getSpreadType`
2017-10-11 13:25:45 -07:00
Ron Buckton
73d06f796d
Merge pull request #19056 from Microsoft/fix16221
...
Fix recursive reference in type parameter default
2017-10-11 12:49:35 -07:00
Sheetal Nandi
bce77fdfd9
Merge pull request #18960 from Microsoft/builderHandlesChangeInResolution
...
Builder handles changes in resolution/references when file's contents dont change
2017-10-11 12:11:44 -07:00
Anders Hejlsberg
81fc2a14d1
Don't check for callbacks in recursive call that resulted from callbacks
2017-10-11 12:01:26 -07:00
Ron Buckton
d08770bdff
Merge pull request #19046 from Microsoft/fix15395
...
Fix emit for classes with both fields and 'extends null'
2017-10-11 11:49:22 -07:00
Sheetal Nandi
142a88a4ae
Update the comment on emit handler method
2017-10-11 10:51:46 -07:00
Charles Pierce
576bd8c25f
Ensure Async Modifier is maintained through ES6 Class Conversion ( #19092 )
2017-10-11 09:04:51 -07:00
Nathan Shively-Sanders
de68f067d5
Set flags on fresh object types from getSpreadType
...
Previously, getSpreadType didn't set any flags and relied on its callers
to do so. This was error-prone because getSpreadType often returns
non-fresh types.
2017-10-11 08:17:40 -07:00
Sheetal Nandi
cf9b83accc
Instead of counting events with name, verify each event to not equal event name
2017-10-10 21:15:20 -07:00
Sheetal Nandi
993890f06c
Verify errors more correctly in tsc-watch mode
2017-10-10 21:11:33 -07:00
Sheetal Nandi
9767d77143
Update comment on emit handler functions
2017-10-10 18:41:45 -07:00
Sheetal Nandi
a7fa187fb2
Merge pull request #19058 from Microsoft/whenWatchesFail
...
Swallow the directory watcher exceptions and ignore them
2017-10-10 18:32:22 -07:00
Sheetal Nandi
7f1ddaf7b8
Merge branch 'master' into configFileDiag
2017-10-10 18:30:59 -07:00
Sheetal Nandi
0e2eb3a2b8
Combine the event manager testing
2017-10-10 18:25:26 -07:00
Wesley Wigham
d0168af142
Functioning parallel unittests ( #18956 )
2017-10-10 17:59:43 -07:00
Sheetal Nandi
bb4abbd95e
Do not generate config file diagnostics event when the file opened doesnot belong to the configured project
2017-10-10 17:37:02 -07:00
Sheetal Nandi
c5b4f5e7e7
Use filterMutate instead of removeWhere
2017-10-10 17:36:20 -07:00
Anders Hejlsberg
5a1d846e76
Properly account for possibly referenced type parameters
2017-10-10 17:34:16 -07:00
Sheetal Nandi
d7269f1386
Merge pull request #19053 from Microsoft/resolutionCacheDefensiveChecks
...
Resolution cache defensive checks
2017-10-10 17:18:53 -07:00
Sheetal Nandi
52d7c7278d
Add comment about swallowing exception
2017-10-10 17:16:53 -07:00
Sheetal Nandi
e30a66d22f
Add utitlity for stringContains
2017-10-10 17:16:39 -07:00
Wesley Wigham
edf0a95e89
Stop erroneous match of midfile sourceMappingUrl ( #19084 )
2017-10-10 16:41:54 -07:00
Sheetal Nandi
cb326ed298
Function to clear the per directory resolution
2017-10-10 16:40:12 -07:00
Sheetal Nandi
55bbcff348
Modify the changesAffectModuleResolution check
2017-10-10 16:36:09 -07:00
Andy
d086b637c5
Remove removeWhere ( #19082 )
2017-10-10 15:52:41 -07:00
Sheetal Nandi
61dd815ebc
Merge pull request #19072 from Microsoft/completionInClassMember
...
Handle the case of completion of class member when member name is being edited
2017-10-10 15:45:11 -07:00
Charles Pierce
249c2cbaf7
Maintain Export Modifier when Refactoring to ES6 Class #18435 ( #19070 )
2017-10-10 15:39:59 -07:00
Wesley Wigham
611e0f7b4a
Do not rely on parent pointers in the binder ( #19083 )
2017-10-10 15:37:05 -07:00
Andrew Casey
d33a9acbcc
Merge pull request #18950 from amcasey/MissingMemberFormatting
...
Improve AddMissingMember formatting
2017-10-10 13:12:05 -07:00
Andrew Casey
18afd8a50d
Optimize getSynthesizedDeepClone
2017-10-10 13:08:57 -07:00
Andrew Casey
9ece0cc956
Move getSynthesizedDeepClone to services/utilities.ts
2017-10-10 13:01:11 -07:00
Andy
927ffefcf4
Replace more 'verify.rangeAfterCodeFix' with 'verify.codeFix' ( #18800 )
2017-10-10 11:28:05 -07:00
Andy
b839e17e17
Improve JSDoc @augments diagnostics ( #19011 )
2017-10-10 11:27:53 -07:00
Sheetal Nandi
c4298a3c9d
Merge branch 'master' into configFileDiag
2017-10-10 11:12:07 -07:00