Commit graph

29822 commits

Author SHA1 Message Date
Anders Hejlsberg
9ed73ebbbf
Properly handle control flows from returns in try/catch within IIFE (#36901)
* Properly handle control flows from returns in try/catch within IIFE

* Accept new baselines

* Add tests

* Accept new baselines

* When end of finally is unreachable, end of try statement is too

* Add additional test case
2020-02-25 16:14:00 -08:00
Sheetal Nandi
e89df5ce6f
Handle getScriptVersion correctly to ensure program structure is checked correctly (#36808)
* Fix tests when there are project references but has disableSourceOfProjectReferenceRedirect

* Handle getScriptVersion correctly to ensure program structure is checked correctly
Fixes #36748

* Harness's language service host doesnt have getProjectVersion.
This means earlier we were creating fresh program everytime we did LS operation
Now we reuse same program, so quick info depends on order of quickinfo demands

* Because same program is used, it unvails a bug that if `export=` is evaluated before finding references, it cant find all definitions from the merge

* Update src/server/project.ts

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Make clearSourceMapperCache required

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-02-25 16:11:21 -08:00
Wesley Wigham
e99173a6f9
Ignore data- props when excess property checking (#36952) 2020-02-25 15:52:24 -08:00
Wesley Wigham
d92aca2715
Reduce lerna loglevel (#37024)
* Reduce lerna loglevel

* Also add silent
2020-02-25 14:23:55 -08:00
Orta
8a797cad2b
Adds floating block comments to the outlining spans response (#36880)
* Adds floating block comments to the outlining spans response

* Only use one route for grabbing outline nodes, which now includes special casing the EOF token
2020-02-25 17:09:16 -05:00
Ryan Cavanaugh
43863cafe2
Check for undefined source.symbol (#37021)
Fixes #37014
2020-02-25 13:46:24 -08:00
Wesley Wigham
3e4ce4777d
Support declaration emit for late bound element accesses assigned to functions in both TS and JS (#36593) 2020-02-25 13:45:27 -08:00
Wesley Wigham
7d8dc730b7
Baseline arity checks for jsx sfc tags (#36643)
Finish comment

PR feedback
2020-02-25 13:44:22 -08:00
Wesley Wigham
e536c89872
Add js-equivalent test for the binary expression stress and introduce trampoline into getJSSyntacticDiagnosticsForFile (#36724)
* Add js-equivalent test for the binary expression stress and introduce trampiline into getJSSyntacticDiagnosticsForFile

* Update src/compiler/parser.ts

Comment text update

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Fix lint

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-02-25 13:29:34 -08:00
Wesley Wigham
01f81dfc00 Add helpers to helper list, per comment on #36806 2020-02-25 11:46:05 -08:00
Ryan Cavanaugh
c22cdb446a
Harden telemetryOnOpenFile (#36993) 2020-02-25 11:32:32 -08:00
Wesley Wigham
e54b796301
Declare dependencies between helpers in the declaritive fashion introduced by #35967 (#37001) 2020-02-25 11:29:59 -08:00
Wesley Wigham
e120762390
Remove unneeded branch from getHelperName (#36998) 2020-02-25 11:29:45 -08:00
csigs
26184f0ec8
LEGO: Merge pull request 37018
LEGO: Merge pull request 37018
2020-02-25 08:11:01 -08:00
csigs
5af94fa0ca LEGO: check in for master to temporary branch. 2020-02-25 16:10:24 +00:00
Ron Buckton
177713ef45
Switch Debug.assertX functions to use asserts conditions (#36995)
* Switch Debug.assertX functions to use asserts conditions

* Replace assert functions with ts.noop when assertion level too low
2020-02-24 18:20:58 -08:00
Andrew Casey
b5bd38bcdc
Convert UnionOrIntersectionType.couldContainTypeVariables to ObjectFlags (#36947)
...to save space (and possibly to reduce de-opts, since it appears to be
lazily set).
2020-02-24 18:18:39 -08:00
Andrew Casey
865c1209de
Use couldContainTypeVariables to short-circuit instantiateType (#36951)
This is particularly impactful for large unions of string literals.
2020-02-24 17:50:44 -08:00
Wesley Wigham
6d1361c192 Add --force to vue-next dockerfile since latest image version errors without it 2020-02-24 17:38:16 -08:00
TypeScript Bot
60e172d21d
Update user baselines (#37003) 2020-02-24 17:17:07 -08:00
Wesley Wigham
544f4413b4
Rescedule nightly publish to 11pm pst, (7am ust)
So a nightly publish actually happens at what is night for most of the team.
2020-02-24 17:13:00 -08:00
TypeScript Bot
8fe8284370
Update user baselines (#36999) 2020-02-24 16:18:18 -08:00
Nathan Shively-Sanders
3e3df8702c
Fix crash on aliased,exported @enum tag in jsdoc (#36996)
THe code to bind `@enum` and `@typedef` didn't handle the case that the
`@enum` was on a property assignment to an alias of module.exports.
Specifically, `x` needs to be correctly aliased to the file's symbol in
the example below:

```
var x = module.exports = {};
/** @enum {string} */
x.E = {
  A: "A"
};
```
2020-02-24 16:13:18 -08:00
Wesley Wigham
65e7acce58
Use getters to define live export bindings refresh (#35967)
* use getters to define live export bindings

* fix scoping in export* helper

* Object.defineProperty cannot be used in ES3 target

* Accept changed baselines

* Use function expression, not arrow function

* Update importStarHelper to match export helper in binding-making

* Fix whitespace

* Adjust whitespace in edited helpers

* Use new helper for setting bindings, use unscoped __exportStar helper for exports so helpers get reused more

* Accept updated baselines

* Use __createBinding for individual reexports when target is es3

* Remove unneeded type assertion

* Singeline the helpers

* Add check for createBinding helper, accept updated baselines with shortened helper

Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
2020-02-24 15:36:14 -08:00
TypeScript Bot
7a3b6b4f4f
Update user baselines (#36992) 2020-02-24 14:27:34 -08:00
csigs
4e16be6103
LEGO: Merge pull request 36991
LEGO: Merge pull request 36991
2020-02-24 14:11:09 -08:00
csigs
9ec9d94548 LEGO: check in for master to temporary branch. 2020-02-24 22:10:34 +00:00
TypeScript Bot
3edf5f53d6
Update user baselines (#36973) 2020-02-24 13:46:59 -08:00
Ryan Cavanaugh
2b69b2281a
Properly handle both special export forms when renaming (#36914)
* Properly handle both special export forms when renaming

Fixes #36713

* Lint
2020-02-24 13:17:02 -08:00
Wesley Wigham
3bec9ad2c5
Set CI=true in the office-ui-fabric docker test so it doesnt use a progress indicator (#36982) 2020-02-24 12:45:14 -08:00
Ron Buckton
fd8000dd59
Fix class emit in converted loop body (#36795) 2020-02-24 10:55:13 -08:00
Ryan Cavanaugh
fcd55c21a1
Update CONTRIBUTING.md (#36553) 2020-02-24 09:00:24 -08:00
csigs
a707800965
LEGO: Merge pull request 36980
LEGO: Merge pull request 36980
2020-02-24 08:10:59 -08:00
csigs
a2bb27cb2c LEGO: check in for master to temporary branch. 2020-02-24 16:10:23 +00:00
Wesley Wigham
c6cdc63b9c
sanitize yarn-node path in output (#36953)
* sanitize yarn-node path in output

* Update user baselines (#58)

Co-authored-by: Wesley Wigham <wwigham@gmail.com>

Co-authored-by: TypeScript Bot <ts_bot@rcavanaugh.com>
2020-02-21 16:38:00 -08:00
Wesley Wigham
ebca423a6e
Add elaboration & quickfix for async-able arrow function (#36342) 2020-02-21 15:51:02 -08:00
Nathan Shively-Sanders
6b645f582b
Fix find-refs crash on JSDocNamepath (#36941)
JSDocNamepaths span a lot of identifiers that we don't actually care
about, so it's incorrect for createChildren to add its children as
synthetic nodes.
2020-02-21 15:37:11 -08:00
Wesley Wigham
7bcb7232a1
Name workflow 2020-02-21 14:52:57 -08:00
Wesley Wigham
83271b7d0c
Probably dont need artifact drops on release branch PRs 2020-02-21 14:49:47 -08:00
Wesley Wigham
b5cb71aaed
Add task mirroring devops release branch artifact building pipeline 2020-02-21 14:49:00 -08:00
TypeScript Bot
c550c7edee
Update user baselines (#36942) 2020-02-21 14:42:27 -08:00
Wesley Wigham
9190fac5fd
Some would say it's trigger'd 2020-02-21 14:20:19 -08:00
Wesley Wigham
57df4663ad
Publishing to npm isnt the default on github for reasons 2020-02-21 10:43:02 -08:00
Wesley Wigham
5c7ef4c48a
Make the nightly publish cron task also respond to a publish-nightly event 2020-02-21 10:40:05 -08:00
Wesley Wigham
d95942b05f
Port nightly publish task to actions 2020-02-21 10:35:44 -08:00
Nathan Shively-Sanders
a5061eff19
Update scripts for octokit 17 (#36915)
* Update scripts for octokit 17

Also put playwright in alphabetical order, npm seems to like that.

* back to passing auth in the ctor I GUESS
2020-02-21 09:49:02 -08:00
Klaus Meinhardt
24dd93fc2b
Fix access of protected members on generic this-type (#36928)
Fixes: #36926
2020-02-21 09:33:21 -08:00
csigs
ab1b17b9cf
LEGO: Merge pull request 36934
LEGO: Merge pull request 36934
2020-02-21 08:11:07 -08:00
csigs
4bf28cb133 LEGO: check in for master to temporary branch. 2020-02-21 16:10:25 +00:00
csigs
17e9b76343
LEGO: Merge pull request 36923
LEGO: Merge pull request 36923
2020-02-21 02:11:05 -08:00