Skip to content

Commit 5e11cee

Browse files
committed
fix for buttons
1 parent 6dd203e commit 5e11cee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"command": "myExtension.deleteElement",
4646
"group": "inline",
47-
"when": "customEditorOutlineItem == element"
47+
"when": "true"
4848
},
4949
{
5050
"command": "myExtension.duplicateElement",

src/vscode/DesignerTextEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class DesignerTextEditor implements vscode.CustomTextEditorProvider {
160160
id: 'btn-1',
161161
label: 'Button',
162162
icon: new vscode.ThemeIcon('symbol-event'),
163-
contextValue: 'widget',
163+
contextValue: 'element',
164164
},
165165
{
166166
id: 'input-1',

0 commit comments

Comments
 (0)