|
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;
|
@@ -331,12 +332,51 @@ public void Update(
|
331 | 332 | }
|
332 | 333 | }
|
333 | 334 |
|
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. |
| 335 | + /// <summary> |
| 336 | + /// Additional settings from the Language Client that affect Language Server operations but |
| 337 | + /// do not exist under the 'powershell' section |
| 338 | + /// </summary> |
| 339 | + public class EditorFileSettings |
| 340 | + { |
| 341 | + /// <summary> |
| 342 | + /// Exclude files globs consists of hashtable with the key as the glob and a boolean value to indicate if the |
| 343 | + /// the glob is in effect. |
| 344 | + /// </summary> |
| 345 | + public Dictionary<string, bool> Exclude { get; set; } |
| 346 | + } |
339 | 347 |
|
340 |
| - public LanguageServerSettings Powershell { get; set; } |
341 |
| - } |
| 348 | + /// <summary> |
| 349 | + /// Additional settings from the Language Client that affect Language Server operations but |
| 350 | + /// do not exist under the 'powershell' section |
| 351 | + /// </summary> |
| 352 | + public class EditorSearchSettings |
| 353 | + { |
| 354 | + /// <summary> |
| 355 | + /// Exclude files globs consists of hashtable with the key as the glob and a boolean value to indicate if the |
| 356 | + /// the glob is in effect. |
| 357 | + /// </summary> |
| 358 | + public Dictionary<string, bool> Exclude { get; set; } |
| 359 | + /// <summary> |
| 360 | + /// Whether to follow symlinks when searching |
| 361 | + /// </summary> |
| 362 | + public bool FollowSymlinks { get; set; } = true; |
| 363 | + } |
| 364 | + |
| 365 | + public class LanguageServerSettingsWrapper |
| 366 | + { |
| 367 | + // NOTE: This property is capitalized as 'Powershell' because the |
| 368 | + // mode name sent from the client is written as 'powershell' and |
| 369 | + // JSON.net is using camelCasing. |
| 370 | + public LanguageServerSettings Powershell { get; set; } |
| 371 | + |
| 372 | + // NOTE: This property is capitalized as 'Files' because the |
| 373 | + // mode name sent from the client is written as 'files' and |
| 374 | + // JSON.net is using camelCasing. |
| 375 | + public EditorFileSettings Files { get; set; } |
| 376 | + |
| 377 | + // NOTE: This property is capitalized as 'Search' because the |
| 378 | + // mode name sent from the client is written as 'search' and |
| 379 | + // JSON.net is using camelCasing. |
| 380 | + public EditorSearchSettings Search { get; set; } |
342 | 381 | }
|
| 382 | +} |
0 commit comments