Uses of Class
org.eclipse.lemminx.extensions.index.WorkspaceIndex
Packages that use WorkspaceIndex
Package
Description
-
Uses of WorkspaceIndex in org.eclipse.lemminx.extensions.catalog.participants
Constructors in org.eclipse.lemminx.extensions.catalog.participants with parameters of type WorkspaceIndexModifierConstructorDescriptionXMLCatalogRenameParticipant(WorkspaceIndex workspaceIndex, Supplier<IXMLDocumentProvider> docProviderSupplier) -
Uses of WorkspaceIndex in org.eclipse.lemminx.extensions.index
Methods in org.eclipse.lemminx.extensions.index with parameters of type WorkspaceIndexModifier and TypeMethodDescriptionstatic org.eclipse.lsp4j.CodeLensWorkspaceIndexCodeLensSupport.buildCatalogWorkspaceReferenceLens(WorkspaceIndex workspaceIndex, String catalogUri, String catalogIdentifier, org.eclipse.lsp4j.Range range, boolean supportedByClient, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Builds a "N references" code lens for a catalog entry pointing to the grammar aturi.static org.eclipse.lsp4j.CodeLensWorkspaceIndexCodeLensSupport.buildWorkspaceReferenceLens(WorkspaceIndex workspaceIndex, String uri, org.eclipse.lsp4j.Range range, boolean supportedByClient, boolean excludeGrammarFiles, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Builds a "N references" code lens for the grammar file identified byuri, optionally excluding grammar-to-grammar references from the count.static org.eclipse.lsp4j.CodeLensWorkspaceIndexCodeLensSupport.buildWorkspaceReferenceLens(WorkspaceIndex workspaceIndex, String uri, org.eclipse.lsp4j.Range range, boolean supportedByClient, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Builds a "N references" code lens for the grammar file identified byuri.static List<org.eclipse.lsp4j.Location> WorkspaceIndexReferenceParticipant.collectCrossFileReferences(WorkspaceIndex index, Path targetPath, Function<String, String> openDocContent, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all workspace files that referencetargetPathand returns their exactLocations.static List<org.eclipse.lsp4j.Location> WorkspaceIndexReferenceParticipant.collectCrossFileReferences(WorkspaceIndex index, Path targetPath, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Convenience overload without open-document re-scan.static org.eclipse.lsp4j.WorkspaceEditGrammarFileRenameSupport.computeRenameEdits(WorkspaceIndex index, Path oldPath, Path newPath) Convenience overload — no open-document re-scan (uses cached positions for all files).static org.eclipse.lsp4j.WorkspaceEditGrammarFileRenameSupport.computeRenameEdits(WorkspaceIndex index, Path oldPath, Path newPath, Function<String, String> openDocumentContent) Constructors in org.eclipse.lemminx.extensions.index with parameters of type WorkspaceIndexModifierConstructorDescriptionWorkspaceIndexCatalogReferenceParticipant(WorkspaceIndex workspaceIndex) Convenience constructor for tests that don't need open-document re-scan.WorkspaceIndexCatalogReferenceParticipant(WorkspaceIndex workspaceIndex, Supplier<IXMLDocumentProvider> docProviderSupplier) Constructor used in production.WorkspaceIndexCodeLensParticipant(WorkspaceIndex workspaceIndex) WorkspaceIndexReferenceParticipant(WorkspaceIndex workspaceIndex) Convenience constructor for tests that don't need open-document re-scan.WorkspaceIndexReferenceParticipant(WorkspaceIndex workspaceIndex, Supplier<IXMLDocumentProvider> docProviderSupplier) Constructor used in production. -
Uses of WorkspaceIndex in org.eclipse.lemminx.extensions.relaxng.grammar.rnc
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc with parameters of type WorkspaceIndexModifier and TypeMethodDescriptionList<? extends org.eclipse.lsp4j.Location> RNCLanguageService.findReferences(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, WorkspaceIndex workspaceIndex, Function<String, String> openDocContent, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all references to the symbol at the given position.List<org.eclipse.lsp4j.CodeLens> RNCLanguageService.getCodeLens(RNCDocument rncDocument, boolean supportedByClient, WorkspaceIndex workspaceIndex, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes code lenses for an RNC document. -
Uses of WorkspaceIndex in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codelens
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codelens with parameters of type WorkspaceIndexModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.CodeLens> RNCCodeLenses.getCodeLens(RNCDocument rncDocument, boolean supportedByClient, WorkspaceIndex workspaceIndex, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes code lenses for all defines in the given RNC document, plus a workspace "N references" lens at the top of the file. -
Uses of WorkspaceIndex in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.reference
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.reference with parameters of type WorkspaceIndexModifier and TypeMethodDescriptionList<? extends org.eclipse.lsp4j.Location> RNCReferences.findReferences(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, WorkspaceIndex workspaceIndex, Function<String, String> openDocContent, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all references to the define name at the given cursor position. -
Uses of WorkspaceIndex in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.validator
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.validator with parameters of type WorkspaceIndexModifier and TypeMethodDescriptionstatic List<org.eclipse.lsp4j.Diagnostic> RNCValidator.validate(TextDocument document, WorkspaceIndex workspaceIndex, boolean unnecessaryTagSupported, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)