Skip to content

Commit 03be224

Browse files
committed
use links in messages
1 parent 739dac6 commit 03be224

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

extensions/git/src/autofetch.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
import { workspace, Disposable, EventEmitter, Memento, window, MessageItem, ConfigurationTarget, commands, Uri } from 'vscode';
8+
import { workspace, Disposable, EventEmitter, Memento, window, MessageItem, ConfigurationTarget } from 'vscode';
99
import { GitErrorCodes } from './git';
1010
import { Repository, Operation } from './repository';
1111
import { eventToPromise, filterEvent, onceEvent } from './util';
@@ -54,20 +54,14 @@ export class AutoFetcher {
5454
}
5555

5656
const yes: MessageItem = { title: localize('yes', "Yes") };
57-
const readMore: MessageItem = { title: localize('read more', "Read More") };
5857
const no: MessageItem = { isCloseAffordance: true, title: localize('no', "No") };
5958
const askLater: MessageItem = { title: localize('not now', "Ask Me Later") };
60-
const result = await window.showInformationMessage(localize('suggest auto fetch', "Would you like Code to periodically run 'git fetch'?"), yes, readMore, no, askLater);
59+
const result = await window.showInformationMessage(localize('suggest auto fetch', "Would you like Code to [periodically run 'git fetch']({0})?", 'https://go.microsoft.com/fwlink/?linkid=865294'), yes, no, askLater);
6160

6261
if (result === askLater) {
6362
return;
6463
}
6564

66-
if (result === readMore) {
67-
commands.executeCommand('vscode.open', Uri.parse('https://go.microsoft.com/fwlink/?linkid=865294'));
68-
return this.onFirstGoodRemoteOperation();
69-
}
70-
7165
if (result === yes) {
7266
const gitConfig = workspace.getConfiguration('git');
7367
gitConfig.update('autofetch', true, ConfigurationTarget.Global);

0 commit comments

Comments
 (0)