Skip to content

Commit aa9c0e8

Browse files
authored
Default host name override is invalid on my Ubuntu VM (microsoft#172358)
* Default host name override is invalid on my Ubuntu VM * fix regex
1 parent 1237ff2 commit aa9c0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/remoteTunnel/electron-sandbox/remoteTunnel.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
752752
description: localize('remoteTunnelAccess.machineName', "The name under which the remote tunnel access is registered. If not set, the host name is used."),
753753
type: 'string',
754754
scope: ConfigurationScope.MACHINE,
755-
pattern: '^\\w[\\w-]*$',
755+
pattern: '^(\\w[\\w-]*)?$',
756756
patternErrorMessage: localize('remoteTunnelAccess.machineNameRegex', "The name must only consist of letters, numbers, underscore and dash. It must not start with a dash."),
757757
maxLength: 20,
758758
default: ''

0 commit comments

Comments
 (0)