From 513019ec539e8b046c96c2c6c5c8ad2519b4ed0a Mon Sep 17 00:00:00 2001 From: Onora Hubleur Date: Tue, 3 Jun 2025 09:17:41 +0200 Subject: [PATCH] feat: add powershell options --- src/staticOptions.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/staticOptions.ts b/src/staticOptions.ts index d849e06..cd4e6e2 100644 --- a/src/staticOptions.ts +++ b/src/staticOptions.ts @@ -406,6 +406,24 @@ const staticOptions = asLanguageClientOptionsById({ ], synchronize: {}, mutualizable: true + }, + powershell: { + // https://github.com/PowerShell/PowerShellEditorServices/blob/1a988a964d9803a4b82d2f0f56b5c8a225b11156/src/PowerShellEditorServices/Utility/LspUtils.cs#L12 + documentSelector: [ + { + scheme: 'file', + language: 'powershell' + }, + { + scheme: 'file', + language: 'pwsh' + }, + { + scheme: 'file', + pattern: '**/*.ps*1' + } + ], + mutualizable: true } })