mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-09-30 07:08:33 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
33f790a2db |
@@ -74,9 +74,7 @@ export class UserFields extends Contribution {
|
|||||||
async checkUserFieldsDialog(forceOpen = false): Promise<boolean> {
|
async checkUserFieldsDialog(forceOpen = false): Promise<boolean> {
|
||||||
const key = this.selectedFqbnAddress();
|
const key = this.selectedFqbnAddress();
|
||||||
if (!key) {
|
if (!key) {
|
||||||
// Let the upload continue without an FQBN and the CLI fail instead of disabling the upload from IDE.
|
return false;
|
||||||
// https://github.com/arduino/arduino-ide/issues/1714
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
If the board requires to be configured with user fields, we want
|
If the board requires to be configured with user fields, we want
|
||||||
|
@@ -1,14 +1,20 @@
|
|||||||
|
import { CommandRegistry } from '@theia/core/lib/common/command';
|
||||||
|
import { MenuModelRegistry } from '@theia/core/lib/common/menu/menu-model-registry';
|
||||||
|
import { nls } from '@theia/core/lib/common/nls';
|
||||||
import { injectable } from '@theia/core/shared/inversify';
|
import { injectable } from '@theia/core/shared/inversify';
|
||||||
import { MenuModelRegistry } from '@theia/core';
|
|
||||||
import {
|
import {
|
||||||
KeymapsFrontendContribution as TheiaKeymapsFrontendContribution,
|
|
||||||
KeymapsCommands,
|
KeymapsCommands,
|
||||||
|
KeymapsFrontendContribution as TheiaKeymapsFrontendContribution,
|
||||||
} from '@theia/keymaps/lib/browser/keymaps-frontend-contribution';
|
} from '@theia/keymaps/lib/browser/keymaps-frontend-contribution';
|
||||||
import { ArduinoMenus } from '../../menu/arduino-menus';
|
import { ArduinoMenus } from '../../menu/arduino-menus';
|
||||||
import { nls } from '@theia/core/lib/common';
|
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class KeymapsFrontendContribution extends TheiaKeymapsFrontendContribution {
|
export class KeymapsFrontendContribution extends TheiaKeymapsFrontendContribution {
|
||||||
|
override registerCommands(registry: CommandRegistry): void {
|
||||||
|
super.registerCommands(registry);
|
||||||
|
registry.unregisterCommand(KeymapsCommands.OPEN_KEYMAPS_JSON_TOOLBAR.id);
|
||||||
|
}
|
||||||
|
|
||||||
override registerMenus(menus: MenuModelRegistry): void {
|
override registerMenus(menus: MenuModelRegistry): void {
|
||||||
menus.registerMenuAction(ArduinoMenus.FILE__ADVANCED_SUBMENU, {
|
menus.registerMenuAction(ArduinoMenus.FILE__ADVANCED_SUBMENU, {
|
||||||
commandId: KeymapsCommands.OPEN_KEYMAPS.id,
|
commandId: KeymapsCommands.OPEN_KEYMAPS.id,
|
||||||
|
Reference in New Issue
Block a user