Andrew Branch
a1ae6e2cfb
Clean up memoization when done
2019-07-29 10:21:35 -07:00
Andrew Branch
f953b4d737
Make some easy optimizations
2019-07-29 10:21:35 -07:00
Andrew Branch
19f829a544
Don’t fail when alias isn’t found
2019-07-29 10:21:35 -07:00
Andrew Branch
23daffe2ef
Fix and add tests for export * re-exports
2019-07-29 10:21:34 -07:00
Andrew Branch
670c8f6e47
Add test with nested package.jsons
2019-07-29 10:21:34 -07:00
Andrew Branch
1f6e58d35c
Style nits
2019-07-29 10:21:34 -07:00
Andrew Branch
5c2421df04
Symbol order doesn’t matter here
2019-07-29 10:21:34 -07:00
Andrew Branch
a5f2269d8d
Add note that symbols is mutated
2019-07-29 10:21:34 -07:00
Andrew Branch
8813f02877
Simplify forEachAlias to findAlias
2019-07-29 10:21:34 -07:00
Andrew Branch
c3437d13ae
Inline symbolHasBeenSeen
2019-07-29 10:21:33 -07:00
Andrew Branch
af96ac4994
Add another reexport test
2019-07-29 10:21:33 -07:00
Andrew Branch
60478c645b
Rename things and make comments better
2019-07-29 10:21:33 -07:00
Andrew Branch
426c28b8fd
Fix offering auto imports to paths within node modules
2019-07-29 10:21:33 -07:00
Andrew Branch
341fb3a56d
Use getModuleSpecifier instead of custom hack
2019-07-29 10:21:33 -07:00
Andrew Branch
d02d6918ec
Really fix re-exporting
2019-07-29 10:21:32 -07:00
Andrew Branch
8b87aea77c
Refactor findAlias to forEachAlias to reduce iterations
2019-07-29 10:21:32 -07:00
Andrew Branch
b646317d37
Update comment
2019-07-29 10:21:32 -07:00
Andrew Branch
410ade094b
Remove unused triple-slash ref
2019-07-29 10:21:32 -07:00
Andrew Branch
e9078633b2
Remove other unused method
2019-07-29 10:21:32 -07:00
Andrew Branch
372265c059
Remove unused method
2019-07-29 10:21:32 -07:00
Andrew Branch
c60d078108
Change JS node core module heuristic to same-file utilization
2019-07-29 10:21:31 -07:00
Andrew Branch
6d582c90e8
Fix re-exporting
2019-07-29 10:21:31 -07:00
Andrew Branch
9ca24b1bce
Make same fix in getCompletionDetails
2019-07-29 10:21:31 -07:00
Andrew Branch
5e60836c9d
Use type acquisition as a heuristic for whether a JS project is using node core
2019-07-29 10:21:31 -07:00
Andrew Branch
528f873b2d
Don’t filter when there’s no package.json, fix scoped package imports
2019-07-29 10:21:31 -07:00
Andrew Branch
52a0a00a16
Make first test pass
2019-07-29 10:21:30 -07:00
Andrew Branch
c33bf88567
Add failing test
2019-07-29 10:21:30 -07:00
Andrew Branch
3e95a35617
Move package.json related utils to utilities
2019-07-29 10:21:30 -07:00
Anders Hejlsberg
7ab5d83cff
Merge pull request #32594 from microsoft/fix32416
...
Instantiate contextual type for object literal methods
2019-07-29 10:08:47 -07:00
Anders Hejlsberg
4a17581f67
Accept new baselines
2019-07-28 09:06:04 -07:00
Anders Hejlsberg
a717d3ab44
Add regression test
2019-07-28 09:05:57 -07:00
Anders Hejlsberg
58ff76abf6
Properly instantiate contextual type for object literal methods
2019-07-28 09:01:11 -07:00
Andrew Branch
3d09010dc8
Intersect 'this' types in union signatures ( #32538 )
...
* Intersect this types in union signatures
* Actually update baselines
2019-07-26 14:56:03 -07:00
Wesley Wigham
2a4930f4ec
Bind a jsdoc enum as SymbolFlags.TypeAlias and not SymbolFlags.Enum ( #32520 )
...
* Bind a jsdoc enum as SymbolFlags.TypeAlias and not SymbolFlags.Enum
* Actually include an @enum tag as a declaration
* Add enum tag refs into a couple more syntax kind lists
* accept symbol baseline update
2019-07-26 13:57:22 -07:00
Sheetal Nandi
2fe3c1b3b7
Merge pull request #32561 from microsoft/retainFreshlyCreatedProject
...
Retain the configured project opened during opening client file even if opened file isnt included in that project
2019-07-26 12:18:26 -07:00
Jesse Trinity
599e36a068
Decrement line ends if they end with a carriage return. ( #31220 )
...
* Decrement line ends if they end with a carriage return.
* Changed handling of newlines and inlined regex operation.
* fixed misname of hintSpan
* added tests
* revert inline of regex match and use getLineEndOfPosition
* fixed lint error and changed a silly thing in tests
2019-07-25 21:29:12 -07:00
Sheetal Nandi
10ee85c98c
Retain the configured project opened during opening client file even if opened file isnt included in that project
...
This helps not create and remove project on every open if tsconfig file isnt referenced by any open file
2019-07-25 12:38:26 -07:00
Sheetal Nandi
ee623c1ae6
Add test case before change where config project is created just to remove it
2019-07-25 12:04:13 -07:00
Nathan Shively-Sanders
772bee5e84
Property assignment uses parent type annotation ( #32553 )
...
* Property assignment uses parent type annotation
First draft, will write full explanation later.
Also makes sure that jsdoc is ignored in TS. It was not before.
* Update baselines
2019-07-25 10:23:03 -07:00
Andrew Branch
aa12ec440c
Fix smart select on last blank line of file ( #32544 )
...
* Fix SmartSelection on last blank line of file
* Add baseline
2019-07-25 09:47:57 -07:00
Sheetal Nandi
e8966ce033
Merge pull request #32531 from microsoft/importFixCompletion
...
When the exported symbol is merged symbol from declaration use that name
2019-07-24 10:46:50 -07:00
Anders Hejlsberg
34dd4b8da5
Merge pull request #32386 from microsoft/fix32349
...
Instantiate contextual types for return expressions
2019-07-23 17:33:25 -07:00
Wesley Wigham
40fd4efdf6
Strip more kinds of timestamps and versions from dockerfile output ( #32519 )
...
* Strip more kinds of timestamps and versions from dockerfile output, rewrite office-ui-fabric dockerfile to use new lerna build system
* Add another filter for just output
* Update user baselines (#23 )
* Update user baselines (#24 )
* Strip only maybe-present timestamps
* More lenient timestamp filter
* Update user baselines (#25 )
* Simplify and enhance vscode dockerfile to use nightly ts in ts extension, too
* Update user baselines (#26 )
* Update user baselines (#27 )
2019-07-23 17:14:50 -07:00
Sheetal Nandi
b8e779d89a
When the exported symbol is merged symbol from declaration use that name to verify quality
...
Fixes #27880
2019-07-23 16:31:59 -07:00
Anders Hejlsberg
742cabaac4
Merge branch 'master' into fix32349
2019-07-23 10:31:46 -07:00
Anders Hejlsberg
9ec71c3f97
Merge pull request #32460 from microsoft/fix32434
...
Improve type inference for types like 'T | Promise<T>'
2019-07-23 10:28:02 -07:00
Anders Hejlsberg
564685692f
Accept new baselines
2019-07-23 06:38:58 -07:00
Anders Hejlsberg
3206f5fb94
When inferring from XXX to T | XXX make no inferece for T (instead of never)
2019-07-23 06:38:49 -07:00
Ron Buckton
d982014d73
Update __awaiter to be more spec compliant ( #32462 )
...
* Update __awaiter to be more spec compliant
* Add awaiter evaluation test
2019-07-22 17:23:35 -07:00
Ron Buckton
47e3fedb5d
Fix object spread runtime semantics ( #32514 )
2019-07-22 16:46:09 -07:00