mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 03:25:38 +00:00
143543 replaced true and false with on and off in debug.inlineValues
This commit is contained in:
parent
1cc6ee1c71
commit
424cc864b5
3 changed files with 3 additions and 3 deletions
|
@ -419,7 +419,7 @@ configurationRegistry.registerConfiguration({
|
|||
},
|
||||
'debug.inlineValues': {
|
||||
type: ['boolean', 'string'],
|
||||
'enum': [true, false, 'auto'],
|
||||
'enum': ['on', 'off', 'auto'],
|
||||
description: nls.localize({ comment: ['This is the description for a setting'], key: 'inlineValues' }, "Show variable values inline in editor while debugging."),
|
||||
'enumDescriptions': [
|
||||
nls.localize('inlineValues.on', 'Always show variable values inline in editor while debugging.'),
|
||||
|
|
|
@ -627,7 +627,7 @@ export class DebugEditorContribution implements IDebugEditorContribution {
|
|||
|
||||
const model = this.editor.getModel();
|
||||
const inlineValuesSetting = this.configurationService.getValue<IDebugConfiguration>('debug').inlineValues;
|
||||
const inlineValuesTurnedOn = inlineValuesSetting === true || (inlineValuesSetting === 'auto' && model && this.languageFeaturesService.inlineValuesProvider.has(model));
|
||||
const inlineValuesTurnedOn = inlineValuesSetting === true || inlineValuesSetting === 'on' || (inlineValuesSetting === 'auto' && model && this.languageFeaturesService.inlineValuesProvider.has(model));
|
||||
if (!inlineValuesTurnedOn || !model || !stackFrame || model.uri.toString() !== stackFrame.source.uri.toString()) {
|
||||
if (!this.removeInlineValuesScheduler.isScheduled()) {
|
||||
this.removeInlineValuesScheduler.schedule();
|
||||
|
|
|
@ -611,7 +611,7 @@ export interface IDebugConfiguration {
|
|||
allowBreakpointsEverywhere: boolean;
|
||||
openDebug: 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart' | 'openOnDebugBreak';
|
||||
openExplorerOnEnd: boolean;
|
||||
inlineValues: boolean | 'auto';
|
||||
inlineValues: boolean | 'auto' | 'on' | 'off';
|
||||
toolBarLocation: 'floating' | 'docked' | 'hidden';
|
||||
showInStatusBar: 'never' | 'always' | 'onFirstSessionStart';
|
||||
internalConsoleOptions: 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart';
|
||||
|
|
Loading…
Reference in a new issue