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:
AlexKucera committed 2025-11-08 18:46:39 +01:00
1 parent 6098f99c68
commit 96859c98e5
3 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -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,
+2 -3
View File
@@ -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,
+1 -1
View File
@@ -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();