Skip to content

Expose API similar to AnalysisContext within the Workspace API #19

@JoshVarty

Description

@JoshVarty

I've been developing a few extensions for Visual Studio and have been consuming the VisualStudioWorkspace.WorkspaceChanged event. This event doesn't tell me anything more than "Document X has changed".

The AnalysisContext API looks like a much richer experience. (I haven't actually built any Analyzers myself). It appears to allow analyzers to wait for compilations, semantic models for individual files and more.

Waiting for a background compilation to have completed sounds particularly appealing to me. I don't want my extension to be responsible for triggering unnecessary compilations. I'd be interested to hear from other VS Extension authors who have also used the VisualStudioWorkspace.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions