Skip to content

Commit cb9d006

Browse files
committed
Add "installed" filter in boards manager
1 parent 93d27ea commit cb9d006

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

arduino-ide-extension/src/common/nls.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { nls } from '@theia/core/lib/common/nls';
44
export const Unknown = nls.localize('arduino/common/unknown', 'Unknown');
55
export const Later = nls.localize('arduino/common/later', 'Later');
66
export const Updatable = nls.localize('arduino/common/updateable', 'Updatable');
7+
export const Installed = nls.localize('arduino/common/installed', 'Installed');
78
export const All = nls.localize('arduino/common/all', 'All');
89
export const Type = nls.localize('arduino/common/type', 'Type');
910
export const Partner = nls.localize('arduino/common/partner', 'Partner');

arduino-ide-extension/src/common/protocol/boards-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Partner,
99
Type as TypeLabel,
1010
Updatable,
11+
Installed
1112
} from '../nls';
1213
import type { Defined } from '../types';
1314
import { naturalCompare } from './../utils';
@@ -113,6 +114,7 @@ export namespace BoardSearch {
113114
export const TypeLiterals = [
114115
'All',
115116
'Updatable',
117+
'Installed',
116118
'Arduino',
117119
'Contributed',
118120
'Arduino Certified',
@@ -128,6 +130,7 @@ export namespace BoardSearch {
128130
export const TypeLabels: Record<Type, string> = {
129131
All: All,
130132
Updatable: Updatable,
133+
Installed: Installed,
131134
Arduino: 'Arduino',
132135
Contributed: Contributed,
133136
'Arduino Certified': nls.localize(

arduino-ide-extension/src/node/boards-service-impl.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ export class BoardsServiceImpl
423423
switch (options.type) {
424424
case 'Updatable':
425425
return Installable.Updateable;
426+
case 'Installed':
427+
return Installable.Installed;
426428
case 'Arduino':
427429
case 'Partner':
428430
case 'Arduino@Heart':

i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
"all": "All",
141141
"contributed": "Contributed",
142142
"installManually": "Install Manually",
143+
"installed": "Installed",
143144
"later": "Later",
144145
"noBoardSelected": "No board selected",
145146
"noSketchOpened": "No sketch opened",

0 commit comments

Comments
 (0)