We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fce0bb commit 3e36d9dCopy full SHA for 3e36d9d
src/explorerCommands/new.ts
@@ -49,7 +49,7 @@ function getNewFilePath(basePath: string, className: string): string {
49
export async function newPackage(node: DataNode): Promise<void> {
50
let defaultValue: string;
51
let packageRootPath: string;
52
- if (node.nodeData.kind === NodeKind.PackageRoot) {
+ if (node.nodeData.kind === NodeKind.PackageRoot || node.name === "default-package") {
53
defaultValue = "";
54
packageRootPath = Uri.parse(node.uri).fsPath;
55
} else if (node.nodeData.kind === NodeKind.Package) {
0 commit comments