From ecebcc52e16eaafc401bb81c2fd311f019ec4675 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Tue, 2 May 2023 02:07:00 +0900 Subject: [PATCH] fix: error change in a2c92cb18f93459e61e2fc40dc4101637cb1195e --- src/currentFile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/currentFile.ts b/src/currentFile.ts index 7e606bb..e48a1fd 100644 --- a/src/currentFile.ts +++ b/src/currentFile.ts @@ -4,7 +4,7 @@ import { commands, StatusBarAlignment, StatusBarItem, window, workspace, env } f import { Config } from "./config"; import { QuickPicker, QuickPickerAction } from "./quickPicker"; import { PathStyles, PathStartsFrom } from "./utils/types"; -import { join } from 'path'; +import { join, basename } from 'path'; const clipboard= env.clipboard; @@ -145,7 +145,7 @@ export class CurrentFile { this.startsFromRootDirectoryPath = editor.document.uri.fsPath; this.startsFromWorkSpaceHighestDirectoryPath = editor.document.uri.fsPath; - this.name = pathModule.basename(editor.document.uri.fsPath); + this.name = basename(editor.document.uri.fsPath); this.updateStatusBar(); this.statusBarItem.show();