Commit Graph
25609 Commits
Author SHA1 Message Date
Gabriela Araujo BrittoandGitHub 03951f2ddf Consider index signatures as optional properties in contextual type discrimination (#54596) 2023-06-13 09:57:51 -07:00
Mateusz BurzyńskiandGitHub c565827b4f Fixed some string literal argument completions depending on resolved signature (#53996) 2023-06-13 09:34:19 -07:00
Maria José SolanoandGitHub 31936ea36e Add inline variable refactor (#54281) 2023-06-12 20:03:43 -07:00
Anders HejlsbergandGitHub 89cbea8e16 No this type arguments in base constraints (#54536) 2023-06-12 19:07:44 -07:00
Jack WorksandGitHub e60cf121ae Add check for reference-compared literals to JS files (#49164) 2023-06-12 16:02:25 -07:00
GuLeweiandGitHub 6a996ac995 Additional fix to issue #50509 (#54423) 2023-06-12 15:31:51 -07:00
Mateusz BurzyńskiandGitHub d95caa51fc Fixed a regression with string completions not being available directly in arguments typed using rest parameter (#54588) 2023-06-12 15:16:08 -07:00
Mateusz BurzyńskiandGitHub 9d17b345b4 Revert collecting only outermost intra expression inference sites (#54613) 2023-06-12 10:09:07 -07:00
Ron BucktonandGitHub 72406c6892 Fix regression in WeakMap constructor type (#54592) 2023-06-09 17:17:27 -04:00
Oleksandr TandGitHub af075841c5 fix(54580): Bad operation for find-all-references on import.meta when meta occurs in a comment (#54581) 2023-06-09 13:48:36 -07:00
leoelmandGitHub eeed72171f Type definitions for 'Symbols as WeakMap keys' (#76) (#54195)
Signed-off-by: Leo Elmecker <lelmeckerpla@bloomberg.net>
2023-06-09 14:20:26 -04:00
Andrew BranchandGitHub 2f4962a89f Remove implicit tests/cases/compiler path prefix from VFS test files (#54557) 2023-06-09 09:23:21 -07:00
Andrew BranchandGitHub d5a6c8edc6 Test harness fixes (#54556) 2023-06-06 17:22:33 -07:00
Oleksandr TandGitHub a6d9858383 fix(54068): Organize Imports removes first deprecated JSDoc comment (#54071) 2023-06-06 16:48:03 -07:00
Wesley WighamandGitHub 3cfd6d2b87 Optimize eagerly calculating CouldContainTypeVariables during object type instantiation (#54538) 2023-06-06 14:14:49 -07:00
Sheetal NandiandGitHub 3c4c060dff Adds tests and fixes issues by verifying incremental project updates are handling language service ref counting correctly (#54504) 2023-06-06 11:11:14 -07:00
Oleksandr TandGitHub 93ac5c6529 fix(54463): Move to existing file — Error: Debug Failure. at doChange4 (#54482) 2023-06-06 09:56:03 -07:00
Jake BaileyandGitHub e3c5209ae2 Ensure we don't overwrite computed CouldContainTypeVariables in new optimization (#54507) 2023-06-05 15:31:19 -07:00
Andrew BranchandGitHub 160d1b7d0a Process only tsconfig-referenced files in compiler tests with tsconfig files (#54506) 2023-06-05 15:05:50 -07:00
Mateusz BurzyńskiandGitHub 9583850fa7 Deconflict values of CheckMode.RestBindingElement and CheckMode.TypeOnly (#54540) 2023-06-05 13:37:38 -07:00
Mateusz BurzyńskiandGitHub 4749c38e47 Only collect outermost intra expression inference sites (#54186) 2023-06-05 12:40:11 -07:00
Oleksandr TandGitHub 67299ed267 fix(54458): The inlay hint does not handle TypeScript's spread operator well (#54503) 2023-06-05 11:13:14 -07:00
e8c7927641 feat(lib/esnext): add change array by copy types (#51367)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
Co-authored-by: Albert Arvidsson <albert.arvidsson@gmail.com>
2023-06-02 09:48:56 -07:00
Mateusz BurzyńskiandGitHub 2fb0267630 Treat this as a constant reference for purpose of narrowing using aliased expressions (#54347) 2023-06-01 16:44:53 -07:00
Emma HamiltonandGitHub d49a28534a Use custom conditions in path completions (#54332) 2023-06-01 16:16:50 -07:00
Oleksandr TandGitHub b03926ea78 fix(54411): Compiled code contain jsx code (#54425) 2023-06-01 14:01:25 -04:00
Andrew BranchandGitHub 23d48364e4 Add to module resolution tracing (#54478) 2023-06-01 10:03:40 -07:00
Andrew BranchandGitHub 1e0b2f4912 Code fix should prefer import type (#54255) 2023-06-01 09:57:08 -07:00
Ron BucktonandGitHub 4c01b2f9ee Fix incorrect 'this' substitution in decorated static 'accessor' fields (#54474) 2023-05-31 18:17:43 -04:00
Oleksandr TandGitHub d495200a4a fix(54366): bug: getCodeFixesAtPosition fails when TS2339 diagnostic paired with large pojo; Debug Failure. False expression: Token end is child end (#54432) 2023-05-30 13:47:31 -07:00
Andrew BranchandGitHub fec0bd3275 Resolve tslib re-exports before checking arity (#54450) 2023-05-30 13:47:06 -07:00
Daniel RosenwasserandGitHub 63a210bd1d Use replaceAll instead of an incorrect RegExp for tsserver log sanitization. (#54454) 2023-05-30 12:51:56 -07:00
Isabel DuanandGitHub ca0fafd694 add baseline for linked editing (#54315) 2023-05-26 16:01:29 -07:00
Jake BaileyandGitHub 544d43286a Fix fs.watch callback type for new @types/node (#54417) 2023-05-26 15:29:11 -07:00
Oleksandr TandGitHub d762534463 fix(54383): Declare method quick fix not returned for #private method (#54400) 2023-05-26 10:06:20 -07:00
Maria José SolanoandGitHub 98ed0eb94c Localize refactor descriptions (#54379) 2023-05-26 10:06:12 -07:00
Mateusz BurzyńskiandGitHub 2f626bff03 Elaborate errors on const asserted expressions (#54396) 2023-05-26 10:05:33 -07:00
Anders HejlsbergandGitHub f5ab714d1f Suppress error caused by intermediate types in getTypeOfExpression (#54380) 2023-05-26 09:30:06 -07:00
Sheetal NandiandGitHub c64a378ef9 Handle already released source files that dont match scriptKind (#54401) 2023-05-25 15:58:22 -07:00
Russell DavisandGitHub da686774dc Formatter: fix indentation of comments at end of range (#54250) 2023-05-25 13:13:53 -07:00
Oleksandr TandGitHub 8db251fb47 fix(52517): JSDoc Comment Template not provided when unrelated JSDoc with tag exists (#54132) 2023-05-24 16:19:49 -07:00
Oleksandr TandGitHub 8ea3887f70 fix(54155): "Move to file" does not carry all function overload and implementation signatures (#54164) 2023-05-24 16:17:43 -07:00
ZzzenandGitHub f4c2a227a7 fix flow type of this inside arrow function (#54236) 2023-05-24 15:57:36 -07:00
Oleksandr TandGitHub bb74c60723 feat(54190): Convert to template string quick fix not available in assignment expressions (#54210) 2023-05-24 15:42:07 -07:00
Oleksandr TandGitHub 6cbe2e02a4 fix(54085): Cannot navigate down object hierarchy if an interface is not directly implemented (#54108) 2023-05-24 14:06:25 -07:00
Gabriela Araujo BrittoandGitHub e7d62e57aa Don't use text change's createNewFile for existing empty file (#54358) 2023-05-24 12:26:11 -07:00
Oleksandr TandGitHub 13169870b4 fix(54152): Cannot use const enum to define an interface key in isolatedModules mode (#54165) 2023-05-24 12:14:19 -07:00
Jake BaileyandGitHub 4c82d918bc Don't linearly search for fresh param in getConditionalType (#53662) 2023-05-24 11:41:20 -07:00
Mateusz BurzyńskiandGitHub 7baf6cd120 Avoid infinite recursion when instantiating circular inline mapped generic tuple type (#53522) 2023-05-24 11:41:04 -07:00
Mateusz BurzyńskiandGitHub 1518cd98f4 Fixed declaration emit for undefined properties inferred from functions in other array elements (#53938) 2023-05-24 10:19:01 -07:00