Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved search tool output #4697

Merged
merged 2 commits into from
Mar 20, 2025
Merged

Improved search tool output #4697

merged 2 commits into from
Mar 20, 2025

Conversation

RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Mar 17, 2025

Description

Goal:

  • don't show the filepath on every line (use --heading arg)
  • remove blank lines
  • remove leading and trailing single-character e.g. bracket lines
    TODO jetbrains

Before:

./gui/src/hooks/useWebviewListener.ts:import type { ToWebviewProtocol } from "core/protocol/index.js";
./gui/src/hooks/useWebviewListener.ts-import { Message } from "core/protocol/messenger";
./gui/src/hooks/useWebviewListener.ts-import { useContext, useEffect } from "react";
./gui/src/hooks/useWebviewListener.ts-import { IdeMessengerContext } from "../context/IdeMessenger";
./gui/src/hooks/useWebviewListener.ts-
./gui/src/hooks/useWebviewListener.ts:export function useWebviewListener<T extends keyof ToWebviewProtocol>(
./gui/src/hooks/useWebviewListener.ts-  messageType: T,
./gui/src/hooks/useWebviewListener.ts:  handler: (data: ToWebviewProtocol[T][0]) => Promise<ToWebviewProtocol[T][1]>,
./gui/src/hooks/useWebviewListener.ts-  dependencies?: any[],
./gui/src/hooks/useWebviewListener.ts-  skip?: boolean,

After:

./program.cs
        Calculator calc = new Calculator();
        calc.Add(5).Subtract(3);
        Console.WriteLine("Result: " + calc.GetResult());
--
        public double GetResult()
        {
            return result;
./Calculator.java
    public double getResult() {
        return result;
    }
--
        Calculator calc = new Calculator();
        calc.add(10).subtract(5);
        System.out.println("Result: " + calc.getResult());
./test.kt
    fun getResult(): Double {
        return result
    }
./test.ts
  getResult(): number {
    return this.result;
  }
./test.php
    public function getResult() {
        return $this->result;
    }

@RomneyDa RomneyDa requested a review from a team as a code owner March 17, 2025 16:53
@RomneyDa RomneyDa requested review from Patrick-Erichsen and removed request for a team March 17, 2025 16:53
Copy link

netlify bot commented Mar 17, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 5a3a535
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67d854689e334e00085816fb

@RomneyDa RomneyDa changed the title Improved search toolr esults Improved search tool output Mar 17, 2025
@sestinj sestinj merged commit e121a23 into main Mar 20, 2025
31 checks passed
@sestinj sestinj deleted the dallin/search-cleanup branch March 20, 2025 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants