File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,14 @@ export function activate(context: vscode.ExtensionContext) {
14
14
const text = document . getText ( selection ) ;
15
15
const includeFilePath = vscode . workspace
16
16
. getConfiguration ( "YOCO" )
17
- . get < boolean > ( "includeFilePaths " , false ) ;
17
+ . get < boolean > ( "includeFilePath " , false ) ;
18
18
19
19
let filePath = document . uri . path ;
20
20
const workspacePath = vscode . workspace . getWorkspaceFolder ( document . uri ) ;
21
21
22
22
// 설정이 true일 때만 파일 경로를 포함
23
23
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 ) ;
26
25
} else {
27
26
filePath = document . uri . path . split ( "/" ) . pop ( ) || "Untitled" ;
28
27
}
You can’t perform that action at this time.
0 commit comments