@@ -23,12 +23,13 @@ import { Range } from 'vs/editor/common/core/range';
23
23
import { Selection } from 'vs/editor/common/core/selection' ;
24
24
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
25
25
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
26
+ import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
26
27
import { ICommandService } from 'vs/platform/commands/common/commands' ;
27
28
import { IContextKeyService , IContextKey } from 'vs/platform/contextkey/common/contextkey' ;
28
29
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
29
30
import { DebugHoverWidget } from 'vs/workbench/parts/debug/electron-browser/debugHover' ;
30
31
import { 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' ;
32
33
import { BreakpointWidget } from 'vs/workbench/parts/debug/browser/breakpointWidget' ;
33
34
import { FloatingClickWidget } from 'vs/workbench/parts/preferences/browser/preferencesWidgets' ;
34
35
import { getNameValueMapFromScopeChildren , getDecorators , getEditorWordRangeMap } from 'vs/workbench/parts/debug/electron-browser/debugInlineDecorators' ;
@@ -63,7 +64,8 @@ export class DebugEditorContribution implements IDebugEditorContribution {
63
64
@IContextKeyService contextKeyService : IContextKeyService ,
64
65
@ICommandService private commandService : ICommandService ,
65
66
@ICodeEditorService private codeEditorService : ICodeEditorService ,
66
- @ITelemetryService private telemetryService : ITelemetryService
67
+ @ITelemetryService private telemetryService : ITelemetryService ,
68
+ @IConfigurationService private configurationService : IConfigurationService
67
69
) {
68
70
this . breakpointHintDecoration = [ ] ;
69
71
this . hoverWidget = new DebugHoverWidget ( this . editor , this . debugService , this . instantiationService ) ;
@@ -210,7 +212,9 @@ export class DebugEditorContribution implements IDebugEditorContribution {
210
212
this . hideHoverWidget ( ) ;
211
213
}
212
214
213
- this . updateInlineDecorators ( sf ) ;
215
+ if ( this . configurationService . getConfiguration < IDebugConfiguration > ( 'debug' ) . inlineValues ) {
216
+ this . updateInlineDecorators ( sf ) ;
217
+ }
214
218
}
215
219
216
220
private updateInlineDecorators ( stackFrame : IStackFrame ) : void {
0 commit comments