Skip to content

Commit

Permalink
chore: 🤖 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpinto8zz6 committed Jan 31, 2024
1 parent 2323ac7 commit 8d66acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { currentShell, getPath, getRunPrefix, parseShell } from "./utils/shell-u
import { basename } from "path";
import { externalTerminal } from "./external-terminal";
import { getOutputLocation } from "./utils/file-utils";
const isWsl = require("is-wsl");

export class Runner {
private file: File;
Expand Down Expand Up @@ -41,7 +42,6 @@ export class Runner {

const runCommand = this.getRunCommand(parsedExecutable, args, customPrefix, shell);

const isWsl = require("is-wsl");
if (shouldRunInExternalTerminal === true && isWsl){
Notification.showWarningMessage("Wsl detected, running in vscode terminal!");

Expand Down
2 changes: 1 addition & 1 deletion src/utils/common-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import find from "find-process";
import { lookpath } from "lookpath";
import { isStringNullOrWhiteSpace } from "./string-utils";
const isWsl = require("is-wsl");

export async function commandExists(command: string): Promise<boolean> {
const result = await lookpath(command);
Expand All @@ -9,7 +10,6 @@ export async function commandExists(command: string): Promise<boolean> {

export async function isProccessRunning(proccess: string): Promise<boolean> {
// Temporary workaround for wsl
const isWsl = require("is-wsl");
if (isWsl){
return false;
}
Expand Down

0 comments on commit 8d66acf

Please sign in to comment.