Skip to content

Commit

Permalink
fix typo isPythonAvaialble → isPythonAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
parmentelat committed Sep 20, 2024
1 parent cc7e605 commit 4832191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/opener.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Uri, window } from "vscode";
import { isConversionSupportedWithoutPython } from "./languages";
import { isPythonAvaialble } from "./python";
import { isPythonAvailable } from "./python";

export async function openFileAsPairedNotebook(uri: Uri){
const isPythonAvailable = await isPythonAvaialble();
if (!isPythonAvaialble && !isConversionSupportedWithoutPython(uri)){
const hasPython = await isPythonAvailable();
if (!hasPython && !isConversionSupportedWithoutPython(uri)){
window.showErrorMessage('Unable to open file as a paired notebook with Python installed');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type IPythonExtensionApi = {
};
};
};
export async function isPythonAvaialble(): Promise<boolean> {
export async function isPythonAvailable(): Promise<boolean> {
const pythonCmd = testPythonCommand().catch(() => false);
const pythonExt = testPythonExtCommand().catch(() => false);

Expand Down

0 comments on commit 4832191

Please sign in to comment.