-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support for textDocument/documentLink (#832)
Fixes #832 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
ce55178
commit 31aec3e
Showing
19 changed files
with
558 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/main/java/com/redhat/devtools/intellij/lsp4ij/LSPVirtualFileData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Red Hat Inc. and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
* which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package com.redhat.devtools.intellij.lsp4ij; | ||
|
||
import com.intellij.openapi.vfs.VirtualFile; | ||
import com.redhat.devtools.intellij.lsp4ij.operations.diagnostics.LSPDiagnosticsForServer; | ||
import com.redhat.devtools.intellij.lsp4ij.operations.documentLink.LSPDocumentLinkForServer; | ||
|
||
/** | ||
* LSP data stored in {@link VirtualFile} which are used by some LSP operations. | ||
* | ||
* @author Angelo ZERR | ||
*/ | ||
public class LSPVirtualFileData { | ||
|
||
private final LSPDiagnosticsForServer diagnosticsForServer; | ||
|
||
private final LSPDocumentLinkForServer documentLinkForServer; | ||
|
||
public LSPVirtualFileData(LanguageServerWrapper languageServerWrapper, VirtualFile file) { | ||
this.diagnosticsForServer = new LSPDiagnosticsForServer(languageServerWrapper,file); | ||
this.documentLinkForServer = new LSPDocumentLinkForServer(languageServerWrapper, file); | ||
} | ||
|
||
public LSPDiagnosticsForServer getLSPDiagnosticsForServer() { | ||
return diagnosticsForServer; | ||
} | ||
|
||
public LSPDocumentLinkForServer getDocumentLinkForServer() { | ||
return documentLinkForServer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.