File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -592,6 +592,10 @@ export class CodacyCloud implements vscode.Disposable {
592592 return this . _organization ?. organization
593593 }
594594
595+ get organizationWithMeta ( ) {
596+ return this . _organization
597+ }
598+
595599 get lastAnalysedCommit ( ) {
596600 return this . _repository ?. lastAnalysedCommit
597601 }
Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ export class SetupViewProvider implements vscode.WebviewViewProvider {
138138 case 'openCLISettings' :
139139 vscode . commands . executeCommand ( 'workbench.action.openSettings' , 'codacy.cli' )
140140 break
141+ case 'debug' :
142+ Logger . appendLine ( `Debug message: ${ message . message } ` , JSON . stringify ( message . data ) )
143+ break
141144 default :
142145 Logger . appendLine ( `Unknown message type: ${ message . type } ` )
143146 break
@@ -176,7 +179,7 @@ export class SetupViewProvider implements vscode.WebviewViewProvider {
176179 const isLoggedIn = ! ! Config . apiToken
177180 const isOrgInCodacy = this . _codacyCloud ?. state !== CodacyCloudState . NeedsToAddOrganization
178181 const isRepoInCodacy = this . _codacyCloud ?. state !== CodacyCloudState . NeedsToAddRepository
179- const organizationInfo = this . _codacyCloud ?. organization
182+ const organizationInfo = this . _codacyCloud ?. organizationWithMeta
180183 const repositoryInfo = this . _codacyCloud ?. repository
181184
182185 let userInfo = undefined
You can’t perform that action at this time.
0 commit comments