Skip to content

Commit

Permalink
Fix cl.exe.not.available loc. (#13091)
Browse files Browse the repository at this point in the history
* Fix cl.exe.not.available loc.
* Disabling eslint indent linting.
  • Loading branch information
sean-mcmanus authored Dec 31, 2024
1 parent d2626e0 commit fa0e1c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
11 changes: 0 additions & 11 deletions Extension/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ module.exports = {
"eslint-plugin-header"
],
"rules": {
"indent": [
"warn",
4,
{
"SwitchCase": 1,
"ObjectExpression": "first"
}
],
"@typescript-eslint/indent": [
"error", 4
],
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
Expand Down
5 changes: 4 additions & 1 deletion Extension/src/Debugger/configurationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,10 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv

private showErrorIfClNotAvailable(_configurationLabel: string): boolean {
if (!process.env.DevEnvDir || process.env.DevEnvDir.length === 0) {
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"));
void vscode.window.showErrorMessage(localize({
key: "cl.exe.not.available",
comment: ["{0} is a command option in a menu. {1} is the product name \"Developer Command Prompt for VS\"."]
}, "{0} is only usable when VS Code is run from the {1}.", `cl.exe ${this.buildAndDebugActiveFileStr()}`, "Developer Command Prompt for VS"));
return true;
}
return false;
Expand Down

0 comments on commit fa0e1c0

Please sign in to comment.