Commit Graph
100 Commits
Author SHA1 Message Date
Orta Therox 818962087c Update dom.generated.d.ts (#47507) 2022-01-19 12:45:43 +00:00
Orta Therox 113a681aee Do not show the additional file/errors table when there's 1 file with many errors (#47345)
* Use relative paths for the end of compile report

* Have a tighter suffix for multiple errors in one file

* Review feedback

* Refactors, and adds color

* Update baselinies
2022-01-19 11:56:27 +00:00
Orta Therox 935c05cf34 Fix the related repos CI (#47386) 2022-01-11 15:27:51 +00:00
Orta Therox 8a8c71c147 Use relative paths for the end of compile report (#47344) 2022-01-07 19:55:55 +00:00
Orta Therox e46f3baec1 Adds a github actions workflow which pings related repos with a blank commit once a month to ensure their automation stays running (#46747) 2022-01-07 13:37:16 +00:00
Orta Therox 1a000c8422 Fix main (#46160) 2021-10-01 09:50:00 -07:00
Orta Therox 016d78b09e Allow for class static vars to be called static (#44813)
* Allow for class static vars to be called static - re: #41127

* Add the baselines
2021-10-01 14:28:08 +01:00
Orta Therox d6cd2c7c11 Updates the DOM APIs (#46080)
* Updates the DOM APIs

* Tests

* Remove static abort(): AbortSignal
2021-09-27 22:07:57 +01:00
Orta Therox 12003e53c2 Default tsc --init to es2016 (#45934) 2021-09-24 19:13:53 +01:00
Orta Therox 90e83adb44 Resolve with -lib in TypeScript lib node lookup (#46046) 2021-09-24 17:46:29 +01:00
Orta Therox 61d2939359 Adds more Intl.ResolvedDateTimeFormatOptions, and hooks up Intl for ES2021 (#45905)
* Adds more ResolvedDateTimeFormatOptions to the Intl APIs

* Fix tests
2021-09-23 21:33:37 +01:00
Orta Therox b250f0c85f Fix main by using '.default' on the new ms release (#45910)
* Fix main by using '.default' on the new ms release

* Lock to v2

* Update v1 lockfile

* Revert code change
2021-09-16 09:52:54 -07:00
Orta Therox a4364dcc62 Update pr_owners.txt (#45911) 2021-09-16 09:20:00 -07:00
Orta Therox b2f9432c40 Support resolving @typescript/[lib] in node modules (#45771)
* Support resolving @typescript/x for libs

* Baselines

* Tightens up the PR

* Fix the build

* Add cache

* Better naming

* Fixes the lookup path
2021-09-15 21:25:08 +01:00
Orta Therox 7cba51947a Go back to the old spelling of NumberFormatPartTypes to not break DT (#45889) 2021-09-15 18:21:39 +01:00
Orta Therox 2eecb3d954 Adds back NumberFormatPartType to the global types from intl (#45843) 2021-09-13 20:02:38 +01:00
Orta TheroxandAndrew Branch 13bdc03ab5 Intl fix for nightly (#45820)
* Fix #45804

* Update src/lib/es2020.intl.d.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* More fixes

* Adds a test

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2021-09-10 19:46:46 +01:00
Orta TheroxandNathan Shively-Sanders 07fd7bce64 Intl 2021 Updates (#45647)
* Import of Intl.Locale from #39664

* Handle updating es2020.intl and add es2021 for new DateTimeFormatOptions options - re: #39664

* Extends DateTimeFormatOptions for new Intl APIs - re: #45420

* Handle migrating Intl.NumberFormat.formatToParts to es2018 (keeping esnext.intl around)

* Adds Intl.DisplayNames to es2020 - re: #44022

* Remove attributes added in es2021 from es2020 - re: #42944

* Add a reference to es2021 in the command line parser

* Adds some docs about the lib files

* Baselines

* Allow undefined in Intl inputs to allow for ergonomic usage of exactOptionalPropertyTypes - see #45652

* Adds some tests covering the APIs

* Apply suggestions from code review

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Handle PR feedback

* More review improvements

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2021-09-08 10:43:01 +01:00
32168ed653 Add support for raising if you set a tsconfig entry of target/module with the right setting in the root (#44964)
* Add support for raising if you set a tsconfig entry of target/module with the right setting in the root

* Switch to check for any compiler option in the root which doesn't include compilerOptions

* Get green

* Apply suggestions from code review

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* Update src/compiler/commandLineParser.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2021-09-08 10:17:43 +01:00
Orta Therox f9a3d85b00 Fix the default text for --useDefineForClassFields (#45513)
* Fix the default text for --useDefineForClassFields

* Update with feedback
2021-09-01 15:10:47 +01:00
Orta Therox 41dcad056a Adds a script for removing unused diagnostics (#44324)
* Adds a script for removing unused diagnostics

* Accidentally deleted the wrong one
2021-08-24 13:03:18 +01:00
Orta TheroxandDaniel Rosenwasser 1f85123821 Revisions for the new --help (#44800)
* WIP on refining the new --help

* Fix types in the boolean trivial lint rule

* Update baselines

* More work

* Updates the color logic

* Simplifies the CLI color code

* Use cyan instead of blue for win powershell/command prompt

* Use bright white when blue is probably going to look off

* Fix NO_COLOR

* Adds a test to cover NO_COLOR

* Update src/compiler/diagnosticMessages.json

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* Update compiler diagnostic text

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2021-08-05 16:41:01 +01:00
Orta TheroxandNathan Shively-Sanders b9e952be1d Migrate over 4.4 lib dom and webworker (#45324)
* Brings across 4.4 DOM + Web Worker changes

* Adds tests

* Incorporate #1092 and #1093 from TypeScript-DOM-lib-generator

* update baselines

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2021-08-04 17:14:24 -07:00
Orta Therox ceef6f7cfd Dev: Have a clickable link for a new baseline created (#44552)
* Have a clickable link for a new baseline created

* Use joinPath instead:
2021-08-03 16:18:39 +01:00
Orta Therox fdc31baffe Fix types in the boolean trivial lint rule (#44801) 2021-06-29 11:53:35 -07:00
Orta Therox 9ebe11c2d3 Migrate latest dom types into libdom.d.ts (#44684)
* Add the types_web dom dts

* Update

* Adds new DTS

* Update baselines
2021-06-25 14:25:30 -07:00
Orta Therox b74b8977d5 Update descriptions for all compiler options (#44409)
* Add new descriptions to compiler options

* Update baselines
2021-06-15 21:20:14 +01:00
Orta Therox 481c2037cc Re-name really long file (#44413) 2021-06-10 14:18:56 +01:00
Orta Therox be2fec1386 Update playground build script (#44456) 2021-06-07 21:39:52 +01:00
Orta TheroxandAustin Cummings 6baa1bec64 Improve non-ambient class and function merge error (#44352)
* Improve non-ambient class and function merge error

* Update baselines

* Update tests

Co-authored-by: Austin Cummings <austin@austincummings.com>
2021-06-03 14:08:04 +01:00
Orta Therox 9d345e7734 Rename TSConfig option categories (#42514)
* Update the category descriptions for the tsconfig options

* Gets tests green

* Whitespace change

* Drop command line options from --init

* Go back to the old re-build baseline

* Fix numbers

* Remove formatting options from --showconfig

* Dpon't show output formatting changes in showConfig

* Update baselines

* Update baselines
2021-06-03 12:21:04 +01:00
Orta Therox b603a04eed Switch references to master to main in the codebase + validating infra post-main migration (#44347)
* Update package.json

* Remove references to master in the codebase

* Add more master - main
2021-06-01 20:44:18 +01:00
Orta Therox 6bb481c9d3 Support semantic highlights for JS files (#43992)
* Switches from never allowing semantic highlight on JS to only doing it if we have a valid source file

* Adds a way to test and validate that an arbitrary JS file gets semantic classification results

* Revert to just dropping the if statement
2021-05-07 20:02:26 +01:00
Orta Therox a2f09ed4fc Expose EncodedSemanticClassificationsRequest in protocol.d.ts (#42640)
* Expose EncodedSemanticClassificationsRequest in protocol.d.ts

* Adds the response for encoded semantic highlights too

* Update types:

* Also include classificationtype anyway

* Fix feedback
2021-02-25 21:40:52 +00:00
Orta Therox 8c5fa5cc91 Revert assignability cases in getNarrowedType (#42231)
* Revert subtype narrowing changes from readonly array PRs

* Adds a test for the change

* More baselines
2021-02-09 15:03:11 -08:00
Orta Therox 154f2094fc WIP-semantic in session based TS (#42438) 2021-01-23 13:13:56 +00:00
Orta Therox 055f363fba Reverts #39277 removing bundledPackageName (#41499)
* Reverts #39277

* Bring back modeyule resolution for the test runner
2021-01-08 10:55:34 +00:00
Orta Therox 35c8df04ad Revert the DOM query changes (#42230)
* Revert the DOM query changes

* Adds baselines

* Hotfix for the removeal of the url nullabulity for testing
2021-01-06 22:21:16 +00:00
Orta Therox 222f29f2a5 Update lib dom for 4.2 (#42067) 2021-01-04 21:26:56 +00:00
Orta Therox 71e881a7ee Undo #39258 (isArray changes) see overview at #41808 (#41851) 2020-12-07 21:59:26 +00:00
Orta Therox dd84bc1dc9 Handles creating a reasonable AST when destructuring into a parens'd expresssion (#40115)
* Handles creating a lgical AST when destructuring  into a parens

* Adds an async example
2020-10-05 14:12:47 -04:00
Orta TheroxandNathan Shively-Sanders aa2756a5d7 Updates Dom lib with TSJS changes, adding a new library for webworker iterable (#40500)
* Updates Dom lib with TSJS changes, adding a new library for webworker iterable

Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>

* Fixes tests

Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>
2020-09-11 15:36:00 -04:00
db5368dc1d Import the semantic highlighter from typescript-vscode-sh-plugin (#39119)
* Initial import of the vscode semantic highlight code

* Adds the ability to test modern semantic classification via strings instead of numbers

* Adds existing tests

* Port over the semantic classification tests

* Update baselines

* Update src/harness/fourslashImpl.ts

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Handle feedback from #39119

* Consistent formatting in the 2020 classifier

* Update baselines

* Apply suggestions from code review

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* Update src/harness/fourslashImpl.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* Reafactor after comments

* Use 2020 everywhere

* Handle feedback

* WIP - don't provide a breaking change

* Fix all build errors

* Update baselines

* Update src/services/classifier2020.ts

Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>

* Addresses Ron's feedback

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2020-09-11 15:10:55 -04:00
Orta TheroxandWesley Wigham cdafb7157b Replaces the default module index resolver with '/index' instead of '' when handling internal routing for dts bundles (#39277)
* Adds support for declaring the bundled name of a dts module export

Co-authored-by: Wesley Wigham <wwigham@gmail.com>

* Adds baselines

* Update the tests

* Try to reduce the scope of the bundledPackageName error

* Use the flag in more baselines

* Get it green

* More tests

* Handle more feedback

* More test cleanup

* Set the moduleResolution for the tsconfigs

Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2020-09-11 08:12:07 -04:00
Orta Therox 0a5f53301f Retains trailing cmments in a logical manner in extract type (#40245) 2020-09-10 14:59:46 -04:00
Orta Therox fa89ce6158 Remove assignability cases in getNarrowedType + an isArray improvement for readonly arrays (#39258)
* Explore using a different isArray declaration

* Add tests and the new isArray definition

* Baseline updates

* Upda the isArray type
2020-09-08 14:43:48 -04:00
Orta TheroxandAndrew Branch faf128de15 Fix formatting scanner on JSX text that looks like trivia (#39718)
* Fix formatting scanner on JSX text that looks like trivia

* Combine if statements

Co-authored-by: Andrew Branch <andrew@wheream.io>
2020-07-30 13:56:14 -04:00
Orta Therox f19c610d91 Adds latest version of TypeScript to the repro code (#39641) 2020-07-17 15:15:49 -04:00
Orta Therox 1d671c3588 Add twoslash repros to the compiler (#39628) 2020-07-16 18:39:49 -04:00
Orta Therox 6ebd73c84f Don't narrow against unions of constructor functions with instanceof (#38099)
* WIP

* Only narrows when the union is not all constructors
2020-07-07 11:34:10 -04:00
Orta Therox 17d8b02796 Retain the original eslint arg order (#39450) 2020-07-06 16:02:56 -04:00
Orta Therox 3593c28692 Adds a script for hooking up dev builds of TS to the playground (#38859) 2020-07-06 12:27:52 -04:00
Orta Therox d462fb2fb9 Split the GH actions CI into multiple stages (#39210)
* Split the GH actions CI into multiple stages

* Add the -- for npm

* Improve the CI reports

* Use stylish formatting on CI

* Break TSC instead

* Try add the problem register for TSC only on node 12

* Fix GH Actions syntax maybe
2020-07-06 12:24:33 -04:00
Orta Therox 479650fbca Use MS repo for making monaco builds (#39316) 2020-07-01 11:18:15 -04:00
Orta d7aa5f3ee1 Show a diff when the public api baselines fail (#39108)
* Add semantic highlighting pt1

* Make the public API unit tests echo out a diff
2020-06-17 17:00:46 -04:00
Orta 0258db2210 Adds support for looking up past Blocks in expando objects (#38031)
* Adds support for looking up past Blocks in expando objects

* Adds JS tests to validate the JS parsing also works

* Get the top level block expando tests green
2020-04-29 10:35:33 -04:00
Orta 23b6f6e469 Remove node 8 from the github actions (#37870) 2020-04-09 16:15:25 -07:00
Orta 3398c9bfe1 Make skipLibCheck: true the default in --init (#37808) 2020-04-07 15:00:44 -04:00
Orta 20ecbb0f46 Allow Source Mapping inside destructuring assignment (#37298)
* Add support for source maps inside of destructured code

* Adds tests for the source maps inside destructured code
2020-04-03 17:23:02 -04:00
Orta 6afd5c996c Adds a preview link to the baseline emits for sourcemaps (#37111) 2020-03-26 11:37:37 -04:00
Orta fbd83b848c Bring over last 3.9 dom changes (#37502)
* Bring over last 3.9 dom changes

* Addresses feedback
2020-03-20 17:17:27 -07:00
OrtaandAndrew Branch f1cc8e4e4e [minor] Adds some docs to the LSP interface (#36740)
* Adds some docs to the LSP dts

* Ensure that getProgramDiagnostic is included everywhere that getCompilerOptionsDiagnostic is

* Update baselines

* Apply suggestions from code review

Co-Authored-By: Andrew Branch <andrewbranch@users.noreply.github.com>

* Remove the getCompilerOptionsDiagnostics -> getProgramDiagnostics change

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2020-03-13 13:26:39 -04:00
OrtaandOrta ffde92349d Added @ts-expect-error to @ts-ignore directives (#36014)
* Added @ts-expect-error to @ts-ignore directives

Similar to `// @ts-ignore`, but will itself cause a new error diagnostic if it does not cause an existing diagnostic to be ignored.

Technical summary:
1. The scanner will now keep track of `CommentDirective`s it comes across: both `@ts-expect-error` and `@ts-ignore`
2. During type checking, the program will turn those directives into a map keying them by line number
3. For each diagnostic, if it's preceded by a directive, that directive is marked as "used"
4. All `@ts-expect-error` directives not marked as used generate a new diagnostic error

* Renamed to getDiagnosticsWithPrecedingDirectives per suggestion

* Added JSDoc comment I thought I did already

Co-authored-by: Orta <orta.therox+github@gmail.com>
2020-03-05 10:37:36 -05:00
Orta e804dc8900 Update the authors script to generate the content of authors.md (#36867) 2020-02-27 12:47:09 -05:00
Orta 2c4155c351 Adds underlines to differences in strings (#36409) 2020-02-27 12:46:15 -05:00
Orta 8a797cad2b Adds floating block comments to the outlining spans response (#36880)
* Adds floating block comments to the outlining spans response

* Only use one route for grabbing outline nodes, which now includes special casing the EOF token
2020-02-25 17:09:16 -05:00
Orta 19c3bcb9a9 Adds puppeteer to test whether typescript.js runs in the browser (#35471)
* Adds puppeteer to test whether typescript.js runs in the browser

* Adds a check for the browser integration into the GitHub Actions CI

* Update to use playwright, and test in three browsers
2020-02-13 14:19:33 -05:00
OrtaandWesley Wigham 7726464abd De-duplicate indentations in JSX Texts (#36552)
* WIP on making the JSX text node not include whitespace

* Scans to the last newline for JSX correctly

* Handle JSX closing element wrapping

* Offload all jsx text indentation handling to indentMultilineCommentOrJsxText

* Switch from find node -> find inde in formatting

Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2020-02-03 17:09:50 -05:00
Orta 9968f14579 Update config.yml (#36419) 2020-01-28 11:33:54 -05:00
Orta 3ece65a94c When looking at outlines for try functions, allow for not finding a child to provide a span when requesting outlines (#36389) 2020-01-27 15:59:49 -05:00
Orta 82a3eb5b5f Add a list of PR owners for tooling to use (#36357) 2020-01-22 15:09:01 -05:00
Orta 5e59eece34 Adds support for showing default exports in the navtree (#35477)
* Adds support for showing default exports in the navtree - Fixes #34601

* Handle the feedback in #35477

* Navigation items using default export or export = will get noted if they are a const vs function
2020-01-22 08:13:04 -05:00
Orta f588c78aab Remove the compiler diag 1360 after it got missed in #35751 (#36332) 2020-01-21 11:54:48 -05:00
Orta 1dafd09a06 Revert "Add related diagnostic to "used before defined" if type is a function that returns a union with undefined (#33171)" (#35751)
This reverts commit be960fa356.
2020-01-15 12:50:52 -05:00
Orta a08d6ba4cf Update config.yml (#35388) 2019-12-03 10:59:11 -05:00
Orta af0d5d33b6 Improve positioning of the implement interface codefix (#34928) 2019-11-19 12:13:50 -05:00
Orta e39bdc3606 Adds back the script to request a playrgound build (#35168) 2019-11-18 12:05:54 -05:00
Orta ef0cca7d12 Adds 'did you mean' to the CLI args parser (#35063)
* Adds did you mean to the CLI args parser

* Adds test coverage for the did you mean on CLI args

* Adds did you mean to convertOptionsFromJson

* Ensure tsconfig compiler flags also get 'did you mean?'
2019-11-13 20:16:48 -05:00
Orta b9fe84e591 Fix up some of the ignore files, and removing the create language service script (#33684)
* Fix up some of the ignore files, and removing the create script

* Update .dockerignore
2019-11-06 11:11:29 -05:00
Orta ec367feb58 Remove the ping for playgrounds on TS deploys (#34862) 2019-10-31 18:50:00 -07:00
Orta 72b7a6527e Adds accept header to the dispatch request when requesting a playground build of monaco (#34763) 2019-10-28 11:07:36 -07:00
Orta 56b74d3652 Merge pull request #34648 from orta/readme_links
Update the README links
2019-10-23 15:14:59 -04:00
Orta e8782aef22 Merge pull request #34574 from orta/add_docs_tsserver_debug
Improve the launch template
2019-10-19 09:06:18 -04:00
Orta 5d20c573a6 Merge pull request #34524 from orta/fix_32675
Does not add a duplicate completion when offering an export which was re-declared as a global
2019-10-17 13:08:32 -04:00
Orta 43cf8995a6 Merge pull request #34530 from connorjclark/patch-1
Update bug template to link to nightly playground
2019-10-17 10:48:18 -04:00
Orta ae4abc5f5e Merge pull request #33906 from falsandtru/github
Update issue templates
2019-10-10 11:52:23 -07:00
Orta d552675494 Merge pull request #33825 from mrnugget/patch-1
Change link to tutorial in README
2019-10-05 16:20:06 -04:00
Orta 053388d6d2 Merge pull request #33584 from orta/small_ts
Creates a smaller build of TypeScript which just has the language services
2019-09-30 15:52:57 -04:00
Orta 40ceb4f7a8 Merge branch 'master' into small_ts 2019-09-26 17:45:24 -04:00
Orta 4ee251b053 Merge pull request #33372 from m1gu3l/patch-1
Better Array.sort compareFn docs
2019-09-25 15:11:39 -04:00
Orta 91be3689f0 Merge pull request #33178 from jwbay/nonNullableCallSignaturesTreeWalk
Flag non-nullable functions in `if` statements as errors (tree walk version)
2019-09-25 14:06:24 -04:00
Orta ff10599ed5 Merge pull request #33563 from orta/remove_gulpfile_errors
Remove errors from the gulpfile
2019-09-23 17:54:41 -04:00
Orta 5b9a56fc4d Merge pull request #33057 from jablko/patch-2
Allow readonly arguments to Promise.all(), etc.
2019-09-21 08:02:14 -04:00
Orta ee6f00dcd5 Merge pull request #33536 from orta/ping_for_playgrounds
When a packed version of TypeScript is requested, request a build of Monaco
2019-09-20 17:03:12 -04:00
Orta bf46ded8fd Merge pull request #33157 from fuafa/convert-const-to-let
Add convert const to let
2019-09-17 07:49:12 -04:00
Orta 09d6cbc152 Merge pull request #33418 from Kingwl/duplicate_async
fix duplicate async modifier codefix
2019-09-16 09:42:13 -04:00
Orta 0cf00fab93 Merge pull request #32965 from ajafff/ts-in-js
Detect more TS syntax in JS files
2019-09-12 20:21:51 +02:00
Orta f9cc374d21 Merge pull request #33336 from JoshuaKGoldberg/enum-syntax-error-specifics
Added more helpful syntax error for enum member commas
2019-09-11 23:05:16 +02:00
Orta e8fc62e1a2 Merge pull request #33300 from JoshuaKGoldberg/too-large-integer-bigint-codefix
Added codefix for numeric literals >= 2 ** 53
2019-09-11 22:53:19 +02:00
Orta 2c967c49eb Merge branch 'master' into ts-in-js 2019-09-11 21:22:01 +02:00