Skip to content

Commit b5824b0

Browse files
committed
update comments
1 parent 99d6c0d commit b5824b0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

cli/azd/internal/vsrpc/environment_service_load.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,18 @@ func (s *environmentService) loadEnvironmentAsync(
120120
appHost, err := appHostForProject(ctx, c.projectConfig, c.dotnetCli)
121121
if err != nil {
122122
return nil, fmt.Errorf("failed to find Aspire app host: %w", err)
123-
} else if appHost != nil {
123+
}
124+
125+
if appHost != nil {
124126
manifest, err := c.dotnetImporter.ReadManifest(ctx, appHost)
125127
if err != nil {
126128
return nil, fmt.Errorf("reading app host manifest: %w", err)
127129
}
128130

129131
ret.Services = servicesFromManifest(manifest)
130-
131-
return ret, nil
132+
} else {
133+
ret.Services = servicesFromProjectConfig(ctx, c.projectConfig)
132134
}
133135

134-
ret.Services = servicesFromProjectConfig(ctx, c.projectConfig)
135136
return ret, nil
136137
}

cli/azd/internal/vsrpc/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type RequestContext struct {
119119
// The active session.
120120
Session Session
121121

122-
// The app host project path.
122+
// The host project path being operated on.
123123
HostProjectPath string
124124
}
125125

cli/azd/internal/vsrpc/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func azdContext(hostProjectPath string) (*azdcontext.AzdContext, error) {
9999
}
100100

101101
if !found {
102-
log.Printf("ignoring %s due to non-matching project found, using app host directory", azdCtx.ProjectPath())
102+
log.Printf("ignoring %s due to mismatch, using host project directory", azdCtx.ProjectPath())
103103
return azdcontext.NewAzdContextWithDirectory(hostProjectDir), nil
104104
}
105105

0 commit comments

Comments
 (0)