Anders Hejlsberg
d98caabaca
Map on union origin in mapType to better preserve aliases and origins
2021-01-03 06:41:13 -10:00
Anders Hejlsberg
785d2b7914
Accept new baselines
2021-01-02 11:37:33 -10:00
Anders Hejlsberg
21f61c0002
Recursively extract named union types
2021-01-02 11:37:13 -10:00
Anders Hejlsberg
e0d4774ce4
Fix fourslash test
2021-01-01 12:41:34 -10:00
Anders Hejlsberg
d9a0f50d21
Accept new baselines
2021-01-01 12:38:37 -10:00
Anders Hejlsberg
39f82a8029
Use denormalized type objects for origin / support 'keyof' origins
2021-01-01 12:38:04 -10:00
Anders Hejlsberg
11d2712437
Accept new baselines
2020-12-30 11:33:39 -10:00
Anders Hejlsberg
d4dc215c56
Compute intersection-of-unions cross product without recursion
2020-12-30 11:33:17 -10:00
Anders Hejlsberg
237e9ca3a7
Accept new baselines
2020-12-29 10:59:30 -10:00
Anders Hejlsberg
6c1248e128
Preserve aliases for intersection and indexed access types
2020-12-29 10:59:08 -10:00
Anders Hejlsberg
b2434fc636
Accept new baselines
2020-12-29 08:52:14 -10:00
Anders Hejlsberg
cc5d0f2de8
Preserve aliases during relationship checks
2020-12-29 08:51:55 -10:00
Anders Hejlsberg
536e41e0e7
Accept new baselines
2020-12-29 07:46:19 -10:00
Anders Hejlsberg
829285fdc2
Accept new baselines
2020-12-28 17:07:38 -10:00
Anders Hejlsberg
44231c80c3
Preserve intersection origin for union types
2020-12-28 17:05:44 -10:00
Anders Hejlsberg
2e2048cacc
Accept new baselines
2020-12-27 15:27:22 -10:00
Anders Hejlsberg
c9bea0cc35
Preserve original types for union types
2020-12-27 15:27:04 -10:00
Anders Hejlsberg
1e9ea77f3b
Accept new baselines
2020-12-25 11:48:39 -10:00
Anders Hejlsberg
8f2e00f6ff
Create separate types for equivalent aliased unions
2020-12-25 11:48:12 -10:00
Andrew Branch
c84838bd23
Avoid rewriting bare module specifiers on rename when fix is not verifiably correct ( #41959 )
2020-12-22 11:02:38 -08:00
orange4glace
1e4a5c9b37
fix(41259) : JS autocomplete doesn't work for object literal shorthands ( #41539 )
...
* fix : #41259
* fix : #41259
* fix: fourslash
* fix: remove nested if
* fix: change tc result for #41259
* fix: less restrictive shorthand completion rules
* fix: use typeMembers to find out whether properties are empty
* fix: typo
* fix: lint
* fix: exclude Object in completion
* fix: test
* fix: testcase tidy up
* fix: apply completions for unclosed literal and missing comma
* fix: ignore auto-imports
* fix: use exact to ensure the order of completions
* fix: use exact to ensure the order of completions
* fix: add new lines so it can easy to be distinguished
2020-12-22 10:36:52 -08:00
Ryan Cavanaugh and Daniel Rosenwasser
22f452c5cd
Update issue templates ( #42049 )
...
* Update issue templates
* Update .github/ISSUE_TEMPLATE/Bug_report.md
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update .github/ISSUE_TEMPLATE/lib_change.md
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update .github/ISSUE_TEMPLATE/lib_change.md
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update .github/ISSUE_TEMPLATE/lib_change.md
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update .github/ISSUE_TEMPLATE/lib_change.md
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Swap some orderings
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
2020-12-22 09:04:56 -08:00
Song Gao
3442151f9d
completion for return const assertion. ( #41475 )
2020-12-22 09:16:30 +00:00
Baptiste Darthenay
bce412cb15
fix(40806): Add missing options and possible values of DateTimeFormat ( #41880 )
2020-12-22 09:13:01 +00:00
Martijn Pieters
a2ddfcfe0e
Add missing NumberFormatPartTypes types ( #42066 )
...
Adds 7 additional types found in ECMA-402, 7th ed. June 2020, https://www.ecma-international.org/ecma-402/#numberformat-objects (17 in total)
2020-12-21 16:34:16 -08:00
TypeScript Bot
6ea3885b8c
Update package-lock.json
2020-12-21 06:27:53 +00:00
Anders Hejlsberg
22bee779d7
Properly make inferences from partial source type ( #42038 )
...
* Slightly less picky check in typesDefinitelyUnrelated
* Accept new baselines
* Add regression test
2020-12-19 07:18:44 -10:00
TypeScript Bot
777eb8459b
Update package-lock.json
2020-12-19 06:27:42 +00:00
Andrew Branch
487be36919
Fix auto import completion inserting wrong module specifier ( #41955 )
...
* Don’t look for reëxports when import source was an ambient module
* Add additional assertion for clarity
2020-12-18 15:13:02 -08:00
Andrew Branch
e84a95f707
Fix find-all-refs crashing in some project references scenarios ( #42025 )
...
* Add failing test
* Fix test
* Accept baseline
2020-12-18 14:24:34 -08:00
49136f7879
Use getPropertiesForObjectExpression in string literal object completions ( #42020 )
...
Co-authored-by: Johanne Enama <jenama@users.noreply.github.com >
Co-authored-by: Kevin Wong <kwong0419@users.noreply.github.com >
Co-authored-by: Johanne Enama <jenama@users.noreply.github.com >
Co-authored-by: Kevin Wong <kwong0419@users.noreply.github.com >
2020-12-18 14:20:41 -08:00
Oleksandr T
a763600cc4
fix(41818): use last JSDoc comment related to host ( #41858 )
2020-12-18 13:24:58 -08:00
Wesley Wigham
c3ff0d4c17
Under jsx: preserve, actually preserve expressions which contain only comments ( #41757 )
...
* Under jsx: preserve, actually preserve expressions which contain only comments
* Even better best effort comment preservation in JSX comments
2020-12-18 11:42:33 -08:00
Wesley Wigham
caebbe6714
Dont check computed name visibility results when the computed name representation is not in use ( #41806 )
2020-12-18 11:41:55 -08:00
Andrew Branch
5cdb2e8899
Fix more inferred template literal types ( #42039 )
2020-12-18 10:31:42 -08:00
Ron Buckton
4239904517
Report implicit any error for 'yield' result with no contextual type ( #41348 )
2020-12-18 09:55:33 -08:00
Andrew Casey
902fcb0cc7
Use fs.realpathSync.native when available ( #41292 )
...
* Test that forceConsistentCasingInFileNames does not apply to Windows drive roots
* Add file symlink baselines
* Add directory symlink baselines
* Update test to retain its meaning
Its purpose is (apparently) to demonstrate that
forceConsistenCasingInFileNames can interact badly with synthesized
react imports. Since the casing of the synthesized import has changed,
also modify the casing of the explicit reference to still conflict.
* Make VFSWithWatch.realpath use the path on disk
* Update VFS realpathSync to behave like realpathSync.native
* Use fs.realpathSync.native when available
In local measurements of an Office project, we saw initial project
loading get 5% faster on Windows and 13% faster on Linux. The only
identified behavioral change is that it restores the case used on disk,
whereas realpathSync retains the input lowercase.
* Rename SortedMap.getKeyAndValue to getEntry
2020-12-18 09:23:42 -08:00
Ron Buckton
e789cb1356
Fix single-line comment disrupting return w/optional chain ( #42026 )
2020-12-17 18:55:09 -08:00
Wesley Wigham
052d7308e6
Add type annotation into services so _services_ API baseline is stable post-LKG ( #42028 )
2020-12-17 18:09:42 -08:00
Ron Buckton
2a736a88e3
Simplify visitNode's 'lift' argument ( #42000 )
2020-12-17 12:43:59 -08:00
Wesley Wigham
3722584029
Make the configurePrerelease script OK with version having a string type annotation ( #42008 )
2020-12-17 10:13:12 -08:00
Andrew Branch
3160b5cfcc
Don’t require fourslash completions tests to specify replacementSpan when it’s zero-length ( #42013 )
2020-12-17 09:45:49 -08:00
TypeScript Bot
c73e4805cc
Update package-lock.json
2020-12-17 06:26:30 +00:00
Song Gao and Orta Therox
8cbc576954
Fix #41800 correctly. ( #41895 )
...
* fix as suggestion.
* Update moduleSpecifiers.ts
* compare symbol rather than string
* fix typo.
* fix
* fix lint.
* better name and more clear code
* fix comment.
Co-authored-by: Orta Therox <git@orta.io >
2020-12-16 18:56:18 -08:00
Wesley Wigham
b217f22e79
Allow identical type parameter lists to merge in union signatures ( #31023 )
...
* Have signature identity checks look at the base constraint of type parameters, allow identical type parameter lists to merge in union signatures
* Update text in fourslash test
* Add whitespace to fix lint, remove duplicate impl
* Consolidate names
* Remove comparisons of type parameter defaults, add more test cases
2020-12-16 13:17:57 -08:00
Wesley Wigham
675cd4d7ce
Ensure factory symbol remains unused in react-jsx mode when not referenced in user code ( #41905 )
2020-12-16 13:11:48 -08:00
Wesley Wigham
4b8b0c861e
Fix post-LKG API baselines ( #41973 )
2020-12-16 11:31:39 -08:00
TypeScript Bot
0d8a868e91
Update package-lock.json
2020-12-16 06:26:03 +00:00
Anders Hejlsberg
bec8071c65
Simplify constraint depth limiter logic ( #41972 )
...
* Explore at least 10 levels of constraints before checking for deeply nested types
* Simplify constraint depth limiter logic
* Add regression test
* Accept new baselines
2020-12-15 17:08:36 -10:00
Wesley Wigham and Daniel Rosenwasser
b869c9cffa
Add text-based fastpaths into LS token matching ( #41924 )
...
* Add text-based fastpaths into LS token matching
* Update src/services/utilities.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update src/services/utilities.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update src/services/utilities.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Limit search a bit
* Secretly, this was allowed to be `undefined` and was in fact used as such
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
2020-12-15 15:40:48 -08:00