@@ -11,6 +11,7 @@ import { LanguageClient, CloseAction, ErrorAction, InitializeError, Message, Rev
11
11
interface LanguageServerConfig {
12
12
readonly lsPath : string ;
13
13
readonly cliPath : string ;
14
+ readonly cliConfigPath : string ;
14
15
readonly clangdPath : string ;
15
16
readonly board : {
16
17
readonly fqbn : string ;
@@ -187,8 +188,8 @@ async function startLanguageServer(context: ExtensionContext, config: LanguageSe
187
188
}
188
189
189
190
async function buildLanguageClient ( config : LanguageServerConfig ) : Promise < LanguageClient > {
190
- const { lsPath : command , clangdPath, cliPath, board, flags, env, log } = config ;
191
- const args = [ '-clangd' , clangdPath , '-cli' , cliPath , '-fqbn' , board . fqbn ] ;
191
+ const { lsPath : command , clangdPath, cliPath, cliConfigPath , board, flags, env, log } = config ;
192
+ const args = [ '-clangd' , clangdPath , '-cli' , cliPath , '-cli-config' , cliConfigPath , '- fqbn', board . fqbn ] ;
192
193
if ( board . name ) {
193
194
args . push ( '-board-name' , board . name ) ;
194
195
}
0 commit comments