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

When we double click on the match references, how to get the URI (file path) of the specific match in Peek references? need to add even handler ? #1606

Open
naganand123 opened this issue Jan 30, 2025 · 3 comments
Labels
info-needed Issue requires more information from poster

Comments

@naganand123
Copy link

Image

@rcjsuen
Copy link
Contributor

rcjsuen commented Feb 3, 2025

I don't understand your question. You want to an event listener that listens to the user clicks, the user actually opening the reference, or something else entirely?

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Feb 3, 2025
@naganand123
Copy link
Author

naganand123 commented Feb 4, 2025

We are using this version in our project
"monaco-editor": "npm:@codingame/[email protected]",
"monaco-editor-workers": "0.44.0",
"monaco-languageclient": "7.2.0",
"vscode": "npm:@codingame/[email protected]",
"vscode-ws-jsonrpc": "3.0.0",
"vscode-languageclient": "9.0.1",
"vscode-languageserver-protocol": "3.17.5",

language is logix/structured text

When I double click on the matched reference, then not navigating to the respective path.
So I want to know how to handle the event handler to get the file path (uri) when we double click on the matched reference.

Image

I am using provideReferences middleware and able to find all matched reference, but I need specific file path of the matched reference on double click to navigate to the respective code editor (file).
provideReferences: async (document, position, context, token, next) => {})

@dbaeumer
Copy link
Member

dbaeumer commented Feb 5, 2025

Still unclear to me, especially how this is related to the LSP libs. From what I understand you are using the Monaco editor and are not running in VS Code. If this is the case you need to see if the Monaco editor allows you to provide an open handler or a content provider for URLs. Then you could do the mapping their.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants