Class
Workspace
class Workspace
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: Workspace.cs
Inheritance: Object → Workspace
Coordinates a Raven.CodeAnalysis.Solution instance and raises events when it changes.
Derived types
Documented types in this API reference. Indirect relationships are marked.
Constructors
2 items
Workspace(kind: string, services: HostServices)
No summary available.
Workspace(kind: string)
No summary available.
Properties
3 items
CurrentSolution: Solution
No summary available.
Kind: string
No summary available.
Services: HostServices
Services available to this workspace.
Methods
23 items
ApplyCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, predicate?: (CodeFix -> bool)?, maxIterations?: int, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ApplyCodeFixesResult
Applies code fixes one-at-a-time, reanalyzing between each application.
CreateAnalysisCompilation(projectId: ProjectId) -> Compilation
No summary available.
CreateSolution() -> Solution
Creates a new empty Raven.CodeAnalysis.Solution using the workspace services.
Extension member:
EnableFileWatching() -> IDisposable
No summary available.
Extension from PersistenceExtensions.EnableFileWatching
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<CodeFix>
Gets code fixes for project diagnostics produced by the supplied providers.
GetCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, diagnostics: IEnumerable<Diagnostic>, cancellationToken?: CancellationToken) -> ImmutableArray<CodeFix>
Gets code fixes for an existing diagnostic set without recomputing project diagnostics.
GetCompilation(project: Project) -> Compilation
No summary available.
GetCompilation(projectId: ProjectId) -> Compilation
Gets a Raven.CodeAnalysis.Compilation for the specified project. Results are cached and incrementally rebuilt when documents change.
GetDiagnostics(projectId: ProjectId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
Gets diagnostics for the specified project, including analyzer diagnostics.
GetDocumentDiagnostics(projectId: ProjectId, documentId: DocumentId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
No summary available.
GetDocumentSyntaxDiagnostics(projectId: ProjectId, documentId: DocumentId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
No summary available.
GetFixAll(projectId: ProjectId, provider: CodeFixProvider, scope: FixAllScope, codeActionEquivalenceKey: string, documentId?: Nullable<DocumentId>, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> CodeAction?
Gets a Fix All action for equivalent fixes within the requested scope.
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetRefactorings(documentId: DocumentId, providers: IEnumerable<CodeRefactoringProvider>, span: TextSpan, cancellationToken?: CancellationToken) -> ImmutableArray<CodeRefactoring>
Gets context-driven refactorings for the specified document and selection span.
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
OnWorkspaceChanged(e: WorkspaceChangeEventArgs) -> ()
No summary available.
Extension member:
OpenProject(projectFilePath: string) -> ProjectId
No summary available.
Extension from PersistenceExtensions.OpenProject
OpenSolution(solution: Solution) -> ()
Opens the specified Raven.CodeAnalysis.Solution as the current solution.
Extension member:
SaveProject(projectId: ProjectId, filePath: string) -> ()
No summary available.
Extension from PersistenceExtensions.SaveProject
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString
TryApplyChanges(newSolution: Solution) -> bool
Attempts to apply a new solution and raises the appropriate change event.
Events
1 item
WorkspaceChanged
No summary available.