Skip to content

Commit 2b16d99

Browse files
fix lint
1 parent c46aec9 commit 2b16d99

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/extension/extensionInit.ts

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,29 @@ export async function registerDebugger(context: IExtensionContext): Promise<IExt
206206

207207
const showInlineValues = getConfiguration('debugpy').get<boolean>('showPythonInlineValues', false);
208208
if (showInlineValues) {
209-
registerInlineValuesProviderDisposable = languages.registerInlineValuesProvider({ language: 'python' }, new PythonInlineValueProvider());
209+
registerInlineValuesProviderDisposable = languages.registerInlineValuesProvider(
210+
{ language: 'python' },
211+
new PythonInlineValueProvider(),
212+
);
210213
context.subscriptions.push(registerInlineValuesProviderDisposable);
211214
}
212215

213-
context.subscriptions.push(workspace.onDidChangeConfiguration((event: ConfigurationChangeEvent) => {
214-
if (event.affectsConfiguration('debugpy')) {
215-
const showInlineValues = getConfiguration('debugpy').get<boolean>('showPythonInlineValues', false);
216-
if (!showInlineValues) {
217-
registerInlineValuesProviderDisposable.dispose();
218-
} else {
219-
registerInlineValuesProviderDisposable = languages.registerInlineValuesProvider({ language: 'python' }, new PythonInlineValueProvider());
220-
context.subscriptions.push(registerInlineValuesProviderDisposable);
216+
context.subscriptions.push(
217+
workspace.onDidChangeConfiguration((event: ConfigurationChangeEvent) => {
218+
if (event.affectsConfiguration('debugpy')) {
219+
const showInlineValues = getConfiguration('debugpy').get<boolean>('showPythonInlineValues', false);
220+
if (!showInlineValues) {
221+
registerInlineValuesProviderDisposable.dispose();
222+
} else {
223+
registerInlineValuesProviderDisposable = languages.registerInlineValuesProvider(
224+
{ language: 'python' },
225+
new PythonInlineValueProvider(),
226+
);
227+
context.subscriptions.push(registerInlineValuesProviderDisposable);
228+
}
221229
}
222-
}
223-
}));
230+
}),
231+
);
224232

225233
context.subscriptions.push(
226234
debug.registerDebugVisualizationProvider('inlineHexDecoder', {

0 commit comments

Comments
 (0)