Commit graph

98 commits

Author SHA1 Message Date
Andrew Branch 1a981d1df1
Remove unused code coverage command (#45684) 2021-09-01 15:39:10 -07:00
Nathan Shively-Sanders 92e7fb521f
Update tsc-instrumented for project build (#45383)
* Update tsc-instrumented for project build

loggedIO has a weird build that never got updated for the project build
system. This PR just adds a project for it in a straightforward way. It
might be less efficient than the old way, but that's not a big concern
for recording RWC test cases.

However, I may have done things wrong. If anybody knows
tsc-instrumented, please comment.

* Create a second loggedIO tsconfig for tsc-instrumented

The normal tsconfig should not have `prepend`; the standalone one for
tsc-instrumented should.

* fix semicolon lint
2021-08-10 14:53:17 -07:00
Andrew Branch d3055f0f29
--inspect can no longer be used as a flag through gulp (#42701)
* --inspect can no longer be used as a flag through gulp

* Add --break alias

* Update scripts/build/options.js
2021-02-12 16:01:22 -08:00
Andrew Branch d7d7b888b6
Remove Travis CI (#42507)
* Remove Travis CI

* Revert deletion of cron stuff

* Fix formatting
2021-01-29 12:38:26 -08:00
Matt Bierner 49d7de17d6
Adds experimental support for running TS Server in a web worker (#39656)
* Adds experimental support for running TS Server in a web worker

This change makes it possible to run a syntax old TS server in a webworker. This is will let serverless versions of VS Code web run the TypeScript extension with minimal changes.

As the diff on `server.ts` is difficult to parse, here's an overview of the changes:

- Introduce the concept of a `Runtime`. Valid values are `Node` and `Web`.
- Move calls to `require` into the functions that use these modules
- Wrap existing server logic into `startNodeServer`
- Introduce web server with `startWebServer`. This uses a `WorkerSession`
- Add a custom version of `ts.sys` for web
- Have the worker server start when it is passed an array of arguments in a message

In order to make the server logic more clear, this change also tries to reduce the reliance on closures and better group function declarations vs the server spawning logic.

**Next Steps**
I'd like someone from the TS team to help get these changes into a shippable state. This will involve:

- Adddress todo comments
- Code cleanup
- Make sure these changes do not regress node servers
- Determine if we should add a new `tsserver.web.js` file instead of having the web worker logic all live in `tsserver.js`

* Shim out directoryExists

* Add some regions

* Remove some inlined note types

Use import types instead

* Use switch case for runtime

* Review and updates

* Enable loading std library d.ts files

This implements enough of `ServerHost` that we can load the standard d.ts files using synchronous XMLHttpRequests.

I also had to patch some code in `editorServices`. I don't know if these changes are correct and need someone on the TS team to review

* Update src/tsserver/webServer.ts

* Update src/tsserver/webServer.ts

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

* Addressing feedback

* Allow passing in explicit executingFilePath

This is required for cases where `self.location` does not point to the directory where all the typings are stored

* Adding logging support

* Do not create auto import provider in partial semantic mode

* Handle lib files by doing path mapping instead

* TODO

* Add log message

This replaces the console based logger with a logger that post log messages back to the host. VS Code will write these messages to its output window

* Move code around so that exported functions are set on namespace

* Log response

* Map the paths back to https:
// TODO: is this really needed or can vscode take care of this
How do we handle when opening lib.d.ts as response to goto def in open files

* If files are not open dont schedule open file project ensure

* Should also check if there are no external projects before skipping scheduling
Fixes failing tests

* Revert "Map the paths back to https:"

This reverts commit 0edf650622.

* Revert "TODO"

This reverts commit 04a4fe7556.

* Revert "Should also check if there are no external projects before skipping scheduling"

This reverts commit 7e4939014a.

* Refactoring so we can test the changes out

* Feedback

Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2020-12-08 16:09:43 -08:00
Andrew Branch 5a8186f86d
Produce source maps for local typescriptServices build (#41589)
* Enable source maps for typescriptServices local builds

* Alias gulp lkg -> gulp LKG
2020-11-30 14:28:13 -08:00
EvilSpirit39 1d2278be05
Remove trailing space from Gulpfile.js comment (#40199) 2020-09-08 11:32:52 -07:00
Nathan Shively-Sanders 30cb20434a
Mark spec files as archived (#40373)
* Mark spec files as archived

Maybe then people won't try to edit them and submit PRs

* update README
2020-09-04 08:17:15 -07:00
Orta Therox 17d8b02796
Retain the original eslint arg order (#39450) 2020-07-06 16:02:56 -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
Ron Buckton ec426eec8b
Add script to work around GH issue with suggested reviewers (#37422) 2020-03-17 12:10:55 -07:00
Mine Starks 2c16ee311e
Copy diagnostic messages to built/local to fix localization process (#36903)
* Copy diagnostic messages to built/local

* Add description for built/local/diagnosticMessages.generated.json
2020-02-20 11:41:53 -08:00
Jack Bates 50e9c15e9d
Add buildTsc to preTest for user test runner (#35781) 2020-02-19 07:48:43 -08: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
Jack Bates 0a7d54d104
Fix npm test if os.cpus().length == 1 (#35753) 2020-02-13 11:08:39 -08:00
Wesley Wigham f3cc6f6d84
Remove distinction between CI lint and local lint (#36430) 2020-01-24 16:23:14 -08:00
Wesley Wigham c447ebc59c
Refactor: No more than 1 namespace declaration per file (#35373)
* Refactor: No more than 1 namespace declaration per file

* Simplify refs where possible
2019-11-27 13:44:31 -08:00
Nathan Shively-Sanders 0bbeab6e61
Revert "Skip costly tests" (#35197)
* Revert "Skip costly tests"

* fix package.json format
2019-11-19 12:59:09 -08:00
Ron Buckton 01b3d41124
Add external mapShim/debug modules (#33712)
* Add external mapShim/debug modules

* rename test file
2019-10-07 13:31:07 -07:00
Orta 40ceb4f7a8
Merge branch 'master' into small_ts 2019-09-26 17:45:24 -04:00
Wesley Wigham 62a43576b3
Enable eslint cache (#33619) 2019-09-26 13:44:10 -07:00
Orta Therox 92b3266a93 Rename the smaller build to '@typescript/language-services' and have a separate build step for creating and publishing vs configuring the build 2019-09-26 13:34:27 -04:00
Orta Therox 3fe7aafb5b Add a command for stripping the dependency down 2019-09-24 14:03:52 -04:00
Orta Therox 0da541528e Remove errors from the gulpfile 2019-09-23 14:16:30 -04:00
Alexander T 97368b7080 remove .eslintrc from scripts 2019-08-20 10:57:23 +03:00
Alexander T 4c30a6027b add --ci option to lint command to run eslint with the .eslintrc.ci config 2019-08-16 11:55:54 +03:00
Alexander T 3424f843f5 lint all ts files in scripts. remove tslint: directive. add extended eslint config for CI environment 2019-08-14 14:10:40 +03:00
Alexander T 466ee10011 add .eslintrc for src and scripts. update typescript-eslint 2019-08-14 12:34:16 +03:00
Alexander T c7834c54d8 fix eslint paths 2019-08-08 12:12:42 +03:00
Alexander T 828ebd54ed add eslint setting for .vscode 2019-08-08 10:57:04 +03:00
Alexander 481d70d50d Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-08-07 21:23:10 +03:00
Orta 47182b543a
Merge pull request #32454 from 0verk1ll/develop
Add Semicolons to Gulpfile.js
2019-08-07 10:29:18 -04:00
Alexander T 5217574414 split lint task to list-scripts, lint-compiler. add list-scripts, lint-compiler to postTest 2019-08-06 09:48:21 +03:00
Alexander T 034ba9fd25 Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-08-06 09:07:48 +03:00
Ron Buckton e3f4979736
Fix emit for object rest on a module export (#32699)
* Fix emit for object rest on a module export

* Add tests for exports of empty object/array binding patterns

* Add delay for exec to ensure diff tool has enough time to start
2019-08-05 16:53:21 -07:00
Alexander a37d34a5b6 lint src/, scripts/ folders separately 2019-08-04 15:33:01 +03:00
Alexander 0059763d8f move eslint rules from eslint-plugin-microsoft-typescript to scripts/eslint 2019-07-24 13:31:17 +03:00
0verk1ll ddbf7e198d Add Semicolons to Gulpfile.js 2019-07-17 16:57:25 -04:00
Alexander T 9f474150c6 Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-07-02 17:57:44 +03:00
Wesley Wigham 3e6856137a
Add support for sharding tests across multiple workers (#32173)
* Add support for sharding tests across multiple workers

* Disable unittests when runners are expressly provided (unless they contain the unittest runner)
2019-07-01 14:56:57 -07:00
Alexander T 810303542d Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-06-27 11:51:20 +03:00
Nathan Shively-Sanders 41b117eda7 Improve help message for skipPercent 2019-06-17 14:20:42 -07:00
Nathan Shively-Sanders 3ef953a819 Allow passing skipPercent
Currently, the default is 5%.

0 gives you 0% time savings
2.5 gives you 29%
5 gives you 38%
10 gives you 50%
20 gives you 65%
2019-06-14 15:59:39 -07:00
Alexander T 55b8a38d50 add eslint 2019-06-13 13:39:49 +03:00
Wesley Wigham 53c92d608f
Add configure-experimental (#31064) 2019-04-22 13:20:34 -07:00
Wesley Wigham ddf8fad6a8
Delete webtsc gulp tasks (#30350) 2019-03-12 17:06:54 -07:00
Sheetal Nandi 990b199ebd Merge branch 'master' into incrementalBuildInfo 2019-03-08 11:42:19 -08:00
Wesley Wigham a887c6ba40
Remove unused (and sometimes broken) targets and scripts (#30054)
* Remove unused (and sometimes broken) targets and scripts

* Remove browser-specific harness code
2019-03-08 10:34:35 -08:00
Sheetal Nandi 67071723aa Fix unnecessary additional deletion paths from cleanLssl target 2019-03-05 14:14:02 -08:00
Sheetal Nandi d78335581e Update gulp to build using this branch 2019-03-01 13:44:14 -08:00