Skip to content

Commit a2c92cb

Browse files
committed
refactor: requrie to import
1 parent 9e60d4b commit a2c92cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/currentFile.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { commands, StatusBarAlignment, StatusBarItem, window, workspace, env } f
44
import { Config } from "./config";
55
import { QuickPicker, QuickPickerAction } from "./quickPicker";
66
import { PathStyles, PathStartsFrom } from "./utils/types";
7+
import { join } from 'path';
78
const clipboard= env.clipboard;
8-
const pathModule = require("path");
9+
910

1011
export class CurrentFile {
1112
private readonly _config: Config;
@@ -86,7 +87,7 @@ export class CurrentFile {
8687
this._startsFromWorkSpaceHighestDirectoryPath = path;
8788
return;
8889
}
89-
this._startsFromWorkSpaceHighestDirectoryPath = pathModule.join(
90+
this._startsFromWorkSpaceHighestDirectoryPath = join(
9091
rootFolderObj.name,
9192
this.toUnixStyle(path).replace(
9293
this.toUnixStyle(rootFolderObj.uri.fsPath),

0 commit comments

Comments
 (0)