File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ export type FeatureSet = {
10
10
*/
11
11
export function featureSetForVersion ( version : semver . SemVer | null ) : FeatureSet {
12
12
return {
13
- coderExtension :
14
- version ?. major === 0 && version ?. minor <= 14 && version ?. patch < 1 && version ?. prerelease . length === 0 ,
13
+ coderExtension : ! (
14
+ version ?. major === 0 &&
15
+ version ?. minor <= 14 &&
16
+ version ?. patch < 1 &&
17
+ version ?. prerelease . length === 0
18
+ ) ,
15
19
16
20
// CLI versions before 2.3.3 don't support the --log-dir flag!
17
21
// If this check didn't exist, VS Code connections would fail on
Original file line number Diff line number Diff line change @@ -213,19 +213,15 @@ export class Remote {
213
213
214
214
let version : semver . SemVer | null = null
215
215
try {
216
- let v = await cli . version ( binaryPath )
217
- if ( ! v ) {
218
- v = buildInfo . version
219
- }
220
- version = semver . parse ( v )
216
+ version = semver . parse ( await cli . version ( binaryPath ) )
221
217
} catch ( e ) {
222
218
version = semver . parse ( buildInfo . version )
223
219
}
224
220
225
221
const featureSet = featureSetForVersion ( version )
226
222
227
223
// Server versions before v0.14.1 don't support the vscodessh command!
228
- if ( featureSet . coderExtension ) {
224
+ if ( ! featureSet . coderExtension ) {
229
225
await this . vscodeProposed . window . showErrorMessage (
230
226
"Incompatible Server" ,
231
227
{
You can’t perform that action at this time.
0 commit comments