Skip to content

Commit 2f28b40

Browse files
committed
Revert "continue to suppor legacy parameter hints config, microsoft#81256"
This reverts commit 46043d4.
1 parent bb0dbb3 commit 2f28b40

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

src/vs/editor/common/config/editorOptions.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,25 +1871,14 @@ class EditorParameterHints extends BaseEditorOption<EditorOption.parameterHints,
18711871
}
18721872

18731873
public validate(_input: any): InternalParameterHintOptions {
1874-
if (typeof _input === 'boolean') {
1875-
// legacy
1876-
return {
1877-
enabled: _input,
1878-
cycle: this.defaultValue.cycle
1879-
};
1880-
1881-
} else if (typeof _input !== 'object') {
1882-
// invalid
1874+
if (typeof _input !== 'object') {
18831875
return this.defaultValue;
1884-
1885-
} else {
1886-
//
1887-
const input = _input as IEditorParameterHintOptions;
1888-
return {
1889-
enabled: EditorBooleanOption.boolean(input.enabled, this.defaultValue.enabled),
1890-
cycle: EditorBooleanOption.boolean(input.cycle, this.defaultValue.cycle)
1891-
};
18921876
}
1877+
const input = _input as IEditorParameterHintOptions;
1878+
return {
1879+
enabled: EditorBooleanOption.boolean(input.enabled, this.defaultValue.enabled),
1880+
cycle: EditorBooleanOption.boolean(input.cycle, this.defaultValue.cycle)
1881+
};
18931882
}
18941883
}
18951884

0 commit comments

Comments
 (0)