示例#1
0
 public TextDocumentSyncHandler(ILanguageServerFacade server, SourceContainer sourceContainer)
 {
     this.server          = server;
     this.sourceContainer = sourceContainer;
 }
示例#2
0
 public DiagnosticPublisher(ILanguageServerFacade languageServer)
 {
     _languageServer = languageServer;
 }
示例#3
0
 /// <summary>
 /// Creates a new instance of the ExtensionService which uses the provided
 /// PowerShellContext for loading and executing extension code.
 /// </summary>
 /// <param name="powerShellContext">A PowerShellContext used to execute extension code.</param>
 internal ExtensionService(PowerShellContextService powerShellContext, ILanguageServerFacade languageServer)
 {
     this.PowerShellContext = powerShellContext;
     _languageServer        = languageServer;
 }
 public RhetosHoverHandler(ILogger <RhetosHoverHandler> log, ILanguageServerFacade serverFacade)
 {
     this.log             = log;
     this.rhetosWorkspace = new Lazy <RhetosWorkspace>(serverFacade.GetRequiredService <RhetosWorkspace>);
 }
 public CodeLensHandlerA(ILanguageServerFacade languageServerFacade) : base(new CodeLensRegistrationOptions())
 {
     languageServerFacade.Should().NotBeNull();
 }
 public TextDocumentHandler(ILogger <TextDocumentHandler> log, ILanguageServerFacade serverFacade)
 {
     this.log             = log;
     this.serverFacade    = serverFacade;
     this.rhetosWorkspace = new Lazy <RhetosWorkspace>(serverFacade.GetRequiredService <RhetosWorkspace>);
 }
示例#7
0
 public LanguageServerLoggerProvider(ILanguageServerFacade languageServer)
 {
     _languageServer = languageServer;
 }
示例#8
0
 public BicepEditLinterRuleCommandHandler(ISerializer serializer, ILanguageServerFacade server)
     : base(LanguageConstants.EditLinterRuleCommandName, serializer)
 {
     DefaultBicepConfig = DefaultBicepConfigHelper.GetDefaultBicepConfig();
     this.server        = server;
 }
示例#9
0
 public CodeLensHandlerA(ILanguageServerFacade languageServerFacade)
 {
     languageServerFacade.Should().NotBeNull();
 }
 /// <summary>
 /// Handles "deploy/waitForCompletion" LSP request.
 /// This handler waits for the deployment to complete and sends a "deploymentComplete" notification to the client.
 /// This notification can be used on the client side to write success/failure messsage to the output channel without
 /// blocking other commands.
 /// Note: Base handler - ExecuteTypedResponseCommandHandlerBase is serial. This blocks other commands on the client side.
 /// To avoid the above issue, we changed the RequestProcessType to parallel in <see cref="Server"/>
 /// We need to make sure changes to this handler are thread safe.
 /// </summary>
 public BicepDeploymentWaitForCompletionCommandHandler(IDeploymentOperationsCache deploymentOperationsCache, ILanguageServerFacade server, ISerializer serializer, ITelemetryProvider telemetryProvider)
     : base(LangServerConstants.DeployWaitForCompletionCommand, serializer)
 {
     this.deploymentOperationsCache = deploymentOperationsCache;
     this.server            = server;
     this.telemetryProvider = telemetryProvider;
 }
 public BicepGetRecommendedConfigLocationHandler(ILanguageServerFacade server)
 {
     this.server = server;
 }
示例#12
0
 public BicepCompilationManager(ILanguageServerFacade server, ICompilationProvider provider)
 {
     this.server   = server;
     this.provider = provider;
 }
 public LanguageServerLogger(ILanguageServerFacade responseRouter, string categoryName, Func <LogLevel> logLevelGetter)
 {
     _logLevelGetter = logLevelGetter;
     _responseRouter = responseRouter;
     _categoryName   = categoryName;
 }
 internal EditorContextService(
     ILanguageServerFacade languageServer)
 {
     _languageServer = languageServer;
 }
 internal LanguageServerService(ILanguageServerFacade languageServer)
 {
     _languageServer = languageServer;
 }
示例#16
0
 public RhetosProjectMonitor(ILanguageServerFacade languageServerFacade, ILogger <RhetosProjectMonitor> log)
 {
     this.rhetosWorkspace = new Lazy <RhetosWorkspace>(languageServerFacade.GetRequiredService <RhetosWorkspace>);
     this.log             = log;
 }
示例#17
0
 public BicepCompilationManager(ILanguageServerFacade server, ICompilationProvider provider, IWorkspace workspace)
 {
     this.server    = server;
     this.provider  = provider;
     this.workspace = workspace;
 }
示例#18
0
 public NestedServerHandler(ILanguageServerFacade languageClientFacade)
 {
     _languageClientFacade = languageClientFacade;
     languageClientFacade.Register(z => z.AddHandler <InterfaceHandler <ILanguageServerFacade> >());
 }
示例#19
0
 public LanguageServerLogger(ILanguageServerFacade responseRouter, string categoryName)
 {
     _responseRouter = responseRouter;
     _categoryName   = categoryName;
 }
 public LanguageServerLoggerProvider(ILanguageServerFacade languageServer, LanguageServerLoggerSettings settings)
 {
     _languageServer = languageServer;
     _settings       = settings;
 }
示例#21
0
 public DocumentHandler(ILanguageServerFacade server, Workspace workspace)
 {
     this.Server    = server;
     this.Workspace = workspace;
 }