-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove facilities for temporary files
Signed-off-by: Lorenz Leutgeb <[email protected]>
- Loading branch information
1 parent
a669d86
commit ac29b28
Showing
6 changed files
with
2 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ export interface ExtensionConfig { | |
'radicle.advanced.pathToRadBinary': string | ||
'radicle.advanced.pathToNodeHome': string | ||
'radicle.advanced.httpApiEndpoint': string | ||
'radicle.hideTempFiles': boolean | ||
} | ||
|
||
/** | ||
|
@@ -33,10 +32,7 @@ export function getConfig<K extends keyof ExtensionConfig>( | |
case 'radicle.advanced.httpApiEndpoint': | ||
// if the config has the value of the empty string (default) then return `undefined` | ||
// @ts-expect-error | ||
Check failure on line 34 in src/helpers/config.ts GitHub Actions / audit (macos-latest)
Check failure on line 34 in src/helpers/config.ts GitHub Actions / audit (ubuntu-latest)
|
||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call | ||
return config.get<ExtensionConfig[K]>(configKey)?.trim() || undefined | ||
case 'radicle.hideTempFiles': | ||
return config.get<ExtensionConfig[K]>(configKey) | ||
default: | ||
return assertUnreachable(configKey) | ||
} | ||
|
@@ -56,8 +52,6 @@ export function setConfig<K extends keyof ExtensionConfig>( | |
case 'radicle.advanced.pathToNodeHome': | ||
case 'radicle.advanced.httpApiEndpoint': | ||
return config.update(configKey, value, ConfigurationTarget.Global) | ||
case 'radicle.hideTempFiles': | ||
return config.update(configKey, value, ConfigurationTarget.Global) | ||
default: | ||
return assertUnreachable(configKey) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters