File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
extensions/github-authentication/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -220,19 +220,20 @@ export class GitHubServer implements IGitHubServer {
220
220
221
221
const json = await result . json ( ) as IGitHubDeviceCodeResponse ;
222
222
223
- await vscode . env . clipboard . writeText ( json . user_code ) ;
224
223
225
224
const modalResult = await vscode . window . showInformationMessage (
226
225
localize ( 'code.title' , "Your Code: {0}" , json . user_code ) ,
227
226
{
228
227
modal : true ,
229
- detail : localize ( 'code.detail' , "The above one-time code has been copied to your clipboard. To finish authenticating, paste it on GitHub ." )
230
- } , 'Continue to GitHub' ) ;
228
+ detail : localize ( 'code.detail' , "To finish authenticating, navigate to GitHub and paste in the above one-time code ." )
229
+ } , 'Copy & Continue to GitHub' ) ;
231
230
232
- if ( modalResult !== 'Continue to GitHub' ) {
231
+ if ( modalResult !== 'Copy & Continue to GitHub' ) {
233
232
throw new Error ( 'Cancelled' ) ;
234
233
}
235
234
235
+ await vscode . env . clipboard . writeText ( json . user_code ) ;
236
+
236
237
const uriToOpen = await vscode . env . asExternalUri ( vscode . Uri . parse ( json . verification_uri ) ) ;
237
238
await vscode . env . openExternal ( uriToOpen ) ;
238
239
You can’t perform that action at this time.
0 commit comments