File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export const limitAncestorDepth = (
3434} => {
3535 const [ path , ...rest ] = ancestors
3636 const collectedLimit = Number (
37- getConfigValue ( ConfigKey . EXP_TABLE_HEAD_MAX_DEPTH , limit )
37+ getConfigValue ( ConfigKey . EXP_TABLE_HEAD_MAX_HEIGHT , limit )
3838 )
3939
4040 switch ( collectedLimit ) {
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export class Experiments extends BaseRepository<TableData> {
132132
133133 this . dispose . track (
134134 workspace . onDidChangeConfiguration ( ( event : ConfigurationChangeEvent ) => {
135- if ( event . affectsConfiguration ( ConfigKey . EXP_TABLE_HEAD_MAX_DEPTH ) ) {
135+ if ( event . affectsConfiguration ( ConfigKey . EXP_TABLE_HEAD_MAX_HEIGHT ) ) {
136136 this . cliData . update ( )
137137 }
138138 } )
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export class WebviewMessages {
186186 return
187187 }
188188
189- setConfigValue ( ConfigKey . EXP_TABLE_HEAD_MAX_DEPTH , Number ( newValue ) )
189+ setConfigValue ( ConfigKey . EXP_TABLE_HEAD_MAX_HEIGHT , Number ( newValue ) )
190190 sendTelemetryEvent (
191191 EventName . VIEWS_EXPERIMENTS_TABLE_SET_MAX_HEADER_HEIGHT ,
192192 undefined ,
Original file line number Diff line number Diff line change @@ -173,11 +173,11 @@ suite('Experiments Test Suite', () => {
173173 } )
174174
175175 describe ( 'handleMessageFromWebview' , ( ) => {
176- after ( ( ) => {
176+ after ( ( ) =>
177177 workspace
178- . getConfiguration ( ConfigKey . EXP_TABLE_HEAD_MAX_DEPTH )
179- . update ( '' , undefined , false )
180- } )
178+ . getConfiguration ( )
179+ . update ( ConfigKey . EXP_TABLE_HEAD_MAX_HEIGHT , undefined , false )
180+ )
181181
182182 const setupExperimentsAndMockCommands = ( ) => {
183183 const {
@@ -891,7 +891,7 @@ suite('Experiments Test Suite', () => {
891891 const { experiments } = buildExperiments ( disposable , expShowFixture )
892892 const inputEvent = getInputBoxEvent ( '0' )
893893 const tableMaxDepthChanged = configurationChangeEvent (
894- ConfigKey . EXP_TABLE_HEAD_MAX_DEPTH ,
894+ ConfigKey . EXP_TABLE_HEAD_MAX_HEIGHT ,
895895 disposable
896896 )
897897
@@ -907,7 +907,7 @@ suite('Experiments Test Suite', () => {
907907 await tableMaxDepthChanged
908908
909909 expect (
910- workspace . getConfiguration ( ) . get ( ConfigKey . EXP_TABLE_HEAD_MAX_DEPTH )
910+ workspace . getConfiguration ( ) . get ( ConfigKey . EXP_TABLE_HEAD_MAX_HEIGHT )
911911 ) . to . equal ( 0 )
912912 expect ( mockSendTelemetryEvent ) . to . be . called
913913 expect (
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export enum ConfigKey {
55 DO_NOT_SHOW_CLI_UNAVAILABLE = 'dvc.doNotShowCliUnavailable' ,
66 DO_NOT_SHOW_WALKTHROUGH_AFTER_INSTALL = 'dvc.doNotShowWalkthroughAfterInstall' ,
77 DO_NOT_SHOW_UNABLE_TO_FILTER = 'dvc.doNotShowUnableToFilter' ,
8- EXP_TABLE_HEAD_MAX_DEPTH = 'dvc.experimentsTableHeadMaxHeight' ,
8+ EXP_TABLE_HEAD_MAX_HEIGHT = 'dvc.experimentsTableHeadMaxHeight' ,
99 DVC_PATH = 'dvc.dvcPath' ,
1010 PYTHON_PATH = 'dvc.pythonPath'
1111}
You can’t perform that action at this time.
0 commit comments