mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-30 02:07:18 +00:00
15 lines
561 B
TypeScript
15 lines
561 B
TypeScript
import { injectable, inject } from 'inversify';
|
|
import { DefaultWorkspaceServer } from '@theia/workspace/lib/node/default-workspace-server';
|
|
import { ConfigService } from '../common/protocol/config-service';
|
|
|
|
@injectable()
|
|
export class DefaultWorkspaceServerExt extends DefaultWorkspaceServer {
|
|
|
|
@inject(ConfigService) protected readonly configService: ConfigService;
|
|
|
|
protected async getWorkspaceURIFromCli(): Promise<string | undefined> {
|
|
const config = await this.configService.getConfiguration();
|
|
return config.sketchDirUri;
|
|
}
|
|
|
|
} |