Skip to content

Commit 824bbb2

Browse files
authored
Add commands to command palette (#598)
1 parent 3dd461c commit 824bbb2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

python/jupytercad_core/src/jcadplugin/plugins.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
ICollaborativeDrive,
33
SharedDocumentFactory
44
} from '@jupyter/collaborative-drive';
5-
import { logoIcon } from '@jupytercad/base';
5+
import { logoIcon, CommandIDs as BaseCommandIDs } from '@jupytercad/base';
66
import {
77
IAnnotationModel,
88
IAnnotationToken,
@@ -172,6 +172,13 @@ const activate = (
172172
command: CommandIDs.createNew,
173173
category: PALETTE_CATEGORY
174174
});
175+
176+
for (const command in BaseCommandIDs) {
177+
palette.addItem({
178+
command: BaseCommandIDs[command],
179+
category: PALETTE_CATEGORY
180+
});
181+
}
175182
}
176183
};
177184

0 commit comments

Comments
 (0)