mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-12-18 13:07:17 +00:00
24 lines
667 B
TypeScript
24 lines
667 B
TypeScript
import { FileUri } from '@theia/core/lib/common/file-uri';
|
|
import { injectable } from '@theia/core/shared/inversify';
|
|
import { ExecutableService } from '../common/protocol/executable-service';
|
|
import {
|
|
arduinoCliPath,
|
|
arduinoLanguageServerPath,
|
|
clangdPath,
|
|
} from './resources';
|
|
|
|
@injectable()
|
|
export class ExecutableServiceImpl implements ExecutableService {
|
|
async list(): Promise<{
|
|
clangdUri: string;
|
|
cliUri: string;
|
|
lsUri: string;
|
|
}> {
|
|
return {
|
|
clangdUri: FileUri.create(clangdPath).toString(),
|
|
cliUri: FileUri.create(arduinoCliPath).toString(),
|
|
lsUri: FileUri.create(arduinoLanguageServerPath).toString(),
|
|
};
|
|
}
|
|
}
|