File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 44export async function CopilotAuthPlugin ( { client } ) {
55 const CLIENT_ID = "Iv1.b507a08c87ecfe98" ;
66 const HEADERS = {
7- "User-Agent" : "GitHubCopilotChat/0.35.0 " ,
8- "Editor-Version" : "vscode/1.99.3 " ,
9- "Editor-Plugin-Version" : "copilot-chat/0.35.0 " ,
7+ "User-Agent" : "GitHubCopilotChat/0.32.4 " ,
8+ "Editor-Version" : "vscode/1.105.1 " ,
9+ "Editor-Plugin-Version" : "copilot-chat/0.32.4 " ,
1010 "Copilot-Integration-Id" : "vscode-chat" ,
1111 } ;
1212
1313 function normalizeDomain ( url ) {
14- return url
15- . replace ( / ^ h t t p s ? : \/ \/ / , "" )
16- . replace ( / \/ $ / , "" ) ;
14+ return url . replace ( / ^ h t t p s ? : \/ \/ / , "" ) . replace ( / \/ $ / , "" ) ;
1715 }
1816
1917 function getUrls ( domain ) {
@@ -82,7 +80,9 @@ export async function CopilotAuthPlugin({ client }) {
8280 refresh : info . refresh ,
8381 access : tokenData . token ,
8482 expires : tokenData . expires_at * 1000 ,
85- ...( info . enterpriseUrl && { enterpriseUrl : info . enterpriseUrl } ) ,
83+ ...( info . enterpriseUrl && {
84+ enterpriseUrl : info . enterpriseUrl ,
85+ } ) ,
8686 } ,
8787 } ) ;
8888 info . access = tokenData . token ;
You can’t perform that action at this time.
0 commit comments