Open
Description
openedon Feb 21, 2022
Syntax highlighting does not work on symlinked files, but it does on original one.
Environment
- Operating System: Ubuntu 20.04
- JDK version: 13.0.7
- Visual Studio Code version: 1.63.2
- Java extension version: 1.3.0
Steps To Reproduce
- Create a sample java project with a
.java
file and introduce an error to it (e.g. useHashMap<String, String>
without importing HashMap). - You should see
HashMap
underlined with an errorHashMap cannot be resolved to a type
- Create a symlink of the file to somewhere outside the project (in ubuntu:
ln -s <path to original file> <path somewhere outside src/main/java structure>
) - The new file won't have
HashMap
underlined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment