CompilationUnitManager.InitializeFileManagers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a FileContentManager for each entry in files and their contents.
public static System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager> InitializeFileManagers (System.Collections.Generic.IDictionary<Uri,string> files, Action<Microsoft.VisualStudio.LanguageServer.Protocol.PublishDiagnosticParams>? publishDiagnostics = default, Action<Exception>? onException = default);
static member InitializeFileManagers : System.Collections.Generic.IDictionary<Uri, string> * Action<Microsoft.VisualStudio.LanguageServer.Protocol.PublishDiagnosticParams> * Action<Exception> -> System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager>
Public Shared Function InitializeFileManagers (files As IDictionary(Of Uri, String), Optional publishDiagnostics As Action(Of PublishDiagnosticParams) = Nothing, Optional onException As Action(Of Exception) = Nothing) As ImmutableHashSet(Of FileContentManager)
Parameters
- files
- IDictionary<Uri,String>
- publishDiagnostics
- Action<PublishDiagnosticParams>
If provided, called to publish the diagnostics generated upon content processing.
Returns
Exceptions
Any of the given URIs in files is not an absolute file URI.