TSAssetHoverTSAssetHover helps TypeScript projects preview local asset paths directly from the editor. Hover a string literal that points to a workspace file, and the extension shows a preview or quick actions for that file. What You Can Do
How To UseOpen a TypeScript or TSX file and hover a string path that points to a file in your workspace:
If the path points to an image, the hover shows a preview and file actions. If the path points to another supported workspace file, the hover shows file actions without an image preview. External Asset DirectoriesSet tsAssetHover.externalDirectories in VS Code settings to search asset folders outside the workspace. Enter absolute directory paths separated with semicolons. The workspace is searched first, followed by the configured directories in order. You can also run the TSAssetHover: Configure External Asset Directories command from the Command Palette to edit this setting.
For example, assets/icons/example.blp is resolved as D:\WarcraftAssets\assets\icons\example.blp when it is not present in the workspace. Absolute asset paths are also supported, but must be inside the workspace or one of these configured directories. Supported Image Previews
BLP preview is intended for Warcraft III BLP1 textures. BLP2 preview is not currently supported. Requirements
Notes
|