Today, I'm going to show you how to navigate a code workspace with .
pip install lsproxy-sdk
Pull and run the docker container. WORKSPACE_PATH is the absolute path to your code workspace (likely the repository root).
docker pull agenticlabs/lsproxy
docker run \
-p 4444:4444 \
-v $WORKSPACE_PATH:/mnt/workspace \
agenticlabs/lsproxy
Set up the client in python.
# First create the API client
from lsproxy import (
Lsproxy,
FileRange,
GetReferencesRequest,
GetDefinitionRequest,
)
client = Lsproxy()
Find definitions in a file
symbols = client.definitions_in_file("src/sample_file.rs")
Gives you lots of information about the symbols defined within.
SOCIAL SHARE CARD GENERATOR