Commit Graph

32940 Commits

Author SHA1 Message Date
csigs
92f54d6bd6 LEGO: Merge pull request 47666
LEGO: Merge pull request 47666
2022-01-30 10:22:05 -08:00
csigs
0388218914 LEGO: Merge pull request 47664
LEGO: Merge pull request 47664
2022-01-30 04:14:24 -08:00
csigs
e5d7d70471 LEGO: Merge pull request 47661
LEGO: Merge pull request 47661
2022-01-29 22:14:39 -08:00
csigs
3d2ac9d06d LEGO: Merge pull request 47659
LEGO: Merge pull request 47659
2022-01-29 10:15:39 -08:00
Mohsen Azimi
17aec75ace Update terminal.integrated.shell.linux config in devcontainer.json (#47192)
The previous `"terminal.integrated.shell.linux"` configuration is deprecated. 

This is the new way of setting this configuration
2022-01-29 00:42:56 -08:00
Roman F
3e19cc8711 remove unused errors in checkGrammarModifiers (#47198) 2022-01-28 17:23:13 -08:00
csigs
38ed8eb505 LEGO: Merge pull request 47655
LEGO: Merge pull request 47655
2022-01-28 16:14:38 -08:00
Alvin Ramskogler
0b9f8b4aa2 Fix confusing file name in generated diagnostics file (#46821)
* Fix confusing file name in generated diagnostics file

* Change "by" to "in"
2022-01-28 15:08:19 -08:00
Oleksandr T
2d501b1d98 fix(47582): skip extraction if the type node is in the range of the type parameter declaration (#47596) 2022-01-28 12:19:48 -08:00
csigs
eb3e7bd9d9 LEGO: Merge pull request 47649
LEGO: Merge pull request 47649
2022-01-28 04:14:33 -08:00
csigs
09b84d56f3 LEGO: Merge pull request 47647
LEGO: Merge pull request 47647
2022-01-27 22:18:31 -08:00
TypeScript Bot
deb36b98c4 Update package-lock.json 2022-01-28 06:08:10 +00:00
Andrew Branch
3de032fd0d Allow usage of local value symbol merged with type-only import (#47642) 2022-01-27 16:18:14 -08:00
Gabriela Araujo Britto
90280518ae Add assert keyword in completions (#47644)
* add contextual keyword assert in completions

* clean up
2022-01-27 16:17:43 -08:00
csigs
f2c51c10f5 LEGO: Merge pull request 47645
LEGO: Merge pull request 47645
2022-01-27 16:15:37 -08:00
Andrew Branch
4d298591db Fix duplicate completions from two different copies of a node_modules package (#47584)
* Fix duplicate completions from two different copies of a node_modules package

* Fix logic for scoped packages

* Fix errors from merge

* Less gross way to reconcile these two conflicting PRs
2022-01-27 14:35:36 -08:00
Nathan Shively-Sanders
61b7bbb026 Revert to temporary AbortSignal fix (#47643)
I forgot to keep the temporary fix when I updated the DOM yesterday.
2022-01-27 13:28:17 -08:00
Andrew Branch
e9092f3723 Proposal: simplify auto import descriptions (#47631)
* Simplify import fix descriptions

* Update tests

* Fix new test
2022-01-27 10:21:08 -08:00
csigs
208cb2d57c LEGO: Merge pull request 47641
LEGO: Merge pull request 47641
2022-01-27 10:14:34 -08:00
csigs
b7b648306f LEGO: Merge pull request 47640
LEGO: Merge pull request 47640
2022-01-27 04:15:07 -08:00
csigs
52e785ff6c LEGO: Merge pull request 47635
LEGO: Merge pull request 47635
2022-01-26 22:15:11 -08:00
TypeScript Bot
b6075d8ced Update package-lock.json 2022-01-27 06:07:47 +00:00
Andrew Branch
5813a3541c Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags (#47625)
* Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags

* Cleaner way of getting the uppercase name when needed

* Fix build errors, get rid of basically unnecessary ScriptTarget

* More accurate name for parameter

* Rename other parameter too

* Fix failing test
2022-01-26 16:12:40 -08:00
Andrew Branch
0d3ff0cce8 Add codefix and completions for promoting existing type-only imports to non-type-only (#47552)
* Import fix

* Wire up completions, add sorting to fix

* Fix overlapping changes when there’s only one import specifier

* Update API baseline

* Add sorting and filtering back to UMD fix
2022-01-26 15:07:41 -08:00
Jake Bailey
3718182a13 Don't block completion after end of type parameters in JSX elements (#47501) 2022-01-26 14:45:21 -08:00
magic-akari
0f3809eff1 fix: enum self reference (#47287)
* fix: enum self reference

* fix: add test case

* chore: clean code

* fix: check `errorType` directly

* chore: revert refactor of `isConstantMemberAccess`
2022-01-26 14:13:34 -08:00
Nathan Shively-Sanders
53b96d9ddf Update DOM 2022-01-26 (#47623)
Improves types for FileSystemHandle.kind in subtypes, plus other bcd
updates.
2022-01-26 12:29:25 -08:00
Andrew Branch
c191e7c942 Fix diagnostic serialization crash (#47604)
* Add crashing test

* Fix unsafe cast to DiagnosticMessageChain
2022-01-26 10:41:47 -08:00
Oleksandr T
3206df8e6d fix(47561): use parameter name from enclosing declaration (#47609) 2022-01-26 04:00:14 -08:00
TypeScript Bot
d56d62185f Update package-lock.json 2022-01-26 06:06:54 +00:00
Oleksandr T
20b5523830 feat(42684): allow deprecated JSDoc tag to be used on aliased nodes (#47293) 2022-01-25 15:49:33 -08:00
Song Gao
0673f0288c Fix JsDocTags inheritage and setter/getter quickInfo (#46801)
* tmp

* fix jsdoc inheritage for property and setter/getter

* fix test

* fix test

* fix mirrors

* add more tests

* add tests of jsdoc for intance of class
2022-01-25 15:43:12 -08:00
Andrew Casey
f84a67f29c Don't trace bindSourceFile cache hits (#47602)
Writing the trace entry takes longer than returning the cached value.

Fixes #47565
2022-01-25 14:57:17 -08:00
Joost Koehoorn
ba402e6b86 Allow structure reuse if a declaration file within a package is updated (#47472)
* Allow structure reuse if a declaration file within a package is updated

Closes #47471

* Use correct program to obtain source file in structure reuse test
2022-01-25 11:04:53 -08:00
TypeScript Bot
a9efe2be60 Update package-lock.json 2022-01-25 06:06:20 +00:00
Eli Barzilay
69277306c9 Fix detecting an existing Map/Set
This didn't affect compilation to CJS since that sets `exports.Map`
instead of creating a global.
2022-01-24 15:47:10 -05:00
TypeScript Bot
b9efc3b614 Update package-lock.json 2022-01-23 06:06:24 +00:00
TypeScript Bot
0019c0190d Update package-lock.json 2022-01-22 06:06:15 +00:00
Gabriela Araujo Britto
3cbc8d2231 Fix narrowing of intersection with function type (#47483)
* add and and or mask to typefacts

* add comment
2022-01-21 12:05:34 -08:00
Jake Bailey
9b6c179089 Fix parser test cases missing 'it' calls (#47545) 2022-01-21 11:32:23 -08:00
Oleksandr T
5e38082a9e fix(47165): ignore spaces in goToDefinition imports (#47541) 2022-01-21 10:09:10 -08:00
Or Ouziel
5e09e86612 return early from fixUnreachableCode if syntactic errors exists (#47463) 2022-01-20 15:45:42 -08:00
Oleksandr T
e9453f411a fix(47524): skip assertion on checking this in fixImplicitThis QF (#47527) 2022-01-20 14:58:28 -08:00
Armando Aguirre
ab4d3198ed Fixed Go To Definition using jsconfig (#47434)
* Fixed Go To Definition using jsconfig

* Fixed formatting
2022-01-20 14:45:29 -08:00
Andrew Casey
7e3eccedd7 Associate paths with nodes when tracing (#47530)
Walking up the tree to find the enclosing SourceFile would distort the
timing too much so, instead, we attach a Path in the binder.

At present, the path is determined retroactively by walking up the call
stack in the trace visualizer, but this is both inconvenient and
routinely inaccurate (checking an expression in one file may require
checking an expression in another file and there's no way to determine
from the trace where this transition occurred).
2022-01-20 14:38:36 -08:00
Wesley Wigham
bae0f50818 Fix import assertion occurrences crash and make import assertion parsing more generous (#47535) 2022-01-20 14:08:47 -08:00
Daniel Rosenwasser
04d77fe900 Update to TypeScript 4.5.5, fix semantic lints. (#47529)
* Update to TypeScript 4.5.5, fix semantic lints.

* Remove extra parens.

* Remove now-outdated non-null comment around #18217.
2022-01-20 11:33:30 -08:00
TypeScript Bot
6c8c829148 Update package-lock.json 2022-01-20 06:07:54 +00:00
Eli Barzilay
c240380519 Add a comment to maybeSetLocalizedDiagnosticMessages
(Should have included it in the previous PR but missed it...)
2022-01-19 22:04:45 -05:00
Eli Barzilay
8d9fa685b5 Avoid global mutations
This removes a few places where global compiler bindings are mutated:

1. Make `sysLog` call an internal binding which is changed via
   `setSysLog`.

2. Use `Object.assign` to change values *in* `objectAllocator` instead
   of mutating the binding itself.  (The type should verify that any
   future uses of this will properly override all bindings.)

3. `localizedDiagnosticMessages` is not really needed as an exported
   value, there's only one place that uses it to test whether it is set
   or not.  So drop the export and replace it with a new
   `maybeSetLocalizedDiagnosticMessages` (internal) function.
2022-01-19 20:01:19 -05:00