Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.3 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.3 KB

VS Code PHP File Link

This extension allows to assign links to files declared as strings in the active PHP document.
In case there are multiple matching files, the extension will give you a list to choose from.


This extension works by fetching list of all workspace files with supportedExtensions and comparing them with active document, every time file is opened or changed.

Default cache is set to avoid scaning all workspace dirs every time user is typing and with remote filesystem users in mind.
Cache is cleared when files/dirs are being changed in vscode but I can't detect other users or apps modifying workspace files.
Cache is not refreshing in background, only when is needed.

📋 Extension Settings

  • phpFileLink.supportedExtensions: List of file extensions that can be linked

    "default": ["php","ini","log"]
  • phpFileLink.cacheWorkspaceFiles: Caching list of workspace files

    "default": true
  • phpFileLink.refreshCacheAfter: Refreshing cache after x seconds

    "default": 120

👋 Special thanks / Credits

Thanks to Robin Delattre for PR Add link to line number.