Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,10 @@
"capabilities": {
"untrustedWorkspaces": {
"supported": false
},
"virtualWorkspaces": {
"supported": "limited",
"description": "In virtual workspaces the PowerShell language server cannot run, so language features that require executing PowerShell are unavailable. Single-file features such as code folding still work."
}
},
"configurationDefaults": {
Expand Down
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
ExternalApiFeature,
type IPowerShellExtensionClient,
} from "./features/ExternalApi";
import { FoldingFeature } from "./features/Folding";
import { GetCommandsFeature } from "./features/GetCommands";
import { HelpCompletionFeature } from "./features/HelpCompletion";
import { ISECompatibilityFeature } from "./features/ISECompatibility";
Expand Down Expand Up @@ -159,6 +160,9 @@ export async function activate(
new PesterTestsFeature(sessionManager, logger),
new CodeActionsFeature(logger),
new SpecifyScriptArgsFeature(context),
// Client-side folding fallback for virtual workspaces, where the
// language server (which normally provides folding) cannot run.
new FoldingFeature(),

vscode.commands.registerCommand(
"PowerShell.OpenLogFolder",
Expand Down
Loading