From a3b35c53af867c694bbab5b55014084587926f8a Mon Sep 17 00:00:00 2001 From: Eric Rodriguez Date: Wed, 29 Nov 2023 14:24:13 +0000 Subject: [PATCH] swap where the module and the type show --- src/loogle-api.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/loogle-api.ts b/src/loogle-api.ts index 18a99b9..37e64f7 100644 --- a/src/loogle-api.ts +++ b/src/loogle-api.ts @@ -71,14 +71,15 @@ export class LoogleHitItem implements vscode.QuickPickItem { constructor(hitObject : HitObject) { this.label = hitObject.name; - this.description = ":: ".concat(hitObject.type); + const spaces : RegExp = /\s+/g; + this.detail = hitObject.type.replace(spaces, ' '); let shouldModule = vscode.workspace.getConfiguration().get("loogle-lean.showModuleName"); console.log(shouldModule); if(shouldModule === true) { - this.detail = `Module : ${hitObject.module}`;//`${moduleName} $(link-external-16)`;//(${moduleUri})`); + this.description = `${hitObject.module}`;//`${moduleName} $(link-external-16)`;//(${moduleUri})`); } else { - this.detail = " ";//`${moduleName} $(link-external-16)`;//(${moduleUri})`); + this.description = " ";//`${moduleName} $(link-external-16)`;//(${moduleUri})`); } let buttonDocs = {