Wesley Wigham and GitHub
19db9ad675
Swapping the quote style of a string for completions should swap _all_ quotes in the string ( #42650 )
2021-02-04 13:56:34 -08:00
Wesley Wigham and GitHub
f569aa3832
Use a (hopefully) more efficient regex for matching jquery in the safelist ( #42653 )
2021-02-04 13:53:05 -08:00
Wesley Wigham and GitHub
62bc8bec4e
Replace _all_ tabs in pretty output, not just the first on each line ( #42649 )
2021-02-04 13:25:53 -08:00
Wesley Wigham and GitHub
be18057792
Add check for no match into fs watch rename event handler ( #42651 )
2021-02-04 13:20:38 -08:00
Anders Hejlsberg and GitHub
ab2729a99b
Smarter subtype reduction in union types ( #42353 )
...
* Exclude primitive types from union subtype reduction in most cases
* Accept new baselines
* Minor fixes
* Less aggressive checking of assertion function calls that don't affect control flow
* Accept new baselines
2021-02-04 11:18:30 -10:00
Andrew Branch and GitHub
258be217a6
Fix completions crash on transient exported property named 'default' ( #42583 )
...
* Fix completions crash on transient exported property named default
* Revert simplification, both conditions were needed
2021-02-04 10:22:15 -08:00
TypeScript Bot
05e2f74fbe
Update package-lock.json
2021-02-04 06:22:59 +00:00
Oleksandr T and GitHub
4c118ae67b
fix(39022): wrap export references UnaryExpression to ParenthesizedExpression ( #41156 )
2021-02-03 18:26:33 -08:00
Anders Hejlsberg and GitHub
e2318217fb
Strip nullable types from 'this' type in inference with optional chain calls ( #42536 )
...
* Properly strip nullable types from this type in optional chain calls
* Add regression test
2021-02-03 13:50:23 -10:00
cce4bfbc7c
Revert changes for template literal types, keeping tests. ( #42588 )
...
* Revert changes for template literal types, keeping tests.
* Update Baselines and/or Applied Lint Fixes
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com >
2021-02-03 14:49:03 -08:00
Daniel Rosenwasser and GitHub
654975481f
Use spaces instead of non-breaking spaces, narrow non-breaking spaces. ( #42500 )
2021-02-03 14:29:42 -08:00
Sheetal Nandi and GitHub
c3e132da59
Keep extended config's raw file, include, exclude relative to itself and correct it when setting extending options ( #42544 )
...
* Test when config file extends is incorrectly computed
Test for #40720
* Keep extended config's raw file, include, exclude relative to itself and correct it when setting extending options
Fixes #40720
2021-02-03 11:09:06 -08:00
Andrew Branch and GitHub
1c25b009f2
Sort import fixes by number of directory separators ( #42614 )
...
* Add failing test
* Sort all import fixes by number of directory separators
2021-02-03 10:42:13 -08:00
TypeScript Bot
bfc55b5762
Update package-lock.json
2021-02-03 06:25:50 +00:00
Andrew Branch and GitHub
96cc9b96fe
Make object literal properties new identifier locations when not contextually typed ( #42612 )
...
* Make object literal properties new identifier locations when not contextually typed
* Fix completions after comma in object literal
* Update other test
2021-02-02 16:17:55 -08:00
Andrew Branch and GitHub
71de94a543
Limit tuple size resulting from spread ( #42448 )
...
* Limit tuple size resulting from spread
* Update limit to 10k
* Update baseline after merge conflict
2021-02-02 14:02:35 -08:00
fd6178b826
Update user baselines +cc @sandersn ( #42420 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com >
2021-02-02 08:39:34 -08:00
TypeScript Bot
60bde2dbef
Update package-lock.json
2021-02-02 06:28:14 +00:00
3e28e29c51
fix 38503. ( #39716 )
...
* fix 38503.
* trigger test.
* trigger test.
* Move isCallChain
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com >
2021-02-01 18:34:46 -08:00
Ron Buckton and GitHub
c953969698
Switched 'ts.performance' to a mixed mode only uses native performance APIs when necessary ( #42586 )
...
* Partially revert native performance
* Fix bug in measure
* Conditionally enable native perf events
2021-02-01 15:33:34 -08:00
TypeScript Bot
66ecfcbd04
Update package-lock.json
2021-02-01 06:28:00 +00:00
Andrew Branch and GitHub
8523ca4fa3
Don’t create missing nodes for identifiers that would be valid in a newer script target ( #42520 )
...
* Add test
* Don’t create missing nodes for identifiers that would be valid in a newer script target
* Add to test
* Remove unnecessary assignment
2021-01-29 14:10:29 -08:00
Andrew Branch and GitHub
d7d7b888b6
Remove Travis CI ( #42507 )
...
* Remove Travis CI
* Revert deletion of cron stuff
* Fix formatting
2021-01-29 12:38:26 -08:00
9d21a5b56c
Fix indentation of multiline conditional expressions ( #42484 )
...
* Fix indentation of multiline conditional expressions
* Add more comment
* Fix comment typo
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
* Fix suggestion formatting
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2021-01-29 12:07:57 -08:00
Andrew Branch and GitHub
c15f40abfa
Fix discriminant property narrowing through optional chain with null ( #42503 )
...
* Fix discriminant property narrowing through optional chain with null
* Accept baselines
* Add tests from Anders
2021-01-29 12:03:42 -08:00
Andrew Branch and GitHub
65e4d60d81
Fix formatter determination of initial indentation of list items after the first ( #42352 )
...
* Add failing test
* Fix determination of initial indentation of list items after the first
2021-01-29 09:49:47 -08:00
Ivan Arcuschin
fca0b39f0c
Use related spans for "implement abstract class" errors
2021-01-29 12:37:07 -03:00
Wesley Wigham and GitHub
2730cb24f5
Only skip any checks for unwrapped tuples in conditionals, rather than all nondistributive conditionals for backcompat ( #42447 )
2021-01-28 23:36:43 -08:00
Nathan Shively-Sanders and GitHub
9dbfaeef2d
Narrow QualifiedName inside typeof ( #42540 )
...
Previously this wasn't narrowed at all. Now there is control flow and
code in isMatchingReference.
2021-01-28 15:19:01 -08:00
Wesley Wigham and GitHub
5a21291b7c
Propegate contextual types through nonnull assertion operators ( #42526 )
2021-01-28 09:24:54 -08:00
Nathan Shively-Sanders and GitHub
d2443a5df1
@typedef: Improve error spans from declaration emit ( #42501 )
...
* @typedef: Improve error spans from declaration emit
This is a proof-of-concept fix. I think it could be expanded for all of
jsdoc, but I only set it up for jsdoc type aliases. It could use a lot
of polish too.
* track error node in isSymbolAccessible instead
* Switch to using enclosingDeclaration
Remove trueErrorNode
* add test of @callback and @enum
* Better error + fix @enum error
Since enums don't have a name property, you *have* to call
`getNameOfDeclaration` to go looking through the AST for one.
2021-01-28 08:35:05 -08:00
Wesley Wigham and GitHub
517f32940a
Add regression test for #37314 ( #42525 )
2021-01-27 15:30:59 -08:00
Wesley Wigham and GitHub
203a5ce78f
Include all properties from the mapped modifier type when calculating index types for mapped types with name types ( #41976 )
2021-01-27 13:32:46 -08:00
TypeScript Bot
cdd11e96ad
Update package-lock.json
2021-01-27 06:27:40 +00:00
Sheetal Nandi and GitHub
b8faaea90c
Only look for file exists and read file on supported locale directories that we build ( #42505 )
...
Fixes #42263
2021-01-26 17:43:37 -08:00
TypeScript Bot
6ed344f2c8
Update package-lock.json
2021-01-26 06:27:09 +00:00
Armando Aguirre and GitHub
871096b3a1
Merge pull request #42356 from armanio123/FixJSDocFormatting
...
Fix double asterisk formatting in JSDoc
2021-01-25 15:05:44 -08:00
701493fb80
Support top level "for await of" ( #37424 )
...
* Support Top Level "for await of".
* Add test cases for top level "for await of".
* Apply suggestions from code review
* add test cases
* remove redundant variables
* fix test baselines
* Update diagnostic message and tests
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com >
2021-01-25 13:40:45 -08:00
f529115b41
fixes microsoft/TypeScript#41286 ( #41294 )
...
* fixes microsoft/TypeScript#41286
* Added period to end of deprecation message
* Search Symbol.declarations for deprecated tag instead of Symbol.valueDeclaration
* renamed arg0 to deprecatedEntity, narrowed param type
* Added different deprecation message if signature is available
* address PR comments
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2021-01-25 13:33:28 -08:00
Wesley Wigham and GitHub
d7d8f33def
In bundle declaration emit, refuse to rewrite nonrelative references to files outside the common source directory ( #42306 )
2021-01-25 11:16:59 -08:00
Sheetal Nandi and GitHub
1b57a0395e
Fix incorrectly logging ts files instead of .js files as top files ( #42463 )
...
Fixes #41071
2021-01-25 10:04:39 -08:00
Nathan Shively-Sanders and GitHub
ca380af99b
At starts jsdoc tag only after whitespace ( #42364 )
...
* Update tests
* @ begins JSDoc tag only after whitespace
Previously, inside a JSDoc tag's comment, @ would start a tag unless it
was surrounded by backticks. However, looking at real code showed that
only whitespace-preceded uses of @ were intended to start tags.
2021-01-25 09:42:24 -08:00
Andrew Branch and GitHub
89c173fddc
Narrow via discriminant property through optional chain ( #42450 )
...
* Naive attempt at narrowing via discriminant property through optional chain
* Clean up test
2021-01-25 09:29:51 -08:00
Amin Pakseresht and GitHub
290af69b73
Filter out global keywords of UMD module export declarations in completion providing auto import suggestions ( #42141 )
...
* Add AutoImportSuggestions for UMD module export declarations instead of global keywords
* Add test for scripts
* Add more comments
* Provide auto import suggestion only for modules and not scripts
* PR review #1
* PR review #1
2021-01-25 09:29:13 -08:00
Orta Therox and GitHub
154f2094fc
WIP-semantic in session based TS ( #42438 )
2021-01-23 13:13:56 +00:00
TypeScript Bot
63003eb106
Update package-lock.json
2021-01-23 06:50:09 +00:00
786a7e86ef
Update user baselines ( #42451 )
...
* Update user baselines +cc @sandersn
* Update user baselines
Co-authored-by: typescript-bot <typescript@microsoft.com >
2021-01-22 18:44:25 -08:00
Ron Buckton and GitHub
ee3fe472d7
Fix broken user and docker tests ( #42431 )
...
* Add --force to npm install script for user tests
* Migrate prettier to docker
* Fix vscode Dockerfile
* Fix stack space issue in isJSLiteralType
* Use --legacy-peer-deps based on npm version
* Fix xterm.js Dockerfile
2021-01-22 13:23:41 -08:00
Sheetal Nandi and GitHub
80dfc6a45b
Only when typings file change for the project, schedule the update for the project ( #42428 )
...
* Update and add test when typings dont change because of import name
* Update project scheduling only when typings are set
* Schedule update graph only if typings change
Fixes #39326
2021-01-22 11:16:07 -08:00
TypeScript Bot
4c62f6e7d6
Update package-lock.json
2021-01-22 06:51:52 +00:00