VSC always change .classpath file of each bundle

Tags: #<Tag:0x00007f6173790e10>

Hi,

I developing openhab with Visual Studio Code, but have two anoying things on that:

first thing at each bundle .classpath-file there are file changes always when opening VSC

there are following lines added by Visual Studio Code:

<classpathentry kind="src" path="target/generated-sources/annotations">
	<attributes>
		<attribute name="optional" value="true"/>
		<attribute name="maven.pomderived" value="true"/>
		<attribute name="ignore_optional_problems" value="true"/>
		<attribute name="m2e-apt" value="true"/>
	</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
	<attributes>
		<attribute name="optional" value="true"/>
		<attribute name="maven.pomderived" value="true"/>
		<attribute name="ignore_optional_problems" value="true"/>
		<attribute name="m2e-apt" value="true"/>
		<attribute name="test" value="true"/>
	</attributes>
</classpathentry>

And second on openhab-core it adds a .factorypath file to each bundle I open.

This make it’s really hard on commits not to commit files I don’t want to be changed

Has anyone a solution please what I’m doing wrong?

Thanks

DerOetzi

Only open the folder that your bundle is installed on (don’t open the high level folder of all bundles) and add factorypath to gitignore.

I uninstalled the java extension.