@@ -14,8 +14,7 @@ export interface VSCodeDevContainerButtonProps {
14
14
userName : string ;
15
15
workspaceName : string ;
16
16
agentName ?: string ;
17
- folderPath : string ;
18
- devContainerPath : string ;
17
+ devContainerName : string ;
19
18
devContainerFolder : string ;
20
19
displayApps : readonly DisplayApp [ ] ;
21
20
}
@@ -113,8 +112,7 @@ const VSCodeButton: FC<VSCodeDevContainerButtonProps> = ({
113
112
userName,
114
113
workspaceName,
115
114
agentName,
116
- folderPath,
117
- devContainerPath,
115
+ devContainerName,
118
116
devContainerFolder,
119
117
} ) => {
120
118
const [ loading , setLoading ] = useState ( false ) ;
@@ -132,15 +130,12 @@ const VSCodeButton: FC<VSCodeDevContainerButtonProps> = ({
132
130
workspace : workspaceName ,
133
131
url : location . origin ,
134
132
token : key ,
135
- devContainerPath ,
133
+ devContainerName ,
136
134
devContainerFolder,
137
135
} ) ;
138
136
if ( agentName ) {
139
137
query . set ( "agent" , agentName ) ;
140
138
}
141
- if ( folderPath ) {
142
- query . set ( "folder" , folderPath ) ;
143
- }
144
139
145
140
location . href = `vscode://coder.coder-remote/openDevContainer?${ query . toString ( ) } ` ;
146
141
} )
@@ -161,8 +156,7 @@ const VSCodeInsidersButton: FC<VSCodeDevContainerButtonProps> = ({
161
156
userName,
162
157
workspaceName,
163
158
agentName,
164
- folderPath,
165
- devContainerPath,
159
+ devContainerName,
166
160
devContainerFolder,
167
161
} ) => {
168
162
const [ loading , setLoading ] = useState ( false ) ;
@@ -180,15 +174,12 @@ const VSCodeInsidersButton: FC<VSCodeDevContainerButtonProps> = ({
180
174
workspace : workspaceName ,
181
175
url : location . origin ,
182
176
token : key ,
183
- devContainerPath ,
177
+ devContainerName ,
184
178
devContainerFolder,
185
179
} ) ;
186
180
if ( agentName ) {
187
181
query . set ( "agent" , agentName ) ;
188
182
}
189
- if ( folderPath ) {
190
- query . set ( "folder" , folderPath ) ;
191
- }
192
183
193
184
location . href = `vscode-insiders://coder.coder-remote/openDevContainer?${ query . toString ( ) } ` ;
194
185
} )
0 commit comments