File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,16 @@ class InlayHintsFeature implements vscodelc.StaticFeature {
6868 this . context . subscriptions . push (
6969 vscode . commands . registerCommand ( 'clangd.inlayHints.toggle' , ( ) => {
7070 // This used to be a boolean, and then became a 4-state enum.
71- var val = vscode . workspace . getConfiguration ( ) . get < boolean | string > (
72- enabledSetting , "on" ) ;
73- if ( val === true || val === "on" )
74- val = " off"
75- else if ( val === false || val === " off" )
76- val = "on" ;
77- else if ( val === " offUnlessPressed" )
78- val = " onUnlessPressed" ;
79- else if ( val == " onUnlessPressed" )
80- val = " offUnlessPressed" ;
71+ var val = vscode . workspace . getConfiguration ( ) . get < boolean | string > (
72+ enabledSetting , 'on' ) ;
73+ if ( val === true || val === 'on' )
74+ val = ' off'
75+ else if ( val === false || val === ' off' )
76+ val = 'on' ;
77+ else if ( val === ' offUnlessPressed' )
78+ val = ' onUnlessPressed' ;
79+ else if ( val == ' onUnlessPressed' )
80+ val = ' offUnlessPressed' ;
8181 else
8282 return ;
8383 vscode . workspace . getConfiguration ( ) . update (
You can’t perform that action at this time.
0 commit comments