/// <summary>
 /// Update these settings from another settings object
 /// </summary>
 public void Update(
     CodeFoldingSettings settings,
     ILogger logger)
 {
     if (settings != null)
     {
         if (this.Enable != settings.Enable)
         {
             this.Enable = settings.Enable;
             logger.LogTrace(string.Format("Using Code Folding Enabled - {0}", this.Enable));
         }
         if (this.ShowLastLine != settings.ShowLastLine)
         {
             this.ShowLastLine = settings.ShowLastLine;
             logger.LogTrace(string.Format("Using Code Folding ShowLastLine - {0}", this.ShowLastLine));
         }
     }
 }
Esempio n. 2
0
 public LanguageServerSettings()
 {
     this.ScriptAnalysis = new ScriptAnalysisSettings();
     this.CodeFormatting = new CodeFormattingSettings();
     this.CodeFolding    = new CodeFoldingSettings();
 }