@@ -11,7 +11,6 @@ import (
11
11
"golang.org/x/xerrors"
12
12
13
13
"cdr.dev/slog"
14
- "github.com/coder/coder/v2/agent/proto"
15
14
agentproto "github.com/coder/coder/v2/agent/proto"
16
15
"github.com/coder/coder/v2/coderd/database"
17
16
"github.com/coder/coder/v2/coderd/database/dbauthz"
@@ -61,15 +60,15 @@ func (a *SubAgentAPI) CreateSubAgent(ctx context.Context, req *agentproto.Create
61
60
var app database.DisplayApp
62
61
63
62
switch displayApp {
64
- case proto .CreateSubAgentRequest_PORT_FORWARDING_HELPER :
63
+ case agentproto .CreateSubAgentRequest_PORT_FORWARDING_HELPER :
65
64
app = database .DisplayAppPortForwardingHelper
66
- case proto .CreateSubAgentRequest_SSH_HELPER :
65
+ case agentproto .CreateSubAgentRequest_SSH_HELPER :
67
66
app = database .DisplayAppSSHHelper
68
- case proto .CreateSubAgentRequest_VSCODE :
67
+ case agentproto .CreateSubAgentRequest_VSCODE :
69
68
app = database .DisplayAppVscode
70
- case proto .CreateSubAgentRequest_VSCODE_INSIDERS :
69
+ case agentproto .CreateSubAgentRequest_VSCODE_INSIDERS :
71
70
app = database .DisplayAppVscodeInsiders
72
- case proto .CreateSubAgentRequest_WEB_TERMINAL :
71
+ case agentproto .CreateSubAgentRequest_WEB_TERMINAL :
73
72
app = database .DisplayAppWebTerminal
74
73
default :
75
74
return nil , codersdk.ValidationError {
0 commit comments