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

Register mimetype for *.code-workspace #95637

Merged
merged 1 commit into from Sep 9, 2020

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented Apr 19, 2020

Register a new mimetype for workspace files so that they aren't just classified as text/plain. This lets users specify VS Code to open workspace files without also associating it with every other text/plain type file.

Fixes: #59040 and #80818

The deb and rpm scripts were updated to install the mimetype but unfortunately Snap doesn't support this yet (see https://forum.snapcraft.io/t/allow-snaps-to-register-new-mime-types/6467/7).

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested it but looks good overall 👍

@luqmana
Copy link
Contributor Author

luqmana commented Jun 29, 2020

Was there anything else needed to merge this?

@luqmana
Copy link
Contributor Author

luqmana commented Aug 14, 2020

Ping @Tyriar @joaomoreno

@Tyriar Tyriar assigned Tyriar and unassigned joaomoreno Sep 4, 2020
@Tyriar Tyriar added this to the September 2020 milestone Sep 4, 2020
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I can't test it at the moment but it seems like a safe change to make. If you could verify the change once Insiders 1.50 comes out that would be great, we'll also test it when we test stable 1.50.

@Tyriar Tyriar merged commit 65b4134 into microsoft:master Sep 9, 2020
@@ -46,17 +47,24 @@ ln -sf /usr/share/@@NAME@@/bin/@@NAME@@ %{_bindir}/@@NAME@@
# fi
#fi

# Update mimetype database to pickup workspace mimetype
update-mime-database /usr/share/mime &> /dev/null || :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luqmana should we also be testing for the executable's existence here?

@luqmana luqmana deleted the workspace-mimetype branch October 4, 2020 01:25
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linux Issues with VS Code on Linux workbench-os-integration Native OS integration issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please add MIME type for .code-workspace file
4 participants