Skip to content

Commit 085f97e

Browse files
output buffer cleanup
1 parent ac7fc00 commit 085f97e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: arduino-ide-extension/src/node/core-service-impl.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { firstToUpperCase, firstToLowerCase } from '../common/utils';
2525
import { Port } from './cli-protocol/cc/arduino/cli/commands/v1/port_pb';
2626
import { nls } from '@theia/core';
2727
import { MonitorManager } from './monitor-manager';
28-
import { OutputPanelBufferProvider } from './output-panel-buffer-provider';
28+
import { SimpleBuffer } from './utils/simple-buffer';
2929

3030
@injectable()
3131
export class CoreServiceImpl extends CoreClientAware implements CoreService {
@@ -77,7 +77,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
7777

7878
const result = client.compile(compileReq);
7979

80-
const compileBuffer = new OutputPanelBufferProvider(
80+
const compileBuffer = new SimpleBuffer(
8181
this.flushOutputPanelMessages.bind(this),
8282
this.FLUSH_OUTPUT_MESSAGES_TIMEOUT_MS
8383
);
@@ -184,7 +184,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
184184

185185
const result = responseHandler(client, req);
186186

187-
const uploadBuffer = new OutputPanelBufferProvider(
187+
const uploadBuffer = new SimpleBuffer(
188188
this.flushOutputPanelMessages.bind(this),
189189
this.FLUSH_OUTPUT_MESSAGES_TIMEOUT_MS
190190
);
@@ -255,7 +255,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
255255
burnReq.setVerbose(options.verbose);
256256
const result = client.burnBootloader(burnReq);
257257

258-
const bootloaderBuffer = new OutputPanelBufferProvider(
258+
const bootloaderBuffer = new SimpleBuffer(
259259
this.flushOutputPanelMessages.bind(this),
260260
this.FLUSH_OUTPUT_MESSAGES_TIMEOUT_MS
261261
);

Diff for: arduino-ide-extension/src/node/output-panel-buffer-provider.ts renamed to arduino-ide-extension/src/node/utils/simple-buffer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export class OutputPanelBufferProvider {
1+
export class SimpleBuffer {
22
chunks: Uint8Array[] = [];
33

44
private flushInterval?: NodeJS.Timeout;

0 commit comments

Comments
 (0)