Anders Hejlsberg
bbcb1bb25a
Accept new baselines
2018-04-25 11:03:39 -07:00
Anders Hejlsberg
8442a45bb6
Add additional tests
2018-04-25 11:03:25 -07:00
Anders Hejlsberg
8a7c2031fd
Accept new baselines
2018-04-25 10:58:20 -07:00
Anders Hejlsberg
3707f7dfbe
Handle more situations involving combined constraints of intersections
2018-04-25 10:58:08 -07:00
Andy
583bcea603
Always parse an argument for an ElementAccessExpression ( #23683 )
2018-04-25 10:08:35 -07:00
Andy
5280d23b63
importNameCodeFix: consistently put fixes to use existing imports before fixes for existing imports ( #23663 )
2018-04-25 08:04:20 -07:00
csigs
1f59e6f77a
LEGO: Merge pull request 23674
...
LEGO: Merge pull request 23674
2018-04-24 21:10:41 -07:00
csigs
16c24bd57c
LEGO: check in for master to temporary branch.
2018-04-25 04:10:19 +00:00
Anders Hejlsberg
b78054d9c3
Accept new baselines
2018-04-24 15:57:26 -07:00
Anders Hejlsberg
50c7ff79d0
Add tests
2018-04-24 15:57:17 -07:00
Anders Hejlsberg
e091e350bb
Accept new baselines
2018-04-24 15:56:46 -07:00
Anders Hejlsberg
d90d6b9277
Remove more intersections with empty value domains from union types
2018-04-24 15:55:15 -07:00
csigs
f7a0e0cb42
LEGO: Merge pull request 23668
...
LEGO: Merge pull request 23668
2018-04-24 15:11:36 -07:00
csigs
dfbc842164
LEGO: check in for master to temporary branch.
2018-04-24 22:11:15 +00:00
Anders Hejlsberg
ef8d5094b4
Properly check relationships for intersections with union constraints
2018-04-24 14:57:27 -07:00
Daniel Rosenwasser
28f8d7532f
Accepted baselines.
2018-04-24 12:39:41 -07:00
Daniel Rosenwasser
a55febda77
Make 'ImportMeta' more minimal.
2018-04-24 12:38:42 -07:00
Sheetal Nandi
d6dfd9a217
Do not remove inferred project immediately and try to reuse it on next file open
2018-04-24 11:53:36 -07:00
Sheetal Nandi
616458261c
Detach the removed typing files from the project
2018-04-24 11:53:36 -07:00
Sheetal Nandi
13d993b954
Helper for getting string comparer
2018-04-24 11:53:36 -07:00
Sheetal Nandi
4b19d12e0e
Rearrange code such that project Root path of open file is always used in watching and removing the config file watches
2018-04-24 11:53:35 -07:00
Alexader
a20e59cae4
Add warn that user can not use --strictPropertyInitialization without --strictNullChecks
2018-04-24 21:48:46 +03:00
Sheetal Nandi
ce5d5d8f72
Merge pull request #23636 from Microsoft/getErrWithInferredProject
...
Fix the crash when reporting errors of file that was referenced by inferred project root, is opened right after closing the root file
2018-04-24 11:33:29 -07:00
Anders Hejlsberg
ad4f83a281
Merge branch 'master' into fixIndexTypeTargetConstraint
...
# Conflicts:
# tests/baselines/reference/keyofAndIndexedAccess.js
# tests/baselines/reference/keyofAndIndexedAccess.symbols
# tests/baselines/reference/keyofAndIndexedAccess.types
# tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts
2018-04-24 11:08:08 -07:00
Anders Hejlsberg
5d67f8ef68
Merge pull request #23645 from Microsoft/distributeKeyofUnion2
...
Distribute 'keyof' union types (take 2)
2018-04-24 10:09:45 -07:00
Anders Hejlsberg
08c288d4f9
Accept new baselines
2018-04-24 10:02:54 -07:00
Anders Hejlsberg
57ef618120
Add regression test
2018-04-24 10:02:47 -07:00
Anders Hejlsberg
e71afc32ad
Reinstate type simplification for 'keyof T[K]' as target in relation
2018-04-24 10:02:34 -07:00
Andy
59765e2d86
goToDefinition: Also add definitions for symbol if it does not match the signature symbol ( #23657 )
2018-04-24 09:41:47 -07:00
csigs
ac519804e0
LEGO: Merge pull request 23658
...
LEGO: Merge pull request 23658
2018-04-24 09:10:52 -07:00
csigs
b72abdb120
LEGO: check in for master to temporary branch.
2018-04-24 16:10:31 +00:00
Andy
969aa45ea5
Improve error message for unused type ( #23633 )
2018-04-24 08:54:42 -07:00
Andy
eca17ac243
Support import fix even when the error is that a type is used as a value ( #23655 )
2018-04-24 08:54:14 -07:00
csigs
b1baca565b
LEGO: Merge pull request 23650
...
LEGO: Merge pull request 23650
2018-04-24 03:11:07 -07:00
csigs
0e5ea2c8f6
LEGO: check in for master to temporary branch.
2018-04-24 10:10:45 +00:00
csigs
054a6ff354
LEGO: Merge pull request 23644
...
LEGO: Merge pull request 23644
2018-04-23 21:10:42 -07:00
csigs
90500e88df
LEGO: check in for master to temporary branch.
2018-04-24 04:10:22 +00:00
Anders Hejlsberg
f0c3291976
Accept new baselines
2018-04-23 21:09:56 -07:00
Anders Hejlsberg
7befd35009
Add tests
2018-04-23 21:09:49 -07:00
Anders Hejlsberg
2911d5d7d7
Accept new baselines
2018-04-23 20:57:20 -07:00
Anders Hejlsberg
09590bc041
Transform 'keyof (A | B)' to 'keyof A & keyof B'
2018-04-23 20:57:11 -07:00
Andy
fc30bd10e3
Suggestion to convert to ES6 module should only trigger in projects which express some intent to use ES6 ( #23576 )
2018-04-23 16:05:37 -07:00
Sheetal Nandi
6ec763884e
Fix the crash when reporting errors of file that was referenced by inferred project root, is opened right after closing the root file
...
Fixes the crash reported in https://github.com/Microsoft/TypeScript/issues/23255#issuecomment-382653325
2018-04-23 15:36:32 -07:00
Nathan Shively-Sanders
905f9a02ad
module.exports = Entity
is an alias, just like export = Entity
(#23570 )
...
* Make `module.export =` an alias like `export=` is
This breaks a couple of tests for previous workarounds. Fix in upcoming
commits.
* Basically fixes all the breaks, but needs cleanup
* More notes to myself
* Clean up TODOs
* Call mergeSymbolTable and delete export= afterward
instead of basically copying the code myself.
* More cleanup
* Remove unnecessary check in import type checking
* Revert to DIY code.
It is more correct and will go away in a few days.
* Exported class expressions can be used as type
In both JS and TS
* Do not require named class expressions
2018-04-23 15:24:31 -07:00
csigs
ef8af93329
LEGO: Merge pull request 23635
...
LEGO: Merge pull request 23635
2018-04-23 15:11:08 -07:00
csigs
1f753b3962
LEGO: check in for master to temporary branch.
2018-04-23 22:10:46 +00:00
Andy
222f35d927
Make symbol display at ExportSpecifier use 'export', not 'import' ( #23629 )
2018-04-23 13:29:14 -07:00
Anders Hejlsberg
0179d97403
Merge pull request #23592 from Microsoft/improveIndexTypes
...
Support number and symbol named properties with keyof and mapped types
2018-04-23 13:22:56 -07:00
Andy
645258cc7d
Allow getting import completion details with misspelled name ( #23624 )
2018-04-23 11:24:51 -07:00
Andy
2e78d1ef21
getEditsForFileRename: Update tsconfig "files" ( #23625 )
2018-04-23 11:11:06 -07:00