ng-alain / ng-zorro-vscode

Visual studio code plugin for ng-zorro
https://marketplace.visualstudio.com/items?itemName=cipchk.ng-zorro-vscode
MIT License
54 stars 16 forks source link

<nz-* snippet not working #11

Closed Svetomechc closed 3 years ago

Svetomechc commented 5 years ago

Where is nz-button?

image

image

cipchk commented 5 years ago

@Svetomechc You can check error information via open help - Toggle Developer tools.

I think may be no automatic installation of dependency packages when vscode installs ng-zorro-vscode extensions, #8

Svetomechc commented 5 years ago

I checked there, no errors.

Svetomechc commented 5 years ago

What is the suggested workaround?

cipchk commented 5 years ago

I think you have tried to uninstall and then reinstalled. ~_~

Svetomechc commented 5 years ago

@cipchk already tried ofc

cipchk commented 5 years ago

@Svetomechc I have a way you can try it.

  1. Go to /Users/<Your Name>/.vscode/extensions/cipchk.ng-zorro-vscode-7.3.4/ path
  2. Clean node_modules
  3. Running yarn
  4. restart vscode
Svetomechc commented 5 years ago

@cipchk there isn't a node_modules folder there:

image

cipchk commented 5 years ago

@Svetomechc ingore step 2.

Svetomechc commented 5 years ago

@cipchk that worked, thanks!

Svetomechc commented 5 years ago

@cipchk although not for a very long time... and now repeating these steps does nothing at all.

Donmen commented 5 years ago

@cipchk 我也碰到这个问题,试了你上面的方法,还是解决不了。调试没有报错,但传入的值是空的。。

cipchk commented 5 years ago

@Donmen 抱歉,我想不到有什么办法可以解决了;目前我在 mac 下并无发生过这类情况,而 windows 下好像会有这种很奇怪的情况,总感觉应该是权限问题吧,导致无法自动执行安装依赖。

ChaoQunPeng commented 5 years ago

我在ng-zorro-vscode-8.3.0下的snippets.json似乎没有发现有nzs-button触发前缀。。。

cipchk commented 3 years ago

fixed by 11 version.