From 370dfc58c2f62c48bc59481a380bf54b0924ee13 Mon Sep 17 00:00:00 2001 From: Flik Jeong Date: Sat, 11 May 2024 15:41:22 +0900 Subject: [PATCH] [fix] fix wrong cofiguration name --- src/extension.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 6c43e85..002d2b6 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -14,15 +14,14 @@ export function activate(context: vscode.ExtensionContext) { const text = document.getText(selection); const includeFilePath = vscode.workspace .getConfiguration("YOCO") - .get("includeFilePaths", false); + .get("includeFilePath", false); let filePath = document.uri.path; const workspacePath = vscode.workspace.getWorkspaceFolder(document.uri); // 설정이 true일 때만 파일 경로를 포함 if (includeFilePath && workspacePath) { - const relativePath = path.relative(workspacePath.uri.path, document.uri.fsPath); - filePath = relativePath; + filePath = path.relative(workspacePath.uri.path, document.uri.path); } else { filePath = document.uri.path.split("/").pop() || "Untitled"; }