Skip to content

Commit 730a1aa

Browse files
authored
Switch from LogLevel 'Diagnostic' (deprecated) to 'Trace'. (#11)
Closes: #10
1 parent 360e5d4 commit 730a1aa

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/powershell.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,21 @@ impl zed::Extension for PowerShellExtension {
2929
.language_server_path(language_server_id)
3030
.map_err(|err| format!("failed to get editor services: {}", err))?;
3131

32-
let command = format!("Import-Module (Join-Path '{bundle_path}' 'PowerShellEditorServices/PowerShellEditorServices.psd1'); Start-EditorServices -Stdio -SessionDetailsPath '{bundle_path}/powershell-es.session.json' -LogPath '{bundle_path}/logs' -FeatureFlags @() -AdditionalModules @() -HostName zed -HostProfileId 0 -HostVersion 1.0.0 -LogLevel Diagnostic");
32+
let command = format!(
33+
"Import-Module ( \
34+
Join-Path '{bundle_path}' 'PowerShellEditorServices/PowerShellEditorServices.psd1' \
35+
); \
36+
Start-EditorServices \
37+
-Stdio \
38+
-SessionDetailsPath '{bundle_path}/powershell-es.session.json' \
39+
-LogPath '{bundle_path}/logs' \
40+
-FeatureFlags @() \
41+
-AdditionalModules @() \
42+
-HostName zed \
43+
-HostProfileId 0 \
44+
-HostVersion 1.0.0 \
45+
-LogLevel Trace"
46+
);
3347

3448
Ok(zed::Command {
3549
command: pwsh_bin,

0 commit comments

Comments
 (0)