Sheetal Nandi
0ec97ef6e5
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
2024-09-20 14:26:10 -07:00
Sheetal Nandi
4935835e3a
Make sure reused resolutions from file are accounted if all resolutions are reused/are resolved to ambient module names
2024-09-20 12:02:03 -07:00
Ben Lickly
8230bc66a7
Drop unnecessary type arguments in the isolated declarations quick fix ( #59665 )
...
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-09-16 10:35:50 -07:00
Isabel Duan
52eaa7b02f
Enable --isolatedDeclarations on TS codebase ( #59635 )
...
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-09-15 18:10:52 -07:00
Isabel Duan
89e004f632
add support for autoimports/moveToFile to generate aliased named imports ( #59885 )
2024-09-10 15:38:37 -07:00
Mateusz Burzyński
53039d3f05
Include all type parameters in completions within type parameters' constraints ( #56543 )
2024-09-09 10:35:58 -07:00
Sheetal Nandi
87d0e771a8
Fix issues with global typings cache and what gets watches ( #59869 )
2024-09-05 13:06:30 -07:00
Armando Aguirre
6260f7ab78
Added typeToTypeNode with truncation ( #59332 )
...
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-30 14:16:18 -07:00
Jack Works
47ae752c23
refactor: improve string export name completions ( #58818 )
2024-08-26 12:23:05 -07:00
Andrew Branch
a86b5e2b01
Fix error message for type-only import of ES module from CJS ( #59711 )
2024-08-23 12:05:40 -07:00
Oleksandr T.
3abe069fd2
fix(59649): ts Move to a new file doesn't respect importModuleSpecifier setting ( #59670 )
2024-08-22 16:46:28 -07:00
Andrew Branch
a5eec2485f
Simplify handling of node:-prefixed modules in auto-imports ( #59702 )
2024-08-21 16:43:21 -07:00
navya9singh
2192336dfe
Fixing delay caused in vscode due to pasteEdits ( #59542 )
2024-08-19 17:45:57 -07:00
Gabriela Araujo Britto
1e7889c697
Enable existing commit characters in certain locations where isNewIdentifier is true ( #59523 )
2024-08-19 13:24:03 -07:00
Oleksandr T.
f850298f70
fix(59558): Implement Interface Quick Fix generates duplicate declarations ( #59563 )
2024-08-16 15:17:58 -07:00
Isabel Duan
26c4320757
also return classes when caling goToDef on a constructor call ( #59421 )
2024-08-16 13:58:29 -07:00
Titian Cernicova-Dragomir
52395892e0
Set declarationMap to false in transpileModule. ( #59642 )
2024-08-15 16:57:37 -07:00
Andrew Branch
bcb1545aa3
Allow existing imports in file to supersede package.json filter ( #59604 )
2024-08-15 15:00:31 -07:00
Zzzen
a0530722fc
Improve inlining of string variables in template literals ( #54849 )
2024-08-15 10:46:22 -07:00
Jake Bailey
25e09d9fc3
Add custom eslint rule 'no-array-mutating-method-expressions' ( #59526 )
2024-08-14 09:28:57 -07:00
Jake Bailey
195203e971
Add regex eslint plugin, fix lints ( #59371 )
2024-08-13 14:16:53 -07:00
Oleksandr T.
7049af5f4f
fix(58166): Class parameter property with initializer before required property emits non-nullable parameter for declaration emit ( #58177 )
2024-08-12 15:42:09 -07:00
Sung Ye In
f3b118ed21
fix: filtering promise properties in object literal completion ( #59316 )
2024-08-09 13:14:30 -07:00
Andrew Branch
09caaf60aa
Add autoImportSpecifierExcludeRegexes preference ( #59543 )
2024-08-09 11:12:18 -07:00
Armando Aguirre
5f79e16d33
Refactored node builder flags and tests ( #59440 )
...
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-08 13:19:24 -07:00
Jake Bailey
5e9e6ad295
Fix accidental relative imports from non namespace barrels ( #59544 )
2024-08-08 09:38:10 -07:00
Mateusz Burzyński
d7ff565b6c
Fixed inlay hints for inferred type predicates ( #59441 )
2024-07-29 16:25:36 -07:00
Mateusz Burzyński
451388cfd5
Fixed quick fixes for inferred type predicates ( #58958 )
2024-07-26 10:21:18 -07:00
Isabel Duan
107a007a9a
organizeImports makes no changes if there are parse errors in the sourceFile (#58903 )
2024-07-25 16:28:19 -07:00
Oleksandr T.
7319968e90
fix(59116): Codefix add missing function declaration inserts function in wrong file ( #59213 )
2024-07-24 19:45:52 -07:00
Jake Bailey
3f6f3164d6
Remove stableSort, rename sort to toSorted ( #55728 )
2024-07-23 18:17:07 -07:00
Gabriela Araujo Britto
8a36e26ac6
Add commit characters to protocol ( #59339 )
2024-07-23 12:32:38 -07:00
Mateusz Burzyński
a4ae3c46b6
Don't crash when observing invalid exports in any kind of container ( #59376 )
2024-07-22 15:58:39 -07:00
Ron Buckton
6f530cc4ce
Add TReturn/TNext to Iterable et al ( #58243 )
2024-07-19 13:14:00 -04:00
Mateusz Burzyński
45062406e4
Fixed crash on authored import type nodes when serializing for declarations ( #59160 )
2024-07-18 08:41:47 +09:00
Andrew Branch
a9139bfdfe
Only look up package.json type if module is node16/nodenext or file is in node_modules ( #58825 )
...
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-07-17 09:23:51 -07:00
Oleksandr T.
bf39eccee6
fix(59304): Convert to ESM uses template strings instead of string literals ( #59306 )
2024-07-16 14:02:39 -07:00
Andrew Branch
64f89e7961
Fix codefix crash on circular aliases ( #59215 )
2024-07-10 15:37:12 -07:00
Mateusz Burzyński
8d84a68776
Fixed crash when finding all references when JSDocImportTags are involved ( #59207 )
2024-07-09 13:59:54 -07:00
navya9singh
ded36b21ac
pasteEdits returns no edit when there are no imports needed ( #59189 )
2024-07-09 10:27:41 -07:00
Daniel Rosenwasser
a6fb4dc103
Create a SourceFile-level indirection on children maps, store SyntaxList children directly on nodes. ( #59154 )
2024-07-08 16:55:41 -07:00
Sheetal Nandi
247a98335d
In project, instead of iterating over program files to determine if file needs to be detached, do it through existing mechanism of releasing oldSourceFile ( #59181 )
2024-07-08 13:37:44 -07:00
navya9singh
7bd7dfc007
Paste without imports ( #59093 )
2024-07-01 15:00:29 -07:00
Sheetal Nandi
6c68fdd4b5
Delay the calculation of common source root if it would be needed when calculation dts files ( #59070 )
2024-06-28 14:29:11 -07:00
Lars Kappert
752135eb40
Remove unused exports & dead code (using Knip) ( #56817 )
...
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-06-27 14:24:01 -07:00
Jake Bailey
ef079c9dd3
Update to TS 5.5.2 ( #58947 )
2024-06-20 12:34:07 -07:00
Jake Bailey
47bb090ded
Defer creation of barebonesLibSourceFile ( #58931 )
...
Co-authored-by: Titian Cernicova-Dragomir <tcernicovad1@bloomberg.net>
2024-06-19 11:34:52 -07:00
Oleksandr T
e8fca15b14
fix(58801): "Move to file" on global code unnecessarily imports/exports, generates invalid code ( #58811 )
2024-06-18 17:24:22 -07:00
Daniel Rosenwasser
4935e14901
Use more explicit operations in core helpers (and other nits) ( #58873 )
2024-06-18 16:00:00 -07:00
Isabel Duan
f999951015
fix55816: exclude files with re-exports if excluded by preferences.autoImportFileExcludePatterns ( #58537 )
...
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-06-18 14:03:18 -07:00