Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:tobias-z/vscode-harpoon into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaszimmermann committed Jul 23, 2023
2 parents 590964e + c51a02d commit b56367b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- Added ability to use vscode-harpoon inside a 'Live Share' (https://learn.microsoft.com/en-us/visualstudio/liveshare/) session.

## [1.2.2]

- Allow files living on the windows D drive to be marked as editors.

## [1.2.1]

- Allow jumping to already open splits
Expand Down
3 changes: 2 additions & 1 deletion src/commands/edit-editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getSlash, isWindows } from "../util/system";
import { homedir } from "os";

const HARPOON_FILE = "vscodeHarpoon.harpoon";
const DRIVES = ["C:", "c:", "D:", "d:"];

async function prepareEditFile() {
const wsedit = new vscode.WorkspaceEdit();
Expand All @@ -24,7 +25,7 @@ function isEditor(editor: string) {
editor.startsWith(getSlash());
return editor.startsWith(getSlash());
}
return editor.startsWith("c:") || editor.startsWith("C:");
return DRIVES.some(drive => editor.startsWith(drive));
}

export default function createEditEditorsCommand(
Expand Down

0 comments on commit b56367b

Please sign in to comment.