Renames dependency check method for clarity
Updates method name from 'checkDependenciesAsync' to 'checkDependenciesOnStartup' to better reflect its purpose of verifying dependencies during plugin startup. Enhances code readability and maintainability.
This commit is contained in:
3 files changed
+5
-6
No files matched your search
@@ -178,8 +178,8 @@ export class obsidianTypstPDFExport extends Plugin {
|
||||
);
|
||||
}
|
||||
|
||||
checkDependenciesAsync(): void {
|
||||
DependencyChecker.checkDependenciesAsync(
|
||||
checkDependenciesOnStartup(): void {
|
||||
DependencyChecker.checkDependenciesOnStartup(
|
||||
this.settings.pandocPath,
|
||||
this.settings.typstPath,
|
||||
this.settings.executablePaths?.imagemagickPath,
|
||||
|
||||
@@ -321,7 +321,6 @@ ${dependencyResult.allAvailable
|
||||
* @param typstPath - Optional custom path to Typst executable
|
||||
* @param imagemagickPath - Optional custom path to ImageMagick convert executable
|
||||
* @param additionalPaths - Additional directories to search for executables
|
||||
* @returns Promise that resolves when the check is complete
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
@@ -331,7 +330,7 @@ ${dependencyResult.allAvailable
|
||||
* await this.loadSettings();
|
||||
*
|
||||
* // Silent startup check - only shows notice if problems exist
|
||||
* await DependencyChecker.checkDependenciesAsync(
|
||||
* DependencyChecker.checkDependenciesOnStartup(
|
||||
* this.settings.pandocPath,
|
||||
* this.settings.typstPath,
|
||||
* this.settings.imagemagickPath,
|
||||
@@ -348,7 +347,7 @@ ${dependencyResult.allAvailable
|
||||
* // Run 'Check Dependencies' command for details."
|
||||
* ```
|
||||
*/
|
||||
public static checkDependenciesAsync(
|
||||
public static checkDependenciesOnStartup(
|
||||
pandocPath?: string,
|
||||
typstPath?: string,
|
||||
imagemagickPath?: string,
|
||||
|
||||
@@ -53,7 +53,7 @@ export class PluginLifecycle {
|
||||
this.cleanupStartupTempDirectories();
|
||||
|
||||
// Check dependencies on startup
|
||||
this.plugin.checkDependenciesAsync();
|
||||
this.plugin.checkDependenciesOnStartup();
|
||||
|
||||
// Cache available fonts (async, don't await)
|
||||
void this.plugin.cacheAvailableFonts();
|
||||
|
||||
Reference in new issue
Block a user