(filePath: string)
| 21 | }; |
| 22 | |
| 23 | export const getFileInfo = (filePath: string) => { |
| 24 | const fileName = getFileName(filePath); |
| 25 | const fileNameExtension = getFileExtension(fileName); |
| 26 | const fileNameWithoutExtension = getFileNameWithoutExtension(fileName); |
| 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); |
no test coverage detected