Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
1203a85182 build(deps): Bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 19:05:14 +00:00
15 changed files with 20 additions and 68 deletions

View File

@@ -346,7 +346,7 @@ jobs:
- name: Install Go - name: Install Go
if: runner.name != 'WINDOWS-SIGN-PC' if: runner.name != 'WINDOWS-SIGN-PC'
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@@ -463,7 +463,7 @@ jobs:
cache: 'yarn' cache: 'yarn'
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -66,7 +66,7 @@ jobs:
cache: 'yarn' cache: 'yarn'
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -24,7 +24,7 @@ jobs:
cache: 'yarn' cache: 'yarn'
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -24,7 +24,7 @@ jobs:
cache: 'yarn' cache: 'yarn'
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -97,7 +97,7 @@ jobs:
python-version: '3.11.x' python-version: '3.11.x'
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -26,7 +26,7 @@ jobs:
cache: 'yarn' cache: 'yarn'
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -46,9 +46,9 @@ See [**the contributor guide**](docs/CONTRIBUTING.md#contributor-guide) for more
See the [**development guide**](docs/development.md) for a technical overview of the application and instructions for building the code. See the [**development guide**](docs/development.md) for a technical overview of the application and instructions for building the code.
### Support the project ## Donations
This open source code was written by the Arduino team and is maintained on a daily basis with the help of the community. We invest a considerable amount of time in development, testing and optimization. Please consider [buying original Arduino boards](https://store.arduino.cc/) to support our work on the project. This open source code was written by the Arduino team and is maintained on a daily basis with the help of the community. We invest a considerable amount of time in development, testing and optimization. Please consider [donating](https://www.arduino.cc/en/donate/) or [sponsoring](https://github.com/sponsors/arduino) to support our work, as well as [buying original Arduino boards](https://store.arduino.cc/) which is the best way to make sure our effort can continue in the long term.
## License ## License

View File

@@ -44,7 +44,6 @@ export class ConfigServiceClient implements FrontendApplicationContribution {
} }
onStart(): void { onStart(): void {
console.log('just a test');
this.notificationCenter.onConfigDidChange((config) => this.use(config)); this.notificationCenter.onConfigDidChange((config) => this.use(config));
} }

View File

@@ -67,7 +67,3 @@ export function truncateLines(
} }
return [lines, charCount]; return [lines, charCount];
} }
export function joinLines(lines: Line[]): string {
return lines.map((line: Line) => line.message).join('');
}

View File

