Table of Contents

Class IntelliSenseService

Namespace
Loehnert.Lisrt.Scripting.Editor.File.IntelliSense
Assembly
Loehnert.Lisrt.Scripting.dll

Represents a service for IntelliSense service that finds providers by file extension..

[Export(typeof(IIntelliSenseService))]
public class IntelliSenseService : IIntelliSenseService
Inheritance
IntelliSenseService
Implements
Inherited Members

Constructors

IntelliSenseService(IEnumerable<Lazy<ICompletionProvider, IFileExtensionMetadata>>, IEnumerable<Lazy<IQuickInfoProvider, IFileExtensionMetadata>>, IEnumerable<Lazy<IDefinitionProvider, IFileExtensionMetadata>>, IEnumerable<Lazy<IReferencesProvider, IFileExtensionMetadata>>, IEnumerable<Lazy<INamesProvider, IFileExtensionMetadata>>)

Initializes a new instance of the IntelliSenseService class.

[ImportingConstructor]
public IntelliSenseService(IEnumerable<Lazy<ICompletionProvider, IFileExtensionMetadata>> completionProviders, IEnumerable<Lazy<IQuickInfoProvider, IFileExtensionMetadata>> quickInfoProviders, IEnumerable<Lazy<IDefinitionProvider, IFileExtensionMetadata>> definitionProviders, IEnumerable<Lazy<IReferencesProvider, IFileExtensionMetadata>> referencesProviders, IEnumerable<Lazy<INamesProvider, IFileExtensionMetadata>> namesProviders)

Parameters

completionProviders IEnumerable<Lazy<ICompletionProvider, IFileExtensionMetadata>>

Completion providers.

quickInfoProviders IEnumerable<Lazy<IQuickInfoProvider, IFileExtensionMetadata>>

Quick info providers.

definitionProviders IEnumerable<Lazy<IDefinitionProvider, IFileExtensionMetadata>>

Definition providers.

referencesProviders IEnumerable<Lazy<IReferencesProvider, IFileExtensionMetadata>>

References providers.

namesProviders IEnumerable<Lazy<INamesProvider, IFileExtensionMetadata>>

Names providers.

Exceptions

ArgumentNullException

Thrown when any argument is null.

Methods

GetCompletionProviders(IProjectItem)

Gets the completion providers for the projectItem.

public IEnumerable<ICompletionProvider> GetCompletionProviders(IProjectItem projectItem)

Parameters

projectItem IProjectItem

Project item.

Returns

IEnumerable<ICompletionProvider>

The completion providers for the selected projectItem.

GetDefinitionProviders(IProjectItem)

Gets the definition providers for the projectItem.

public IEnumerable<IDefinitionProvider> GetDefinitionProviders(IProjectItem projectItem)

Parameters

projectItem IProjectItem

Project item.

Returns

IEnumerable<IDefinitionProvider>

The definition providers for the selected projectItem.

GetNamesProvider(IProjectItem)

Gets the names provider for projectItem.

public INamesProvider GetNamesProvider(IProjectItem projectItem)

Parameters

projectItem IProjectItem

Project item.

Returns

INamesProvider

The names provider for the selected projectItem or null when no provider is available.

GetQuickInfoProviders(IProjectItem)

Gets the quick info providers for the projectItem. Typically shown on mouse hover.

public IEnumerable<IQuickInfoProvider> GetQuickInfoProviders(IProjectItem projectItem)

Parameters

projectItem IProjectItem

Project item.

Returns

IEnumerable<IQuickInfoProvider>

The quick info provider for the selected projectItem.

GetReferencesProviders(IProjectItem)

Gets the references providers for the projectItem.

public IEnumerable<IReferencesProvider> GetReferencesProviders(IProjectItem projectItem)

Parameters

projectItem IProjectItem

Project item.

Returns

IEnumerable<IReferencesProvider>

The references providers for the selected projectItem.