Sheetal Nandi
ea2352acea
Handle effective type roots and type ref resolution sharing cache
...
// TODO: update incremental tests to actually verify the cache
2025-05-16 17:11:16 -07:00
Sheetal Nandi
69c37d3c74
Test cases for shared resolutions and effective type roots calculation
2025-05-16 17:09:19 -07:00
Sheetal Nandi
80ba2955a4
Real sharing across projects
2025-05-16 17:09:09 -07:00
Sheetal Nandi
ee741df30d
Factor out cache to be shared and not shared. Projects still are not sharing caches
2025-05-16 17:05:53 -07:00
Sheetal Nandi
0633e0e8b2
Dont pollute resolution so we can reuse it across projects
2025-05-16 17:02:31 -07:00
Sheetal Nandi
fb623b90a3
The redirected reference use that projects tsconfig directory as the root directory for watching resolutions
2025-05-16 16:58:32 -07:00
Sheetal Nandi
b3ab40123a
Handle package json lifetime
...
- All the package json watched are ref counted if watched
- Not watched package json locations are released
- First of this kind are when resolution from global cache fails, we dont watch those locations so not safe to have them cached
- If we are looking for a file and the file is not found, the package json locations looked up are not watched
2025-05-16 15:35:00 -07:00
Sheetal Nandi
a51e79afc3
Resolutions in cache stays for lifetime..
2025-05-16 15:31:45 -07:00
Sheetal Nandi
254139c45f
In preparation of sharing resolutions, watch the resolutions right away instead of defering external module reoslutions to watch all failed lookup locations
2025-05-16 15:30:31 -07:00
Sheetal Nandi
3b993fffdd
Make sure reused resolutions from file are accounted if all resolutions are reused/are resolved to ambient module names
2025-05-16 14:56:21 -07:00
Sheetal Nandi
2f52238b6e
Add incremental test where cache should have same resolutions as whats in the program
...
This shows cache is holding onto resolutions that are no longer needed by program because either those modules arent present in file or is determined to be ambient resolution
2025-05-16 14:56:21 -07:00
Sheetal Nandi
c9dcebe350
Tests
2025-05-16 14:56:21 -07:00
Sheetal Nandi
2a08064091
unresolved imports of empty array and undefined are same
2025-05-16 14:42:32 -07:00
Sheetal Nandi
8e23cb4adc
Now that work with unresolved imports cleanup is done, remove the temp logging added
2025-05-16 14:42:27 -07:00
Sheetal Nandi
cbbbf4aae2
If the there is no change detected in module resolution we shouldnt need to update last cached unresolved imports just because we have new program
2025-05-16 14:36:49 -07:00
Sheetal Nandi
dad8851564
Update cached import list update as part of resolving modules instead of another pass
2025-05-16 14:36:41 -07:00
Sheetal Nandi
163778335c
Use globalCacheResolution to invalidate resolutions on typings update
2025-05-16 14:36:28 -07:00
Sheetal Nandi
f659bec764
If typing installer is disabled invalidate all the resolutions from typings cache
...
This change finally makes all tests pass incremental tests for matching resolutions and program structuture
2025-05-16 14:36:11 -07:00
Sheetal Nandi
457d9b725a
Do not update typings for project if type aquisition is disabled
2025-05-16 14:35:46 -07:00
Sheetal Nandi
d839caea7f
Update the unresolved import list only if it will be used
2025-05-16 14:35:35 -07:00
Sheetal Nandi
e89404fa2f
Close watchers for TI that are no longer needed
2025-05-16 14:31:50 -07:00
Sheetal Nandi
3ae4463ad2
When type acquisition is disabled, remove the typing files set as root
...
Also cache the inferred type acquition for inferred project
2025-05-16 14:31:29 -07:00
Sheetal Nandi
cae589d277
Handle unnecessary typings request force just because root files change
...
First unresolved import gets the typing file into cache and sets it as root,
This results in scheduling new typing request with that unresolved import missing
The result will come back with typing file that is omitted, so root file will change but file will still be part of program so its not really removed from program
2025-05-16 14:30:54 -07:00
Sheetal Nandi
592bba486b
Verify getUnresolvedImports incrementally
2025-05-16 14:30:37 -07:00
Sheetal Nandi
d81f147bc7
Add test when type acquisition changes
2025-05-16 14:29:04 -07:00
Sheetal Nandi
31009c830f
Write log about unresolved imports calculation
2025-05-16 14:28:42 -07:00
Andrew Branch
81c951894e
Fix getResolvePackageJsonImports utility ( #61707 )
2025-05-15 17:49:35 -07:00
Mateusz Burzyński
b86ab7dbe0
Stop reassigning .valueDeclaration to avoid replacing earlier declarations with late ones ( #60857 )
2025-05-15 09:51:34 -07:00
Mateusz Burzyński
0fb5e3a8cf
Preserve type parameter constraint in emitted mapped types while preserving their distributivity ( #54759 )
2025-05-12 10:54:34 -07:00
Ulrich Stark
7156300cee
Fix unwanted constant comparisons potentially causing bugs ( #61655 )
2025-05-09 15:20:44 -07:00
Gabriela Araujo Britto
0ee67b517f
Add configurable maximum hover length ( #61662 )
2025-05-09 13:31:39 -07:00
Ron Buckton
8c62e08448
DOM Update 2025-05-02 ( #61647 )
2025-05-07 18:02:49 -04:00
Joseph Martin
d88d3a4681
docs(lib): add @throws JSDoc for JSON methods ( #61596 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2025-05-02 15:20:58 -07:00
Zzzen
5e36778330
check usage before declaration for decorators ( #50372 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2025-05-02 14:01:09 -07:00
Zzzen
e37ca49c70
arguments should not be allowed in class static block (#48172 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com >
2025-05-02 06:38:33 -07:00
Oleksandr T.
11e7932759
fix(61258): Renaming namespace with const enum doesn't update enum references ( #61263 )
2025-04-24 14:35:05 -07:00
Tom Mrazauskas
38b78b70d2
Add the .getNonPrimitiveType() method to the TypeChecker ( #61562 )
2025-04-24 14:08:52 -07:00
Hans Brende
75202af2cc
Fix #61098 ( #61113 )
2025-04-24 13:55:56 -07:00
dependabot[bot]
62b172b515
Bump the github-actions group across 1 directory with 3 updates ( #61601 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-21 10:15:39 -07:00
Sebastian "Sebbie" Silbermann
0a1aa6d6eb
Deemphasize old JSX transform ( #61586 )
2025-04-17 11:02:55 -07:00
Andrew Branch
6afd0fb73f
Fix crash when serializing default export in error ( #61582 )
2025-04-16 09:43:33 -07:00
Gabriela Araujo Britto
069de743db
Expandable hover ( #61492 )
2025-04-15 12:14:38 -07:00
Mateusz Burzyński
eef7c14ef1
Treat functions with @type tags on parameters as typed in JS files ( #61177 )
2025-04-14 15:35:20 -07:00
Jake Bailey
83dc0bb2ed
Convert release publishing inputs into parameters ( #61523 )
2025-04-04 12:22:18 -07:00
Vitaly
ba663f6ac2
Exclude completions of binding pattern variable initializers ( #52723 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2025-04-02 13:47:43 -07:00
dependabot[bot]
7205eda454
Bump github/codeql-action from 3.28.12 to 3.28.13 in the github-actions group ( #61509 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 13:54:15 -07:00
Mateusz Burzyński
89c572ca0c
Fixed a symbol display crash on expando members write locations ( #55478 )
2025-04-01 13:40:59 -07:00
Jake Bailey
7b26d2eba5
Fix incorrect name in new release pipeline ( #61514 )
2025-03-31 16:19:05 -07:00
Jake Bailey
c7a559eeae
Add new release publisher yaml ( #61491 )
...
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
2025-03-31 16:10:51 -07:00
Fróði Karlsson
29e6d6689d
Fix lib.includes('dom') check in containerSeemsToBeEmptyDomElement ( #61481 )
2025-03-25 16:24:52 -07:00