|
6 | 6 | using Microsoft.PowerShell.EditorServices.Utility;
|
7 | 7 | using System;
|
8 | 8 | using System.Collections;
|
| 9 | +using System.Collections.Generic; |
9 | 10 | using System.IO;
|
10 | 11 | using System.Reflection;
|
11 | 12 | using System.Security;
|
@@ -300,12 +301,51 @@ public void Update(
|
300 | 301 | }
|
301 | 302 | }
|
302 | 303 |
|
303 |
| - public class LanguageServerSettingsWrapper |
304 |
| - { |
305 |
| - // NOTE: This property is capitalized as 'Powershell' because the |
306 |
| - // mode name sent from the client is written as 'powershell' and |
307 |
| - // JSON.net is using camelCasing. |
| 304 | + /// <summary> |
| 305 | + /// Additional settings from the Language Client that affect Language Server operations but |
| 306 | + /// do not exist under the 'powershell' section |
| 307 | + /// </summary> |
| 308 | + public class EditorFileSettings |
| 309 | + { |
| 310 | + /// <summary> |
| 311 | + /// Exclude files globs consists of hashtable with the key as the glob and a boolean value to indicate if the |
| 312 | + /// the glob is in effect. |
| 313 | + /// </summary> |
| 314 | + public Dictionary<string, bool> Exclude { get; set; } |
| 315 | + } |
308 | 316 |
|
309 |
| - public LanguageServerSettings Powershell { get; set; } |
310 |
| - } |
| 317 | + /// <summary> |
| 318 | + /// Additional settings from the Language Client that affect Language Server operations but |
| 319 | + /// do not exist under the 'powershell' section |
| 320 | + /// </summary> |
| 321 | + public class EditorSearchSettings |
| 322 | + { |
| 323 | + /// <summary> |
| 324 | + /// Exclude files globs consists of hashtable with the key as the glob and a boolean value to indicate if the |
| 325 | + /// the glob is in effect. |
| 326 | + /// </summary> |
| 327 | + public Dictionary<string, bool> Exclude { get; set; } |
| 328 | + /// <summary> |
| 329 | + /// Whether to follow symlinks when searching |
| 330 | + /// </summary> |
| 331 | + public bool FollowSymlinks { get; set; } = true; |
| 332 | + } |
| 333 | + |
| 334 | + public class LanguageServerSettingsWrapper |
| 335 | + { |
| 336 | + // NOTE: This property is capitalized as 'Powershell' because the |
| 337 | + // mode name sent from the client is written as 'powershell' and |
| 338 | + // JSON.net is using camelCasing. |
| 339 | + public LanguageServerSettings Powershell { get; set; } |
| 340 | + |
| 341 | + // NOTE: This property is capitalized as 'Files' because the |
| 342 | + // mode name sent from the client is written as 'files' and |
| 343 | + // JSON.net is using camelCasing. |
| 344 | + public EditorFileSettings Files { get; set; } |
| 345 | + |
| 346 | + // NOTE: This property is capitalized as 'Search' because the |
| 347 | + // mode name sent from the client is written as 'search' and |
| 348 | + // JSON.net is using camelCasing. |
| 349 | + public EditorSearchSettings Search { get; set; } |
311 | 350 | }
|
| 351 | +} |
0 commit comments