From cde709290cdc33c1b73a358609eff7f46251e119 Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Sun, 5 Jan 2025 20:15:31 +0800 Subject: [PATCH] [vscode] use default path when default path is not empty --- src/mlirContext.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mlirContext.ts b/src/mlirContext.ts index c7b6de6..9a59653 100644 --- a/src/mlirContext.ts +++ b/src/mlirContext.ts @@ -331,10 +331,9 @@ export class MLIRContext implements vscode.Disposable { // If a path hasn't been set, try to use the default path. if (filePath === '') { - if (defaultPath === '') { - return filePath; + if (defaultPath !== '') { + return defaultPath; } - filePath = defaultPath; // Fallthrough to try resolving the default path. }