|
5 | 5 |
|
6 | 6 | 'use strict'; |
7 | 7 |
|
8 | | -import { workspace, Disposable, EventEmitter, Memento, window, MessageItem, ConfigurationTarget, commands, Uri } from 'vscode'; |
| 8 | +import { workspace, Disposable, EventEmitter, Memento, window, MessageItem, ConfigurationTarget } from 'vscode'; |
9 | 9 | import { GitErrorCodes } from './git'; |
10 | 10 | import { Repository, Operation } from './repository'; |
11 | 11 | import { eventToPromise, filterEvent, onceEvent } from './util'; |
@@ -54,20 +54,14 @@ export class AutoFetcher { |
54 | 54 | } |
55 | 55 |
|
56 | 56 | const yes: MessageItem = { title: localize('yes', "Yes") }; |
57 | | - const readMore: MessageItem = { title: localize('read more', "Read More") }; |
58 | 57 | const no: MessageItem = { isCloseAffordance: true, title: localize('no', "No") }; |
59 | 58 | 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); |
61 | 60 |
|
62 | 61 | if (result === askLater) { |
63 | 62 | return; |
64 | 63 | } |
65 | 64 |
|
66 | | - if (result === readMore) { |
67 | | - commands.executeCommand('vscode.open', Uri.parse('https://go.microsoft.com/fwlink/?linkid=865294')); |
68 | | - return this.onFirstGoodRemoteOperation(); |
69 | | - } |
70 | | - |
71 | 65 | if (result === yes) { |
72 | 66 | const gitConfig = workspace.getConfiguration('git'); |
73 | 67 | gitConfig.update('autofetch', true, ConfigurationTarget.Global); |
|
0 commit comments