Skip to content

Commit 47ca759

Browse files
committed
chore: pull in changes from main in extension.ts
1 parent eae7440 commit 47ca759

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/extension.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,34 +57,9 @@ async function _handleRepos(git: API, sourceControl: any) {
5757
*/
5858
async function _handleRepo(git: API) {
5959
const targetRepo = git.repositories[0];
60-
6160
await makeAndFillCommitMsg(targetRepo);
6261
}
6362

64-
async function _autofill(uri?: string) {
65-
const git = getGitExtension();
66-
67-
if (!git) {
68-
vscode.window.showErrorMessage("Unable to load Git Extension");
69-
return;
70-
}
71-
72-
if (git.repositories.length === 0) {
73-
vscode.window.showErrorMessage(
74-
"No repos found. Please open a repo or run git init then try this extension again."
75-
);
76-
return;
77-
}
78-
79-
vscode.commands.executeCommand("workbench.view.scm");
80-
81-
if (uri) {
82-
_handleRepos(git, uri);
83-
} else {
84-
_handleRepo(git);
85-
}
86-
}
87-
8863
/**
8964
* Choose the relevant repo and apply autofill logic on files there.
9065
*/

0 commit comments

Comments
 (0)