public LanguageServerSettings()
 {
     this.ScriptAnalysis = new ScriptAnalysisSettings();
     this.CodeFormatting = new CodeFormattingSettings();
     this.CodeFolding    = new CodeFoldingSettings();
     this.Pester         = new PesterSettings();
 }
 public void Update(
     LanguageServerSettings settings,
     string workspaceRootPath,
     ILogger logger)
 {
     if (settings != null)
     {
         lock (updateLock)
         {
             this.EnableProfileLoading = settings.EnableProfileLoading;
             this.ScriptAnalysis.Update(
                 settings.ScriptAnalysis,
                 workspaceRootPath,
                 logger);
             this.CodeFormatting = new CodeFormattingSettings(settings.CodeFormatting);
             this.CodeFolding.Update(settings.CodeFolding, logger);
             this.Pester = new PesterSettings(settings.Pester);
         }
     }
 }
        /// <summary>
        /// Update these settings from another settings object
        /// </summary>
        public void Update(
            PesterSettings settings,
            ILogger logger)
        {
            if (settings is null)
            {
                return;
            }

            if (this.CodeLens != settings.CodeLens)
            {
                this.CodeLens = settings.CodeLens;
                logger.LogTrace(string.Format("Using Pester Code Lens - {0}", this.CodeLens));
            }

            if (this.UseLegacyCodeLens != settings.UseLegacyCodeLens)
            {
                this.UseLegacyCodeLens = settings.UseLegacyCodeLens;
                logger.LogTrace(string.Format("Using Pester Legacy Code Lens - {0}", this.UseLegacyCodeLens));
            }
        }
 public PesterSettings(PesterSettings settings)
 {
     UseLegacyCodeLens = settings.UseLegacyCodeLens;
 }