Skip to content
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

how to configure the file extensions that this extension applied on #20

Closed
parmentelat opened this issue Apr 22, 2023 · 5 comments
Closed

Comments

@parmentelat
Copy link

vscode-jupytext will trigger on a large number of file extensions - 27 as per src/languages.ts

It would be nice to have a way to configure this set of file extensions, primarily to avoid the real estate taken up by the Open as a Jupyter Notebook message

@parmentelat
Copy link
Author

PS
I find it perplexing that the supportedFileExtensions variable exported in src/languages.ts does not seem to be used anywhere in the code...

@parmentelat
Copy link
Author

on closer inspection, it seems more like the actual list comes from resourceLangIds as hard-coded in src/commands.ts

@DonJayamanne
Copy link
Member

DonJayamanne commented Apr 23, 2023

What other file extensions do you want to use this against?

@parmentelat
Copy link
Author

it's more about using it with fewer languages than with more
in my case I have 0 notebooks saved as a .ts - among others - but still I have this extension enabled on .ts files, I'd like to have a means to disable that

btw.
I'm currently filing PRs against congyiwu's fork because that is the version that I use on daily basis
is there a good reason for having 2 flavours - I mean, are the changes in that fork not relevant to you ? - and if so would you care to elaborate ?

@DonJayamanne
Copy link
Member

is there a good reason for having 2 flavours - I mean, are the changes in that fork not relevant to you

This extension is no longer actively maintained due to a number of reasons (its hacky and doesn't work very well, i.e. there are a number of scenarios where things do not work well, hence i do not wish to continue with a hacky extension)
The plan is for me to some how (some day) bring this functionality into vscode-jupyter itself.

Please upvote microsoft/vscode-jupyter#1237

parmentelat added a commit to parmentelat/vscode-jupytext that referenced this issue Sep 12, 2024
parmentelat added a commit to parmentelat/vscode-jupytext that referenced this issue Sep 20, 2024
…omizable as the jupytext.languages setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants