We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
directories.user
1 parent b3ab5cb commit 6983c5bCopy full SHA for 6983c5b
arduino-ide-extension/src/node/config-service-impl.ts
@@ -56,7 +56,10 @@ export class ConfigServiceImpl
56
this.loadCliConfig().then(async (cliConfig) => {
57
this.cliConfig = cliConfig;
58
if (this.cliConfig) {
59
- const config = await this.mapCliConfigToAppConfig(this.cliConfig);
+ const [config] = await Promise.all([
60
+ this.mapCliConfigToAppConfig(this.cliConfig),
61
+ this.ensureUserDirExists(this.cliConfig),
62
+ ]);
63
if (config) {
64
this.config = config;
65
this.ready.resolve();
@@ -263,4 +266,11 @@ export class ConfigServiceImpl
263
266
grpc.credentials.createInsecure()
264
267
) as SettingsServiceClient;
265
268
}
269
+
270
+ // #1445
271
+ private async ensureUserDirExists(
272
+ cliConfig: DefaultCliConfig
273
+ ): Promise<void> {
274
+ await fs.mkdir(cliConfig.directories.user, { recursive: true });
275
+ }
276
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments