Skip to content

Commit b00199d

Browse files
committed
Prevent asking for token and gist when using repo.
1 parent f1ae780 commit b00199d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commons.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ export default class Commons {
272272
askToken = !cusSettings.downloadPublicGist;
273273
}
274274

275+
if (cusSettings.syncMode === "repo" && extSettings.repoUrl !== "") {
276+
askToken = false;
277+
}
278+
275279
if (askToken) {
276280
if (cusSettings.openTokenLink) {
277281
vscode.commands.executeCommand(
@@ -289,7 +293,7 @@ export default class Commons {
289293
}
290294
}
291295

292-
if (extSettings.gist === "") {
296+
if (extSettings.gist === "" && cusSettings.syncMode === "gist") {
293297
if (askGist) {
294298
const gistTemp: string = await this.GetGistAndSave(extSettings);
295299
if (!gistTemp) {

0 commit comments

Comments
 (0)