Skip to content

Commit 04b2355

Browse files
committed
Fix relative paths (again)
This are hard to get right, and harder to test.
1 parent acfc93a commit 04b2355

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/features/Examples.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class ExamplesFeature implements vscode.Disposable {
99
private examplesPath: string;
1010

1111
constructor() {
12-
this.examplesPath = path.resolve(__dirname, "../../examples");
12+
this.examplesPath = path.resolve(__dirname, "../examples");
1313
this.command = vscode.commands.registerCommand("PowerShell.OpenExamplesFolder", () => {
1414
vscode.commands.executeCommand(
1515
"vscode.openFolder",

src/features/PesterTests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class PesterTestsFeature implements vscode.Disposable {
1818
private invokePesterStubScriptPath: string;
1919

2020
constructor(private sessionManager: SessionManager) {
21-
this.invokePesterStubScriptPath = path.resolve(__dirname, "../../modules/PowerShellEditorServices/InvokePesterStub.ps1");
21+
this.invokePesterStubScriptPath = path.resolve(__dirname, "../modules/PowerShellEditorServices/InvokePesterStub.ps1");
2222

2323
// File context-menu command - Run Pester Tests
2424
this.command = vscode.commands.registerCommand(

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface IEditorServicesSessionDetails {
4545

4646
export type IReadSessionFileCallback = (details: IEditorServicesSessionDetails) => void;
4747

48-
const sessionsFolder = path.resolve(__dirname, "..", "..", "sessions/");
48+
const sessionsFolder = path.resolve(__dirname, "../sessions");
4949
const sessionFilePathPrefix = path.resolve(sessionsFolder, "PSES-VSCode-" + process.env.VSCODE_PID);
5050

5151
// Create the sessions path if it doesn't exist already

0 commit comments

Comments
 (0)