@@ -52,9 +52,6 @@ export namespace SerialMonitor {
}, },
'vscode/output.contribution/clearOutput.label' 'vscode/output.contribution/clearOutput.label'
); );
export const COPY_OUTPUT = {
id: 'serial-monitor-copy-output',
};
} }
} }
@@ -152,12 +149,6 @@ export class MonitorViewContribution
'Clear Output' 'Clear Output'
), ),
}); });
registry.registerItem({
id: SerialMonitor.Commands.COPY_OUTPUT.id,
command: SerialMonitor.Commands.COPY_OUTPUT.id,
icon: codicon('copy'),
tooltip: nls.localize('arduino/serial/copyOutput', 'Copy Output'),
});
} }
override registerCommands(commands: CommandRegistry): void { override registerCommands(commands: CommandRegistry): void {
@@ -170,15 +161,6 @@ export class MonitorViewContribution
} }
}, },
}); });
commands.registerCommand(SerialMonitor.Commands.COPY_OUTPUT, {
isEnabled: (widget) => widget instanceof MonitorWidget,
isVisible: (widget) => widget instanceof MonitorWidget,
execute: (widget) => {
if (widget instanceof MonitorWidget) {
widget.copyOutput();
}
},
});
if (this.toggleCommand) { if (this.toggleCommand) {
commands.registerCommand(this.toggleCommand, { commands.registerCommand(this.toggleCommand, {
execute: () => this.toggle(), execute: () => this.toggle(),

View File

@@ -28,7 +28,6 @@ import {
import { MonitorModel } from '../../monitor-model'; import { MonitorModel } from '../../monitor-model';
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state'; import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
import { serialMonitorWidgetLabel } from '../../../common/nls'; import { serialMonitorWidgetLabel } from '../../../common/nls';
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
@injectable() @injectable()
export class MonitorWidget extends ReactWidget { export class MonitorWidget extends ReactWidget {
@@ -48,7 +47,6 @@ export class MonitorWidget extends ReactWidget {
*/ */
protected closing = false; protected closing = false;
protected readonly clearOutputEmitter = new Emitter<void>(); protected readonly clearOutputEmitter = new Emitter<void>();
protected readonly copyOutputEmitter = new Emitter<void>();
@inject(MonitorModel) @inject(MonitorModel)
private readonly monitorModel: MonitorModel; private readonly monitorModel: MonitorModel;
@@ -58,8 +56,6 @@ export class MonitorWidget extends ReactWidget {
private readonly boardsServiceProvider: BoardsServiceProvider; private readonly boardsServiceProvider: BoardsServiceProvider;
@inject(FrontendApplicationStateService) @inject(FrontendApplicationStateService)
private readonly appStateService: FrontendApplicationStateService; private readonly appStateService: FrontendApplicationStateService;
@inject(ClipboardService)
private readonly clipboardService: ClipboardService;
private readonly toDisposeOnReset: DisposableCollection; private readonly toDisposeOnReset: DisposableCollection;
@@ -107,10 +103,6 @@ export class MonitorWidget extends ReactWidget {
this.update(); this.update();
} }
copyOutput(): void {
this.copyOutputEmitter.fire();
}
override dispose(): void { override dispose(): void {
this.toDisposeOnReset.dispose(); this.toDisposeOnReset.dispose();
super.dispose(); super.dispose();
@@ -255,8 +247,6 @@ export class MonitorWidget extends ReactWidget {
monitorModel={this.monitorModel} monitorModel={this.monitorModel}
monitorManagerProxy={this.monitorManagerProxy} monitorManagerProxy={this.monitorManagerProxy}
clearConsoleEvent={this.clearOutputEmitter.event} clearConsoleEvent={this.clearOutputEmitter.event}
copyOutputEvent={this.copyOutputEmitter.event}
clipboardService={this.clipboardService}
height={Math.floor(this.widgetHeight - 50)} height={Math.floor(this.widgetHeight - 50)}
/> />
</div> </div>

View File

@@ -3,10 +3,9 @@ import { Event } from '@theia/core/lib/common/event';
import { DisposableCollection } from '@theia/core/lib/common/disposable'; import { DisposableCollection } from '@theia/core/lib/common/disposable';
import { areEqual, FixedSizeList as List } from 'react-window'; import { areEqual, FixedSizeList as List } from 'react-window';
import dateFormat from 'dateformat'; import dateFormat from 'dateformat';
import { messagesToLines, truncateLines, joinLines } from './monitor-utils'; import { messagesToLines, truncateLines } from './monitor-utils';
import { MonitorManagerProxyClient } from '../../../common/protocol'; import { MonitorManagerProxyClient } from '../../../common/protocol';
import { MonitorModel } from '../../monitor-model'; import { MonitorModel } from '../../monitor-model';
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
export type Line = { message: string; timestamp?: Date; lineLen: number }; export type Line = { message: string; timestamp?: Date; lineLen: number };
@@ -75,9 +74,6 @@ export class SerialMonitorOutput extends React.Component<
this.props.clearConsoleEvent(() => this.props.clearConsoleEvent(() =>
this.setState({ lines: [], charCount: 0 }) this.setState({ lines: [], charCount: 0 })
), ),
this.props.copyOutputEvent(() =>
this.props.clipboardService.writeText(joinLines(this.state.lines))
),
this.props.monitorModel.onChange(({ property }) => { this.props.monitorModel.onChange(({ property }) => {
if (property === 'timestamp') { if (property === 'timestamp') {
const { timestamp } = this.props.monitorModel; const { timestamp } = this.props.monitorModel;
@@ -134,8 +130,6 @@ export namespace SerialMonitorOutput {
readonly monitorModel: MonitorModel; readonly monitorModel: MonitorModel;
readonly monitorManagerProxy: MonitorManagerProxyClient; readonly monitorManagerProxy: MonitorManagerProxyClient;
readonly clearConsoleEvent: Event<void>; readonly clearConsoleEvent: Event<void>;
readonly copyOutputEvent: Event<void>;
readonly clipboardService: ClipboardService;
readonly height: number; readonly height: number;
} }

View File

@@ -2,7 +2,6 @@ import { expect } from 'chai';
import { import {
messagesToLines, messagesToLines,
truncateLines, truncateLines,
joinLines,
} from '../../browser/serial/monitor/monitor-utils'; } from '../../browser/serial/monitor/monitor-utils';
import { Line } from '../../browser/serial/monitor/serial-monitor-send-output'; import { Line } from '../../browser/serial/monitor/serial-monitor-send-output';
import { set, reset } from 'mockdate'; import { set, reset } from 'mockdate';
@@ -16,7 +15,6 @@ type TestLine = {
charCount: number; charCount: number;
maxCharacters?: number; maxCharacters?: number;
}; };
expectedJoined?: string;
}; };
const date = new Date(); const date = new Date();
@@ -24,7 +22,6 @@ const testLines: TestLine[] = [
{ {
messages: ['Hello'], messages: ['Hello'],
expected: { lines: [{ message: 'Hello', lineLen: 5 }], charCount: 5 }, expected: { lines: [{ message: 'Hello', lineLen: 5 }], charCount: 5 },
expectedJoined: 'Hello',
}, },
{ {
messages: ['Hello', 'Dog!'], messages: ['Hello', 'Dog!'],
@@ -39,7 +36,6 @@ const testLines: TestLine[] = [
], ],
charCount: 10, charCount: 10,
}, },
expectedJoined: 'Hello\nDog!'
}, },
{ {
messages: ['Dog!'], messages: ['Dog!'],
@@ -71,7 +67,6 @@ const testLines: TestLine[] = [
{ message: "You're a good boy!", lineLen: 8 }, { message: "You're a good boy!", lineLen: 8 },
], ],
}, },
expectedJoined: "Hello Dog!\n Who's a good boy?\nYou're a good boy!",
}, },
{ {
messages: ['boy?\n', "You're a good boy!"], messages: ['boy?\n', "You're a good boy!"],
@@ -121,7 +116,6 @@ const testLines: TestLine[] = [
{ message: 'Yo', lineLen: 2 }, { message: 'Yo', lineLen: 2 },
], ],
}, },
expectedJoined: "Hello Dog!\nWho's a good boy?\nYo",
}, },
]; ];
@@ -171,10 +165,6 @@ describe('Monitor Utils', () => {
}); });
expect(totalCharCount).to.equal(charCount); expect(totalCharCount).to.equal(charCount);
} }
if (testLine.expectedJoined) {
const joined_str = joinLines(testLine.expected.lines);
expect(joined_str).to.equal(testLine.expectedJoined);
}
}); });
}); });
}); });

