Skip to content

Commit

Permalink
refactor: requrie to import
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed May 1, 2023
1 parent 9e60d4b commit a2c92cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/currentFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ 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';
const clipboard= env.clipboard;
const pathModule = require("path");


export class CurrentFile {
private readonly _config: Config;
Expand Down Expand Up @@ -86,7 +87,7 @@ export class CurrentFile {
this._startsFromWorkSpaceHighestDirectoryPath = path;
return;
}
this._startsFromWorkSpaceHighestDirectoryPath = pathModule.join(
this._startsFromWorkSpaceHighestDirectoryPath = join(
rootFolderObj.name,
this.toUnixStyle(path).replace(
this.toUnixStyle(rootFolderObj.uri.fsPath),
Expand Down

0 comments on commit a2c92cb

Please sign in to comment.