Skip to content

Commit fa6c294

Browse files
committed
Fix linter issues
1 parent 9ccaabe commit fa6c294

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

sample/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ tsutils@^2.29.0:
798798
fsevents "^2.3.2"
799799

800800
"vscode-dotnet-runtime@file:../vscode-dotnet-runtime-extension":
801-
version "1.6.0"
801+
version "1.7.0"
802802
resolved "file:../vscode-dotnet-runtime-extension"
803803
dependencies:
804804
chai "4.3.4"

vscode-dotnet-runtime-library/src/Acquisition/AcquisitionInvoker.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ You will need to restart VS Code after these changes. If PowerShell is still not
109109
}
110110

111111
/**
112-
*
112+
*
113113
* @remarks Some users have reported not having powershell.exe or having execution policy that fails property evaluation functions in powershell install scripts.
114114
* We use this function to throw better errors if powershell is not configured correctly.
115115
*/
@@ -122,18 +122,18 @@ You will need to restart VS Code after these changes. If PowerShell is still not
122122
{
123123
// Check if PowerShell exists and is on the path.
124124
const exeFoundOutput = cp.spawnSync(`powershell`);
125-
if(exeFoundOutput.status != 0)
125+
if(exeFoundOutput.status !== 0)
126126
{
127127
knownError = true;
128128
const err = Error(this.noPowershellError);
129129
error = err;
130130
}
131-
131+
132132
// Check Execution Policy
133133
const execPolicyOutput = cp.spawnSync(`powershell`, [`-command`, `$ExecutionContext.SessionState.LanguageMode`]);
134-
let languageMode = execPolicyOutput.stdout.toString().trim();
134+
const languageMode = execPolicyOutput.stdout.toString().trim();
135135
if(languageMode === 'ConstrainedLanguage' || languageMode === 'NoLanguage')
136-
{
136+
{
137137
knownError = true;
138138
const err = Error(`Your machine policy disables PowerShell language features that may be needed to install .NET. Read more at: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.3.
139139
If you cannot safely and confidently change the execution policy, try setting a custom existingDotnetPath following our instructions here: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md.`);

0 commit comments

Comments
 (0)