mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-15 05:09:29 +00:00
test: added compiler + build output path test
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -434,6 +434,7 @@ export class BoardsServiceImpl
|
||||
progressId?: string;
|
||||
version?: Installable.Version;
|
||||
noOverwrite?: boolean;
|
||||
skipPostInstall?: boolean;
|
||||
}): Promise<void> {
|
||||
const item = options.item;
|
||||
const version = !!options.version
|
||||
@@ -450,6 +451,9 @@ export class BoardsServiceImpl
|
||||
req.setPlatformPackage(platform);
|
||||
req.setVersion(version);
|
||||
req.setNoOverwrite(Boolean(options.noOverwrite));
|
||||
if (options.skipPostInstall) {
|
||||
req.setSkipPostInstall(true);
|
||||
}
|
||||
|
||||
console.info('>>> Starting boards package installation...', item);
|
||||
|
||||
|
||||
@@ -63,7 +63,6 @@ export class CoreClientProvider {
|
||||
new Emitter<CoreClientProvider.Client>();
|
||||
private readonly onClientReady = this.onClientReadyEmitter.event;
|
||||
|
||||
private ready = new Deferred<void>();
|
||||
private pending: Deferred<CoreClientProvider.Client> | undefined;
|
||||
private _client: CoreClientProvider.Client | undefined;
|
||||
|
||||
@@ -135,14 +134,6 @@ export class CoreClientProvider {
|
||||
const client = await this.createClient(address);
|
||||
this.toDisposeOnCloseClient.pushAll([
|
||||
Disposable.create(() => client.client.close()),
|
||||
Disposable.create(() => {
|
||||
this.ready.reject(
|
||||
new Error(
|
||||
`Disposed. Creating a new gRPC core client on address ${address}.`
|
||||
)
|
||||
);
|
||||
this.ready = new Deferred();
|
||||
}),
|
||||
]);
|
||||
await this.initInstanceWithFallback(client);
|
||||
return this.useClient(client);
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
SketchContainer,
|
||||
SketchesError,
|
||||
} from '../common/protocol/sketches-service';
|
||||
import { NotificationServiceServerImpl } from './notification-service-server';
|
||||
import { NotificationServiceServer } from '../common/protocol';
|
||||
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
||||
import { CoreClientAware } from './core-client-provider';
|
||||
import {
|
||||
@@ -77,8 +77,8 @@ export class SketchesServiceImpl
|
||||
@inject(ConfigServiceImpl)
|
||||
private readonly configService: ConfigServiceImpl;
|
||||
|
||||
@inject(NotificationServiceServerImpl)
|
||||
private readonly notificationService: NotificationServiceServerImpl;
|
||||
@inject(NotificationServiceServer)
|
||||
private readonly notificationService: NotificationServiceServer;
|
||||
|
||||
@inject(EnvVariablesServer)
|
||||
private readonly envVariableServer: EnvVariablesServer;
|
||||
|
||||
Reference in New Issue
Block a user