Skip to content

Commit

Permalink
fix: do not sort profiles when adding new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Mar 11, 2024
1 parent 0ce1d12 commit 5969851
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class UpdateRelatedProfileCommand extends MetadataCommand {
const profileDoc = await vscode.workspace.openTextDocument(path.resolve(file));
const fullDocumentRange = new vscode.Range(new vscode.Position(0,0), new vscode.Position(profileDoc.lineCount, 0));
this.logger.info(`Updating profile ${profile.name}`);
profileChanges.replace(profileDoc.uri, fullDocumentRange, profile.toXml({ sort: true }));
profileChanges.replace(profileDoc.uri, fullDocumentRange, profile.toXml({ sort: false }));
updatedProfiles.push(profile);
}
await vscode.workspace.applyEdit(profileChanges);
Expand Down

0 comments on commit 5969851

Please sign in to comment.