Beispiel #1
0
        public TraceManager(HostTraceListener traceListener, TraceSetting traceSetting, ISecretMasker secretMasker)
        {
            // Validate and store params.
            ArgUtil.NotNull(traceListener, nameof(traceListener));
            ArgUtil.NotNull(traceSetting, nameof(traceSetting));
            ArgUtil.NotNull(secretMasker, nameof(secretMasker));
            _hostTraceListener = traceListener;
            _traceSetting = traceSetting;
            _secretMasker = secretMasker;

            Switch = new SourceSwitch("VSTSAgentSwitch")
            {
                Level = _traceSetting.DefaultTraceLevel.ToSourceLevels()
            };
        }
Beispiel #2
0
 public object Initialize(int?processId, string rootPath, Uri rootUri, ClientCapabilities capabilities, TraceSetting trace, CancellationToken cancellationToken)
 {
     // our LSP server only supports WorkspaceStreamingSymbolProvider capability
     // for now
     return(new InitializeResult()
     {
         Capabilities = new VSServerCapabilities()
         {
             WorkspaceStreamingSymbolProvider = true
         }
     });
 }