-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove typescriptServices.{js,d.ts}, protocol.d.ts, typescript_standalone.d.ts #51026
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
protocol.d.ts: We created this for vs and vscode as far as I remember.. are they not using it. |
Hm, so our current LKG script appears to be unable to delete files that are no longer copied, so this isn't yet a perfect test. |
Hah, so, this explains why Deno has in their "updating typescript" instructions a step that is deleting "dead" d.ts files. Our script never actually removed files that are no longer part of the build. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Alright, seems to work now. |
@typescript-bot pack this |
Heya @jakebailey, I've started to run the tarball bundle task on this PR at 7ddba70. You can monitor the build here. |
My latest PR clears the lib folder (besides README) before copying into it, so that the files get deleted. @weswigham mentioned that this might be undesirable; I can imagine that we actually do want to keep "dead" files forever, or something, so that people can continue to reference them in their old projects, but I'm not sure if that's intentional or not. If we do want this, it seems like we'd actually want to have those files in For now, I can instead just change |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
Looking at the diff when I run LKG locally, these files are deleted:
It appears as though we handle these explicitly: TypeScript/src/compiler/commandLineParser.ts Lines 94 to 96 in 5cd49f6
|
For reference, the new package contents: https://unpkg.com/browse/@typescript-deploys/[email protected]/lib/ |
Pulled out the part of this that can be merged early into #51061. |
01d70f4
to
bc1fcec
Compare
bc1fcec
to
8a2a92c
Compare
@@ -6,7 +6,7 @@ | |||
|
|||
// This script does two things: | |||
// | |||
// - Listens to changes to the built version of TypeScript (via a filewatcher on `built/local/typescriptServices.js`) | |||
// - Listens to changes to the built version of TypeScript (via a filewatcher on `built/local/typescript.js`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have to be updated to match the final state of monaco-editor. e.g. microsoft/monaco-editor#3356
@typescript-bot pack this |
Heya @jakebailey, I've started to run the tarball bundle task on this PR at fddcda1. You can monitor the build here. |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
@sheetalkamat I totally misread your comment, I didn't realize you were asking if they were using this file. It turns out that they are using it, though indirectly: https://github.com/microsoft/vscode/blob/main/extensions/typescript-language-features/src/protocol.d.ts I'll have to see if we can instead have them write something like: import * as ts from "typescript/lib/tsserverlibrary"
export = ts.server.protocol; Or something, which I think should do the same thing. |
I sent microsoft/vscode#163365 with this approach, which actually revealed a couple oops-es in the VS Code codebase. |
Going to close this; I will include this in the module conversion PR when the time comes. |
Fixes #50758, for TS 5.0.
These are files that nobody appears to use anymore, or are duplicated somewhere else. Notably, I have made all of these changes already on the module-ified TS branch, so this is a backport in prep for that (adapted for our current gulp build).
I'll try a
pack this
once microsoft/TypeScript-Make-Monaco-Builds#14 is in.TODO: