Skip to content

Commit 93f1030

Browse files
edgardmessiasJohnstonCode
authored andcommitted
fix: Fixed set changelist from command palette (close #460) (#532)
1 parent 71062f4 commit 93f1030

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commands/changeList.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export class ChangeList extends Command {
1717
uris = (args as Resource[]).map(resource => resource.resourceUri);
1818
} else if (args[0] instanceof Uri) {
1919
uris = args[1] as Uri[];
20+
} else if (window.activeTextEditor) {
21+
uris = [window.activeTextEditor.document.uri];
2022
} else {
2123
console.error("Unhandled type for changelist command");
2224
return;

0 commit comments

Comments
 (0)