Build an Electron C/C++ Theia IDE, from the Eclipse Theia platform, using the package.json
present in this folder. Electron applications are a good
choice for local development.
See here for dependencies you'll need to build a Theia application.
You will need to install the clangd language server.
By default, the clangd
executable is assumed to be named the same and be in the system's path. You can configure an alternate name using the preference cpp.clangdExecutable
.
If you wish to provide startup arguments to clangd
, use the preference cpp.clangdArgs
.
You may override the default value of preferences by editing the preferences
entry in package.json
.
If you wish to use the clang-tidy linter integration, you will need to install clangd version 9 or higher, that has a built-in clang-tidy
, that can provide diagnostics in your Theia editor as you type. You also need to enable the integration using the cpp.clangTidy
preference.
The C/C++ features are provided by the @theia/cpp
extension. Look here for more details about this extension.
Build like so:
$> cd theia-app/theia-cpp-electron
$> yarn; yarn build
Start with defaults:
$> yarn start
You can add startup arguments as well:
$> yarn theia start /home/user/workspace
If you wish to package your application, you might take inspiration from the theia-electron
example.