(filePath: string)
| 27 | return { fileName, fileNameExtension, fileNameWithoutExtension }; |
| 28 | }; |
| 29 | export async function openFileInEditor(filePath: string) { |
| 30 | const uri = vscode.Uri.file(filePath); |
| 31 | const document = await vscode.workspace.openTextDocument(uri); |
| 32 | return vscode.window.showTextDocument(document); |
| 33 | } |
| 34 | |
| 35 | export const formatFile = async (filePath: string) => { |
| 36 | const editor = await openFileInEditor(filePath); |
no outgoing calls
no test coverage detected