cyrilletuzi/vscode-angular-schematics

No suggestions for creating anything other than Interface/Class

TheColorRed opened this issue · 0 comments

Checks before posting an issue

  • I have read all the documentation included in the extension itself as a walkthrough, including the troubleshooting guide (from the VS Code menu: View > Command Palette >search "Documentation" > choose "Angular Schematics: Documentation and tutorial")
  • I have checked in already:
  • My project meets the requirements indicated in README
  • My workspace is in trusted mode, not restricted mode
  • I looked at the extension's logs ("Angular Schematics" Output channel, second tab left to the Terminal), and tried to fix my project's configuration accordingly
  • I understand I am writing to a human being
  • I will be involved in my own issue, by answering questions and informing if the issue is resolved

Configuration

  • VS Code version (only the last 2 versions are supported): Version: 1.87.0 (Universal)
  • Extension version: v6.9.0
  • OS: MacOS
  • Are you using VS Code in normal mode or in a special mode (web version, WSL, SSH/remote, etc.): Normal

Description of the issue

I am using NX for my work project, and a few releases ago they removed the need for an angular.json, I am not sure if this is causing an issue for creating a schematic or not, but on my personal computer, I am able to create schematics without NX.

Each library in a NX file has a project.json instead of an angular.json. The project.json is a combination of nx settings and angular.json settings.

image

Extension logs

[Info - 8:53:30 AM] Starting journey to generate a schematics.
[Info - 8:53:30 AM] Generation started from a file/folder selection: /Users/rnaddy/Documents/vscode/netra/angular-ui-component-library/netra
[Info - 8:53:30 AM] User has selected a file/folder: resolving current workspace folder from it.
[Info - 8:53:30 AM] Workspace folder selected: "angular-ui-component-library"

How to reproduce the issue

  1. Right click on a folder
  2. Select Angular Schematics: Generate a file