@@ -23,12 +23,13 @@ import { Range } from 'vs/editor/common/core/range';
2323import { Selection } from 'vs/editor/common/core/selection' ;
2424import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
2525import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
26+ import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
2627import { ICommandService } from 'vs/platform/commands/common/commands' ;
2728import { IContextKeyService , IContextKey } from 'vs/platform/contextkey/common/contextkey' ;
2829import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
2930import { DebugHoverWidget } from 'vs/workbench/parts/debug/electron-browser/debugHover' ;
3031import { RemoveBreakpointAction , EditConditionalBreakpointAction , EnableBreakpointAction , DisableBreakpointAction , AddConditionalBreakpointAction } from 'vs/workbench/parts/debug/browser/debugActions' ;
31- import { IDebugEditorContribution , IDebugService , State , IBreakpoint , EDITOR_CONTRIBUTION_ID , CONTEXT_BREAKPOINT_WIDGET_VISIBLE , IStackFrame } from 'vs/workbench/parts/debug/common/debug' ;
32+ import { IDebugEditorContribution , IDebugService , State , IBreakpoint , EDITOR_CONTRIBUTION_ID , CONTEXT_BREAKPOINT_WIDGET_VISIBLE , IStackFrame , IDebugConfiguration } from 'vs/workbench/parts/debug/common/debug' ;
3233import { BreakpointWidget } from 'vs/workbench/parts/debug/browser/breakpointWidget' ;
3334import { FloatingClickWidget } from 'vs/workbench/parts/preferences/browser/preferencesWidgets' ;
3435import { getNameValueMapFromScopeChildren , getDecorators , getEditorWordRangeMap } from 'vs/workbench/parts/debug/electron-browser/debugInlineDecorators' ;
@@ -63,7 +64,8 @@ export class DebugEditorContribution implements IDebugEditorContribution {
6364 @IContextKeyService contextKeyService : IContextKeyService ,
6465 @ICommandService private commandService : ICommandService ,
6566 @ICodeEditorService private codeEditorService : ICodeEditorService ,
66- @ITelemetryService private telemetryService : ITelemetryService
67+ @ITelemetryService private telemetryService : ITelemetryService ,
68+ @IConfigurationService private configurationService : IConfigurationService
6769 ) {
6870 this . breakpointHintDecoration = [ ] ;
6971 this . hoverWidget = new DebugHoverWidget ( this . editor , this . debugService , this . instantiationService ) ;
@@ -210,7 +212,9 @@ export class DebugEditorContribution implements IDebugEditorContribution {
210212 this . hideHoverWidget ( ) ;
211213 }
212214
213- this . updateInlineDecorators ( sf ) ;
215+ if ( this . configurationService . getConfiguration < IDebugConfiguration > ( 'debug' ) . inlineValues ) {
216+ this . updateInlineDecorators ( sf ) ;
217+ }
214218 }
215219
216220 private updateInlineDecorators ( stackFrame : IStackFrame ) : void {
0 commit comments