File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 738
738
},
739
739
"powershell.developer.featureFlags" : {
740
740
"type" : " array" ,
741
- "default" : [] ,
741
+ "default" : null ,
742
742
"description" : " An array of strings that enable experimental features in the PowerShell extension."
743
743
},
744
744
"powershell.developer.powerShellExeIsWindowsDevBuild" : {
Original file line number Diff line number Diff line change
1
+ /*---------------------------------------------------------
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ *--------------------------------------------------------*/
4
+
5
+ import * as assert from "assert" ;
6
+ import Settings = require( "../src/settings" ) ;
7
+
8
+ suite ( "Settings module" , ( ) => {
9
+ test ( "Settings load without error" , ( ) => {
10
+ assert . doesNotThrow ( Settings . load ) ;
11
+ } ) ;
12
+
13
+ // TODO: Remove this test when PSReadLine is in stable
14
+ test ( "PSReadLine featureFlag set correctly" , ( ) => {
15
+ const settings : Settings . ISettings = Settings . load ( ) ;
16
+ if ( process . platform === "win32" ) {
17
+ assert . deepEqual ( settings . developer . featureFlags , [ "PSReadLine" ] ) ;
18
+ } else {
19
+ assert . deepEqual ( settings . developer . featureFlags , [ ] ) ;
20
+ }
21
+ } ) ;
22
+ } ) ;
You can’t perform that action at this time.
0 commit comments