Skip to content

Commit fa0e1c0

Browse files
authored
Fix cl.exe.not.available loc. (#13091)
* Fix cl.exe.not.available loc. * Disabling eslint indent linting.
1 parent d2626e0 commit fa0e1c0

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

Diff for: Extension/.eslintrc.js

-11
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ module.exports = {
2424
"eslint-plugin-header"
2525
],
2626
"rules": {
27-
"indent": [
28-
"warn",
29-
4,
30-
{
31-
"SwitchCase": 1,
32-
"ObjectExpression": "first"
33-
}
34-
],
35-
"@typescript-eslint/indent": [
36-
"error", 4
37-
],
3827
"@typescript-eslint/adjacent-overload-signatures": "error",
3928
"@typescript-eslint/array-type": "error",
4029
"@typescript-eslint/await-thenable": "error",

Diff for: Extension/src/Debugger/configurationProvider.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,10 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
584584

585585
private showErrorIfClNotAvailable(_configurationLabel: string): boolean {
586586
if (!process.env.DevEnvDir || process.env.DevEnvDir.length === 0) {
587-
void vscode.window.showErrorMessage(localize("cl.exe.not.available", "{0} build and debug is only usable when VS Code is run from the Developer Command Prompt for VS.", "cl.exe"));
587+
void vscode.window.showErrorMessage(localize({
588+
key: "cl.exe.not.available",
589+
comment: ["{0} is a command option in a menu. {1} is the product name \"Developer Command Prompt for VS\"."]
590+
}, "{0} is only usable when VS Code is run from the {1}.", `cl.exe ${this.buildAndDebugActiveFileStr()}`, "Developer Command Prompt for VS"));
588591
return true;
589592
}
590593
return false;

0 commit comments

Comments
 (0)