Foundry.Contextual¶
- Subclasses:
Foundry.AuthProvider,Foundry.BuildAddin,Foundry.BuildPipeline,Foundry.BuildProgress,Foundry.BuildStage,Foundry.Command,Foundry.CommandProvider,Foundry.CompletionProvider,Foundry.Config,Foundry.ConfigProvider,Foundry.Debugger,Foundry.DebuggerProvider,Foundry.Dependency,Foundry.DependencyProvider,Foundry.DeployStrategy,Foundry.Device,Foundry.DeviceProvider,Foundry.DiagnosticProvider,Foundry.DirectoryListing,Foundry.DocumentationBundle,Foundry.DocumentationProvider,Foundry.Extension,Foundry.ExtensionSet,Foundry.FileSearchProvider,Foundry.Forge,Foundry.HoverProvider,Foundry.IntentHandler,Foundry.KeyRotator,Foundry.LanguageGuesser,Foundry.LlmModel,Foundry.LlmProvider,Foundry.LlmTool,Foundry.LspClient,Foundry.LspProvider,Foundry.LspServer,Foundry.McpServer,Foundry.PtyDiagnostics,Foundry.RenameProvider,Foundry.RunTool,Foundry.Sdk,Foundry.SdkProvider,Foundry.SearchProvider,Foundry.SearchRequest,Foundry.Service,Foundry.Settings,Foundry.SymbolProvider,Foundry.Test,Foundry.TestProvider,Foundry.TextBufferProvider,Foundry.TextDocument,Foundry.TextDocumentAddin,Foundry.TextFormatter,Foundry.TextSettings,Foundry.TextSettingsProvider,Foundry.TweakProvider,Foundry.Vcs,Foundry.VcsProvider
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.Contextual(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for objects that are associated with a Foundry context.
Foundry.Contextualprovides the core interface for objects that need access to the Foundry context and its services. It includes context management, serialization support, and provides a unified interface for context-aware objects throughout the development environment.- acquire()¶
- Raises:
- Returns:
a [class`Foundry`.Context] or error is set.
- Return type:
This method provides a checked way to get a
contextfor the contextualIf the resulting context is
None, then the error is set to an appropriate error.New in version 1.1.
- dup_context()¶
- Returns:
a
Foundry.ContextorNone- Return type:
Gets the
Foundry.Contextthat self is a part of while safely increasing the reference count of the resultingFoundry.Contextby 1.
- inhibit()¶
- Raises:
- Returns:
a [class`Foundry`.Inhibitor] or
Noneand error is set.- Return type:
Creates a new [class`Foundry`.Inhibitor] that will keep the [class`Foundry`.Context] alive and prevent shutdown until [method`Foundry`.Inhibitor.uninhibit] is called or the [class`Foundry`.Inhibitor] is finalized, whichever comes first.
If the context is already in shutdown, then
Noneis returned and error is set.
Property Details¶
- Foundry.Contextual.props.context¶
- Name:
context- Type:
- Default Value:
- Flags: