Private hoverThis method builds a markdown string for a given script and library data.
The name of the script.
The version of the script.
The documentation of the script.
The user who created the script.
The ID of the chart that the script is associated with.
The source code of the script.
A markdown string.
This method creates a Hover object for a given script and library data.
The content of the script.
The data of the library.
The position at which the hover was requested.
The document in which the hover was requested.
A Hover object, or null if no word range is found at the position.
This method provides hover information for a given position in a document.
The document in which the hover was requested.
The position at which the hover was requested.
A promise that resolves to a Hover object, or null if no hover information is available.
Generated using TypeDoc
PineLibHoverProvideris a class that implements thevscode.HoverProviderinterface. It provides hover information for Pine Script library imports in a Visual Studio Code document.The class has properties for the Pine and TradingView icons, the TradingView URL, and a cache for hover data. The icons and URL are used in the hover information, and the cache is used to store hover information for each line of text. This allows the hover information to be retrieved quickly with only needing to be fetched once faster and only a single request to TV.