@@ -15,24 +15,24 @@ import { positronConfigurationNodeBase } from '../../languageRuntime/common/lang
15
15
import { PositronDataExplorerLayout } from './interfaces/positronDataExplorerService.js' ;
16
16
17
17
// Key for the configuration setting
18
- export const USE_POSITRON_DATA_EXPLORER_SUMMARY_COLLAPSED_KEY =
19
- 'positron.dataExplorerSummaryCollapsed ' ;
20
- export const USE_POSITRON_DATA_EXPLORER_SUMMARY_LAYOUT_KEY =
21
- 'positron.dataExplorerSummaryLayout ' ;
18
+ export const USE_DATA_EXPLORER_SUMMARY_COLLAPSED_KEY =
19
+ 'dataExplorer.summaryCollapsed ' ;
20
+ export const USE_DATA_EXPLORER_SUMMARY_LAYOUT_KEY =
21
+ 'dataExplorer.summaryLayout ' ;
22
22
23
23
export function DataExplorerSummaryCollapseEnabled (
24
24
configurationService : IConfigurationService
25
25
) {
26
26
return Boolean (
27
- configurationService . getValue ( USE_POSITRON_DATA_EXPLORER_SUMMARY_COLLAPSED_KEY )
27
+ configurationService . getValue ( USE_DATA_EXPLORER_SUMMARY_COLLAPSED_KEY )
28
28
) ;
29
29
}
30
30
31
31
export function DefaultDataExplorerSummaryLayout (
32
32
configurationService : IConfigurationService
33
33
) {
34
34
if ( String (
35
- configurationService . getValue ( USE_POSITRON_DATA_EXPLORER_SUMMARY_LAYOUT_KEY )
35
+ configurationService . getValue ( USE_DATA_EXPLORER_SUMMARY_LAYOUT_KEY )
36
36
) === 'left' ) {
37
37
return PositronDataExplorerLayout . SummaryOnLeft ;
38
38
} else {
@@ -48,11 +48,11 @@ configurationRegistry.registerConfiguration({ // for summary collapse
48
48
...positronConfigurationNodeBase ,
49
49
scope : ConfigurationScope . MACHINE_OVERRIDABLE ,
50
50
properties : {
51
- [ USE_POSITRON_DATA_EXPLORER_SUMMARY_COLLAPSED_KEY ] : {
51
+ [ USE_DATA_EXPLORER_SUMMARY_COLLAPSED_KEY ] : {
52
52
type : 'boolean' ,
53
53
default : false ,
54
54
markdownDescription : localize (
55
- 'positron.enablePositronDataExplorerSummaryCollapse ' ,
55
+ 'positron.dataExplorerSummaryCollapsed ' ,
56
56
'Collapse Data Explorer Summary Panel by default.'
57
57
) ,
58
58
} ,
@@ -62,7 +62,7 @@ configurationRegistry.registerConfiguration({ // for summary layout
62
62
...positronConfigurationNodeBase ,
63
63
scope : ConfigurationScope . MACHINE_OVERRIDABLE ,
64
64
properties : {
65
- [ USE_POSITRON_DATA_EXPLORER_SUMMARY_LAYOUT_KEY ] : {
65
+ [ USE_DATA_EXPLORER_SUMMARY_LAYOUT_KEY ] : {
66
66
type : 'string' ,
67
67
default : 'left' , // Default value (can be "left" or "right")
68
68
enum : [ 'left' , 'right' ] , // Define possible values
0 commit comments