remoteIndicator menu point: double digit order number. For #121180

This commit is contained in:
Martin Aeschlimann 2021-04-22 22:04:38 +02:00
parent c141ca6661
commit 94f28728f7
No known key found for this signature in database
GPG key ID: 2609A01E695523E3
2 changed files with 6 additions and 6 deletions

View file

@ -84,27 +84,27 @@
{
"command": "vscode-testresolver.newWindow",
"when": "!remoteName",
"group": "remote_9_test_1_local@2"
"group": "remote_90_test_1_local@2"
},
{
"command": "vscode-testresolver.showLog",
"when": "remoteName == test",
"group": "remote_9_test_1_open@3"
"group": "remote_90_test_1_open@3"
},
{
"command": "vscode-testresolver.newWindow",
"when": "remoteName == test",
"group": "remote_9_test_1_open@1"
"group": "remote_90_test_1_open@1"
},
{
"command": "vscode-testresolver.openTunnel",
"when": "remoteName == test",
"group": "remote_9_test_2_more@4"
"group": "remote_90_test_2_more@4"
},
{
"command": "vscode-testresolver.startRemoteServer",
"when": "remoteName == test",
"group": "remote_9_test_2_more@5"
"group": "remote_90_test_2_more@5"
}
]
},

View file

@ -294,7 +294,7 @@ export class RemoteStatusIndicator extends Disposable implements IWorkbenchContr
};
const validatedGroup = (group: string) => {
if (!group.match(/^(remote|virtualfs)_(\d)_(([a-z][a-z0-9+\-.]*)_(.*))$/)) {
if (!group.match(/^(remote|virtualfs)_(\d\d)_(([a-z][a-z0-9+\-.]*)_(.*))$/)) {
if (!this.loggedInvalidGroupNames[group]) {
this.loggedInvalidGroupNames[group] = true;
this.logService.warn(`Invalid group name used in "statusBar/remoteIndicator" menu contribution: ${group}. Entries ignored. Expected format: 'remote_$ORDER_$REMOTENAME_$GROUPING or 'virtualfs_$ORDER_$FILESCHEME_$GROUPING.`);