-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugcustom-editorsCustom editor API (webview based editors)Custom editor API (webview based editors)webviewWebview issuesWebview issues
Milestone
Description
- VSCode Version: 1.49.1
- OS Version: Ubuntu 20.04.1 LTS
Buttons and commands associated with a custom editor are gone
if you define a language in the package.json and a different file association in the settings.json.
You can reproduce this issue by doing the following changes on the custom-editor-sample:
- Add these contribution points in the
package.json
"menus": {
"commandPalette": [
{
"when": "resourceLangId == pawDraw",
"command": "catCustoms.pawDraw.new"
}
],
"editor/title": [
{
"when": "resourceLangId == pawDraw",
"command": "catCustoms.pawDraw.new",
"group": "navigation"
}
]
},
"languages": [
{
"id": "pawDraw",
"extensions": [
".pawDraw"
],
"aliases": [
"pawDraw"
]
}
]- Add this config in your
settings.json
"files.associations": {
"*.pawDraw": "xml"
}Since the custom editor works fine even with this file association,
I'd expect commands/buttons associated with this custom editor working fine as well.
Please let me know if this behavior is expected or if this is indeed a bug.
/cc @mjbvz
tarilabs
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugcustom-editorsCustom editor API (webview based editors)Custom editor API (webview based editors)webviewWebview issuesWebview issues
