Sheetal Nandi
d8ee4116ef
Fix function declaration without body to be checked as context sensitive
...
Fixes #29032
2019-01-03 12:46:39 -08:00
Sheetal Nandi
d35ea02cc6
Merge pull request #29247 from ajafff/organizeimports-crash
...
Fix crash in organizeImports
2019-01-03 08:54:34 -08:00
Klaus Meinhardt
6a9ad0e2eb
Fix crash in organizeImports
...
Fixes : #29236
2019-01-03 16:20:46 +01:00
Sheetal Nandi
24cc284d19
The assert that cached value of config file existance is always correct, might not be true if file watcher is not invoked before creating configured project
...
Fixes #29191
2019-01-02 15:42:12 -08:00
Benjamin Lichtman
799656a037
Merge pull request #29214 from uniqueiniquity/nestedAsyncCodeFix
...
Only provide suggestion for outermost async fix
2018-12-31 17:18:39 -08:00
Benjamin Lichtman
11585d29bc
Merge pull request #29218 from uniqueiniquity/jsdocSpanForVarStatement
...
Jsdoc span for var statement
2018-12-31 16:27:34 -08:00
Benjamin Lichtman
cb57f17aba
Simplify approach
2018-12-31 16:25:26 -08:00
Benjamin Lichtman
28e68a6891
Fix spelling of convertible
2018-12-31 16:00:24 -08:00
Benjamin Lichtman
048d04684b
use existing util functions
2018-12-31 15:56:54 -08:00
Benjamin Lichtman
aebcb6df36
Merge pull request #29216 from uniqueiniquity/multilineArgumentSpans
...
Give appropriate outlining span for array and object literals as args in call expression
2018-12-31 15:18:07 -08:00
Benjamin Lichtman
34970d8a69
give jsdoc outline span before func exp assigned to var
2018-12-31 15:10:22 -08:00
Benjamin Lichtman
6c34520281
Use normal start for spans for args
2018-12-31 14:37:31 -08:00
Benjamin Lichtman
b466336a3e
Add class expression to set of nodes for outlining
2018-12-31 14:04:48 -08:00
Benjamin Lichtman
2dd6e20ef9
Only provide suggestion for outermost async fix
2018-12-31 11:50:40 -08:00
Daniel Rosenwasser
0dbb9760c0
Merge pull request #29147 from Kingwl/type_query_completions
...
fix typeof completions broken
2018-12-31 10:36:39 -08:00
Anders Hejlsberg
beebda3574
Merge pull request #29110 from Microsoft/fixDiscriminantCheck
...
Fix discriminant property check
2018-12-30 17:46:01 -10:00
Anders Hejlsberg
8570a67572
Merge pull request #29121 from Microsoft/mappedTypeConstraints
...
Improve constraints for non-homomorphic mapped types
2018-12-30 17:44:41 -10:00
Anders Hejlsberg
fd3af78b8b
Merge pull request #29179 from Microsoft/typeParameterDefaultForwardReference
...
No self or forward references in type parameter defaults
2018-12-30 17:43:57 -10:00
Anders Hejlsberg
8e1403144d
Merge pull request #29192 from Microsoft/initializerWidening
...
Fix initializer widening
2018-12-28 17:15:36 -10:00
Anders Hejlsberg
0165e80e7c
Don't widen contextually typed literals in initializer expressions
2018-12-28 09:30:14 -10:00
Benjamin Lichtman
c46090b8dc
Show template literal in navtree function call args
2018-12-27 17:43:56 -08:00
Anders Hejlsberg
3f7a9a906b
Type parameter defaults can only reference previously declared type parameters
2018-12-27 13:45:13 -10:00
王文璐
7c93affd7d
fix typeof completions broken
2018-12-25 17:30:04 +08:00
Anders Hejlsberg
565ab7a971
Properly compute lower bound of key type in a mapped type
2018-12-21 12:50:53 -08:00
Sheetal Nandi
efc71602cd
Refactor tsc-watch tests
2018-12-20 14:17:43 -08:00
Sheetal Nandi
f117184562
More tsserver tests refactoring
2018-12-20 14:00:45 -08:00
Sheetal Nandi
db4d9b3050
Add unittests:: on all unittests describe blocks for easy run
2018-12-20 13:20:53 -08:00
Sheetal Nandi
53e2507f60
More scenarios in their own test
2018-12-20 12:55:18 -08:00
Sheetal Nandi
5c8ef3934d
Move the tests into their own folder for easy scenario search
2018-12-20 12:19:18 -08:00
Sheetal Nandi
9e17a66151
Sym links into single test
2018-12-20 12:18:43 -08:00
Sheetal Nandi
5234b8b18e
Move more tests into resolutionCache and project errors
2018-12-20 12:17:02 -08:00
Sheetal Nandi
160c73f942
Separate out caching file system test
2018-12-20 12:16:47 -08:00
Sheetal Nandi
96c73701c1
More refactoring for resloutionCache and project errors
2018-12-20 12:16:23 -08:00
Sheetal Nandi
f6ac949596
Separate out LargeFileReferencedEvent test
2018-12-20 12:15:58 -08:00
Sheetal Nandi
04e190abb7
ProjectUpdatedInBackground in a separate unittest
2018-12-20 12:15:43 -08:00
Sheetal Nandi
39ec69e26e
Separate out tests for project loading events into their own unittest file
2018-12-20 12:15:25 -08:00
Sheetal Nandi
03d66dd2ef
Emit error tsserver tests into projectErrors
2018-12-20 12:12:54 -08:00
Sheetal Nandi
37a080bca9
tsserver's typingInstaller test into typingsInstaller unittest
2018-12-20 12:12:37 -08:00
Sheetal Nandi
1b6db32ecd
Move error tests from tsserver project system to projectErrors
2018-12-20 12:12:19 -08:00
Sheetal Nandi
53a6968f06
More refactoring for compile on save
2018-12-20 12:11:59 -08:00
Sheetal Nandi
347f89c851
tsc-watch emit tests in to its own tests
2018-12-20 12:11:36 -08:00
Sheetal Nandi
7b9b0f8da7
Split resolutionCache and watchApi tests into its own unittest
2018-12-20 12:11:07 -08:00
Sheetal Nandi
47200acfcd
Split watch environment into its own unittest
2018-12-20 12:10:28 -08:00
Sheetal Nandi
2a02077e37
Add name of test in all describe blocks in it
2018-12-20 12:09:42 -08:00
Anders Hejlsberg
93acaac087
Fix discriminant property check
2018-12-20 07:17:42 -08:00
Wesley Wigham
08022d57c8
Allow calls on unions of dissimilar signatures ( #29011 )
...
* Add core of new union signature logic and test - needs intersection signature logic to fully work
* Add inversion of variance for class props lookup from union sig returns
* Fix lints
* Combine parameter names for nicer quick info
* PR feedback 1
* Fix miscopy
* PR feedback round 2
* Remove argument name combining because loc :(
* Nit cleanup round 3
* Reinline getTupleTypeForArgumentAtPos
* Remove a tad more
* No step on sneky off-by-one error
2018-12-19 16:35:01 -08:00
Daniel Rosenwasser
ab2a38ebef
Merge pull request #29102 from Microsoft/declarationEmitForDefaultExportClassExtendingExpression
...
Declaration emit for default exported class extending expression
2018-12-19 16:19:36 -08:00
Daniel Rosenwasser
9277c03666
Check whether class declarations have a name, falling back to "default".
2018-12-19 15:51:31 -08:00
Sheetal Nandi
fcd502502a
Merge pull request #28886 from Microsoft/sourceMapDecoder
...
Enhancements to SourceMap decoder from tsserver
2018-12-19 12:51:42 -08:00
Anders Hejlsberg
3e0639add5
Merge pull request #29053 from Microsoft/fixDestructuringControlFlow
...
Fix destructuring control flow analysis
2018-12-19 11:12:41 -08:00