Skip to content

Commit

Permalink
removed an unused setting
Browse files Browse the repository at this point in the history
  • Loading branch information
RyotaUshio committed Dec 7, 2023
1 parent df94742 commit dc3b424
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ export type KeysOfType<Obj, Type> = { [k in keyof Obj]: Obj[k] extends Type ? k
export interface EnhancedLinkSuggestionsSettings {
modifierToPreview: Modifier;
lazyHide: boolean;
dev: boolean;
disableClose: boolean;
}

export const DEFAULT_SETTINGS: EnhancedLinkSuggestionsSettings = {
modifierToPreview: 'Alt',
lazyHide: true,
dev: false,
disableClose: false,
}

Expand Down Expand Up @@ -84,9 +82,6 @@ export class EnhancedLinkSuggestionsSettingTab extends PluginSettingTab {

new Setting(this.containerEl).setName('Debug mode (advanced)').setHeading();

this.addToggleSetting('dev')
.setName('Log suggestion items to console')
.setDesc('Show metadata about suggestion items in the dev console.');
this.addToggleSetting('disableClose', (disable) => {
const suggest = this.plugin.getBuiltInSuggest();
if (!disable && suggest.isOpen) suggest.close();
Expand Down

0 comments on commit dc3b424

Please sign in to comment.