Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 0639e14

Browse files
committed
fix formatting issue
Signed-off-by: Valeriy Svydenko <[email protected]>
1 parent 6980b2a commit 0639e14

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

che-theia-java-extension/src/browser/navigation/file-structure.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ export class FileStructure implements QuickOpenModel, CommandContribution, Keybi
7373
id: 'java.command.file.structure',
7474
label: 'Java: Navigate File Structure'
7575
};
76-
76+
7777
constructor(
7878
@inject(CommandRegistry) protected readonly commands: CommandRegistry,
7979
@inject(KeybindingRegistry) protected readonly keybindingRegistry: KeybindingRegistry,
8080
@inject(KeybindingRegistry) protected readonly keybindings: KeybindingRegistry,
8181
@inject(QuickOpenService) protected readonly quickOpenService: QuickOpenService,
8282
@inject(LanguageClientProvider) protected readonly languageClientProvider: LanguageClientProvider,
8383
@inject(EditorManager) protected readonly editorManager: EditorManager
84-
) {
84+
) {
8585
}
8686

87-
async open () {
87+
async open() {
8888
// Triggering the keyboard shortcut while the dialog is open toggles
8989
// showing the inherited members.
9090
if (this.isOpen) {
@@ -124,21 +124,21 @@ export class FileStructure implements QuickOpenModel, CommandContribution, Keybi
124124
private combineItems(members: Members[]) {
125125
for (const symbolInformation of members) {
126126
const info = symbolInformation.info as MemberItem;
127-
if(!info){
127+
if (!info) {
128128
continue;
129129
}
130130
this.items.push(new MemberQuickOpenItem(info.name, info.kind, info.location, this.editorManager));
131131

132-
if(symbolInformation.children.length !== 0) {
132+
if (symbolInformation.children.length !== 0) {
133133
this.combineItems(symbolInformation.children);
134134
}
135135
}
136136
}
137137

138-
/**
139-
* Get a string (suitable to show to the user) representing the keyboard
140-
* shortcut used to open the quick file open menu.
141-
*/
138+
/**
139+
* Get a string (suitable to show to the user) representing the keyboard
140+
* shortcut used to open the quick file open menu.
141+
*/
142142
private getKeyCommand(): string | undefined {
143143
const keyCommand = this.keybindingRegistry.getKeybindingsForCommand(this.command.id);
144144
if (keyCommand) {
@@ -149,13 +149,13 @@ export class FileStructure implements QuickOpenModel, CommandContribution, Keybi
149149

150150
return undefined;
151151
}
152-
152+
153153
isEnabled(): boolean {
154154
return !!this.editorManager.currentEditor;
155155
}
156156

157157
isVisible(): boolean {
158-
return !!this.editorManager.currentEditor;
158+
return this.isEnabled();
159159
}
160160

161161
registerKeybindings(keybindings: KeybindingRegistry): void {
@@ -181,7 +181,7 @@ export class FileStructure implements QuickOpenModel, CommandContribution, Keybi
181181

182182
public onType(lookFor: string, acceptor: (items: QuickOpenItem[]) => void): void {
183183
this.currentLookFor = lookFor;
184-
acceptor(this.items.filter((item)=> item.getLabel()!.toLocaleLowerCase().indexOf(lookFor.toLocaleLowerCase()) !== -1));
184+
acceptor(this.items.filter((item) => item.getLabel()!.toLocaleLowerCase().indexOf(lookFor.toLocaleLowerCase()) !== -1));
185185
}
186186

187187
private async doRequestToStructure(javaClient: ILanguageClient): Promise<Members[]> {

0 commit comments

Comments
 (0)