isselab / HAnS

HAnS - Helping Annotate Software. HAnS is an open-source (Apache 2.0) plugin for IntelliJ that helps you annotate software.
Apache License 2.0
6 stars 5 forks source link

Bug-deleteFromFeatureModelWithChildren-Brtszz-Deleting Entire Lines Instead of Individual Featurenames #52

Closed Brtszz closed 6 months ago

Brtszz commented 6 months ago

Instead of manipulating the string content of the document to remove the feature, I directly used the deleteString method of the Document class.

The lineStartOffset and lineEndOffset are calculated based on the line numbers of the feature's text offset, ensuring the deletion of the entire line where the feature is located, regardless of its length or content.