Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonadern committed Sep 3, 2024
1 parent adc554f commit 0bd055c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const importSettings = async (): Promise<void> => {

if (!(await isFileExists(configUri))) {
window.showErrorMessage(
`Error: Config File of uroborosql-fmt is not found: ${configUri.path}`,
`Error: Config File is not found: ${configUri.path}`,
);
return;
}
Expand All @@ -123,11 +123,9 @@ export const importSettings = async (): Promise<void> => {
),
);

// ワークスペース側で設定されている内容(`configurationFilePath` 以外)をすべてundefinedにする
// - undefined を設定する場合: settings.json の該当項目が削除される
// - null を設定する場合: settings.json の該当項目の値として明示的にnullが設定される
// ワークスペース側で設定されている設定項目(そのうち `configurationFilePath` 以外のもの)をすべて null にする
for (const key of Object.keys(nonNullOptions)) {
await vsCodeConfig.update(key, undefined);
await vsCodeConfig.update(key, null);
}

// format config の値で更新する
Expand Down

0 comments on commit 0bd055c

Please sign in to comment.