Skip to content

Commit 370dfc5

Browse files
committed
[fix] fix wrong cofiguration name
1 parent f32a799 commit 370dfc5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/extension.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ export function activate(context: vscode.ExtensionContext) {
1414
const text = document.getText(selection);
1515
const includeFilePath = vscode.workspace
1616
.getConfiguration("YOCO")
17-
.get<boolean>("includeFilePaths", false);
17+
.get<boolean>("includeFilePath", false);
1818

1919
let filePath = document.uri.path;
2020
const workspacePath = vscode.workspace.getWorkspaceFolder(document.uri);
2121

2222
// 설정이 true일 때만 파일 경로를 포함
2323
if (includeFilePath && workspacePath) {
24-
const relativePath = path.relative(workspacePath.uri.path, document.uri.fsPath);
25-
filePath = relativePath;
24+
filePath = path.relative(workspacePath.uri.path, document.uri.path);
2625
} else {
2726
filePath = document.uri.path.split("/").pop() || "Untitled";
2827
}

0 commit comments

Comments
 (0)