Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/main/context-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@ export function getMonacoItems({
},
},
{ type: 'separator' },
{
id: 'palette',
label: 'Command Palette',
click() {
const cmd = ['editor.action.quickCommand'];
ipcMainManager.send(IpcEvents.MONACO_EXECUTE_COMMAND, cmd);
},
},
{ type: 'separator' },
{
id: 'format_document',
label: 'Format Document',
Expand Down
2 changes: 1 addition & 1 deletion tests/main/context-menu-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ describe('context-menu', () => {
editFlags: { canPaste: true },
pageURL: 'index.html',
} as any);
expect(result).toHaveLength(10);
expect(result).toHaveLength(8);
});

it('executes an IPC send() for each element', () => {
Expand Down
9 changes: 9 additions & 0 deletions tools/webpack/webpack.renderer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ export const rendererConfig: Configuration = {
...plugins,
new MonacoWebpackPlugin({
languages: ['typescript', 'javascript', 'html', 'css'],
// This array maps to specific entries in the Monaco metadata
// To see a full list and where they map to in VSCode, see 'monaco-editor/esm/metadata'
features: [
'!contextmenu',
'!iPadShowKeyboard',
'!snippets',
'!quickCommand',
'!quickOutline',
],
}),
new MiniCssExtractPlugin({
filename: './css/[name].css',
Expand Down