Skip to content

Commit ca17642

Browse files
Copilotvhvb1989
andcommitted
Fix l10n.t() to use single string literal instead of concatenation
The first argument to vscode.l10n.t() should be a single string literal for proper localization tooling compatibility. Removed string concatenation and used a single multi-line string literal instead. Co-authored-by: vhvb1989 <24213737+vhvb1989@users.noreply.github.com>
1 parent a53d159 commit ca17642

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/vscode/src/commands/cmdUtil.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ export function validateFileSystemUri(
3434
isAzureDevCliModel(selectedItem) ? 'AzureDevCliModel' :
3535
selectedItem ? 'vscode.Uri' : 'undefined';
3636
throw new Error(vscode.l10n.t(
37-
"Unable to determine working folder for {0} command. The selected file has an unsupported URI scheme '{1}' (selectedItem type: {2}). " +
38-
"Azure Developer CLI commands are not supported in virtual file systems. Please open a local folder or clone the repository locally.",
37+
"Unable to determine working folder for {0} command. The selected file has an unsupported URI scheme '{1}' (selectedItem type: {2}). Azure Developer CLI commands are not supported in virtual file systems. Please open a local folder or clone the repository locally.",
3938
commandName,
4039
selectedFile.scheme,
4140
itemType

0 commit comments

Comments
 (0)