I'd either wrap this in a check - `SparkFlags.instance.showGitAdd` - or implement the logic to only show the add context menu if all the files in the set are not in the index.