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

file name extension configuration able #1

Open
foxundermoon opened this issue Sep 11, 2017 · 10 comments · May be fixed by #27
Open

file name extension configuration able #1

foxundermoon opened this issue Sep 11, 2017 · 10 comments · May be fixed by #27

Comments

@foxundermoon
Copy link

foxundermoon commented Sep 11, 2017

there are many file ext name for zip such as .egg .apk ....

but now it just .zip ext context menu.

so can add file extensions config

"zipFileExplorer.zipFileExts" : [".zip",".egg",".apk"]
@stef-levesque
Copy link
Owner

The file extensions are currently set in the contributes/languages section of the package.json

I'm not sure there is a dynamic way to register new extensions to a LanguageId (in this case, zip)

@sandy081 do you know a way we could do that within the extension code (i.e. registering new file extensions to the zip LanguageId at runtime) ?

@stef-levesque
Copy link
Owner

@foxundermoon in the meanwhile, you can manually add .egg and .apk in your user settings, under files.associations

something like that should work:

{
	"files.associations": {
		"*.egg": "zip",
		"*.apk": "zip"
	}
}

@sandy081
Copy link

You can always update the settings programatically.

@stef-levesque
Copy link
Owner

You mean update the Workspace Settings for files.associations at Extension activation-time ?

@sandy081
Copy link

Yes

@DarwinJS
Copy link

DarwinJS commented Apr 1, 2018

Would be great to have this capability to be able to view .nupkg files which are just .zips

@fwcd
Copy link

fwcd commented Apr 22, 2018

A settings config for custom ZIP-file extensions would indeed be awesome, especially considering that most Java-libraries are packaged as JAR-files.

@ahmadmn
Copy link

ahmadmn commented Dec 29, 2018

Would be great to have this capability to be able to view and edit .gz files

@tobia
Copy link

tobia commented Jun 3, 2020

@foxundermoon in the meanwhile, you can manually add .egg and .apk in your user settings, under files.associations

{
	"files.associations": {
		"*.egg": "zip",
		"*.apk": "zip"
	}
}

I think this is enough, but it should be mentioned somewhere in the extension page.

Either that, or show the Zip menu entries on any file, and just give an error if the file was not a zip file.

@mivanit
Copy link

mivanit commented Oct 3, 2023

@foxundermoon in the meanwhile, you can manually add .egg and .apk in your user settings, under files.associations

something like that should work:

{
	"files.associations": {
		"*.egg": "zip",
		"*.apk": "zip"
	}
}

adding this to the readme of the package would be very helpful

mivanit added a commit to mivanit/vscode-zipexplorer that referenced this issue Oct 3, 2023
its possible to use this extension to open files with other extensions that are actually just zip files, but this information is not obvious and [buried in the issues](stef-levesque#1 (comment))
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

Successfully merging a pull request may close this issue.

8 participants