Add variable to tasks.json for filename without extension #1104
Labels
feature-request
Request for new features or functionality
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
Like
${fileBasename}
, but without the extension. Use case is I want to write a task configuration to run JUnit tests in Java (besides other tasks). My tasks.json:(I'm using the workaround described in #981, but this is unrelated)
The task is supposed to run JUnit test for the currently opened file. The problem is, JUnit expects a class name, not a file name. So instead of MyTest.java I need to pass just MyTest. Please add a variable like
${fileBasenameWithoutExtension}
.The text was updated successfully, but these errors were encountered: