-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
I now need to fork to use an arbitrary commit in vscode #270
Comments
Just put this fork together and it seems to work fine https://github.com/Tyriar/xterm.js/tree/vscode-release/1.6 |
I guess you need to transpile the source in order to use it in vscode. VSCode transpiles the TypeScript too, right? Maybe you need to include the xterm source files, so that they get transpiled. |
From what I can see in microsoft/TypeScript#1983, TypeScript should be supporting ES6 Modules out of the box. I took a quick look into vscode's codealso and found out you are using the Considering a solution. What we could do is:
Not sure though if 1. and 2. will put unwanted weigh into the repository. What do you think @Tyriar? I am really interested also in learning why this does not work in vscode. |
I am not keen on the idea of those many releases. If you want to use the repository and not the compiled version from npm, then you should be responsible of compiling yourself. See #258 |
A release on every PR is a little intense 😅 weekly/fortnightly might be good though, that could be frequent enough (at least when I've been active) to not need to use my fork most of the time. Sometimes it may not be possible though, currently we have an API breakage for example so we need to be sure that everything's all good before committing. It isn't actually that much hassle syncing the fork, just not ideal. It's also a problem pretty specific to our situation since nearly everyone else would be using a tagged release. I'm also not the biggest fan of compiling in @parisk it's likely more due to the vscode module loader is not expecting it. I don't know too much about the system. @waywaaard we certainly wouldn't want to include the files in the vscode tree, that would cause a bunch of commit noise and also be more work than the current workaround. |
Closing this off, we'll finalize the details before we release 2.0.0 but I'm fine syncing the fork for vscode, it's fairly easy to do. Mainly just wanted to bring it to everyone's attention. |
After the babel change I now can no longer require xterm.js into vscode as it complains about import.
Not sure if this is because we're using import incorrectly or maybe it's just not supported by our module loader.
Regardless, after #269 is applied, I then need to manually run
npm i && npm run build
in order to require xterm.js. So I'm going to need to keep a branch on my fork for the release that I sync to a commit, build and then check in the build files since they no longer ship with the repo and they don't install automatically with the module.Maybe this doesn't matter in general since most people will not want to ship non-release versions. Wondering if this was considered with the new build and if there is anything we can do to make it easier for anyone to run on an arbitrary commit?
The text was updated successfully, but these errors were encountered: