All files / commands sort-document-alphabetically.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16        1x     2x       1x        
import * as vscode from 'vscode';
import { AlphabeticalSortingStrategy } from '@faubulous/mentor-rdf-serializers';
import { sortDocument } from './sort-document';
 
export const sortDocumentAlphabetically = {
	id: 'mentor.command.sortDocumentAlphabetically',
	handler: async (documentUri?: vscode.Uri) => {
		await sortDocument(documentUri, new AlphabeticalSortingStrategy());
	}
};
 
export const sortDocumentAlphabeticallySubmenu = {
	id: 'mentor.command.sortDocumentAlphabeticallySubmenu',
	handler: sortDocumentAlphabetically.handler
};