View File

@@ -7,19 +7,21 @@ Thanks for your interest in contributing to this project!
There are several ways you can get involved: There are several ways you can get involved:
| Type of contribution | Contribution method | | Type of contribution | Contribution method |
| ----------------------------------------- | ---------------------------------------------------------------- | | ----------------------------------------- | -------------------------------------------------------------------------------- |
| - Support<br/>- Question<br/>- Discussion | Post on the [**Arduino Forum**][forum] | | - Support<br/>- Question<br/>- Discussion | Post on the [**Arduino Forum**][forum] |
| - Bug report<br/>- Feature request | Issue report (see the guide [**here**][issues]) | | - Bug report<br/>- Feature request | Issue report (see the guide [**here**][issues]) |
| Testing | Beta testing, PR review (see the guide [**here**][beta-testing]) | | Testing | Beta testing, PR review (see the guide [**here**][beta-testing]) |
| Translation | See the guide [**here**][translate] | | Translation | See the guide [**here**][translate] |
| - Bug fix<br/>- Enhancement | Pull request (see the guide [**here**][prs]) | | - Bug fix<br/>- Enhancement | Pull request (see the guide [**here**][prs]) |
| Monetary | [Buy official products][store] | | Monetary | - [Donate][donate]<br/>- [Sponsor][sponsor]<br/>- [Buy official products][store] |
[forum]: https://forum.arduino.cc [forum]: https://forum.arduino.cc
[issues]: contributor-guide/issues.md#issue-report-guide [issues]: contributor-guide/issues.md#issue-report-guide
[beta-testing]: contributor-guide/beta-testing.md#beta-testing-guide [beta-testing]: contributor-guide/beta-testing.md#beta-testing-guide
[translate]: contributor-guide/translation.md#translator-guide [translate]: contributor-guide/translation.md#translator-guide
[prs]: contributor-guide/pull-requests.md#pull-request-guide [prs]: contributor-guide/pull-requests.md#pull-request-guide
[donate]: https://www.arduino.cc/en/donate/
[sponsor]: https://github.com/sponsors/arduino
[store]: https://store.arduino.cc [store]: https://store.arduino.cc
## Resources ## Resources

View File

@@ -435,7 +435,6 @@
"autoscroll": "Autoscroll", "autoscroll": "Autoscroll",
"carriageReturn": "Carriage Return", "carriageReturn": "Carriage Return",
"connecting": "Connecting to '{0}' on '{1}'...", "connecting": "Connecting to '{0}' on '{1}'...",
"copyOutput": "Copy Output",
"message": "Message (Enter to send message to '{0}' on '{1}')", "message": "Message (Enter to send message to '{0}' on '{1}')",
"newLine": "New Line", "newLine": "New Line",
"newLineCarriageReturn": "Both NL & CR", "newLineCarriageReturn": "Both NL & CR",