ionic-team / ionic-team/vscode-ionic

the extension can't find the ionic project folder on Win and my workaround

Aperta
#234 1 commento 0 reazioni 1 assegnatario Rivendicata da @damiant Vedi su GitHub
fixed in webnative.dev
Lingua principale
TypeScript
Stelle
15
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

> i have the same issue. the more weird is, it only happens on Win, when i work on Mac with the same repo which cloned from Win, the vs code with the same version ionic extension detects the ionic project and everything is fine. while on Win, the vs code can't detect the ionic project and the ionic panel shows nothing.

_Originally posted by @tylerxue in [#136](https://github.com/ionic-team/vscode-ionic/issues/136#issuecomment-2107695623)_

Last year i found that the extension can't find the ionic project folder on Win, but most of the time i do my works on Mac so didn't pay much attention.

the issue is still the same, and it kept bothering me a lot lately since i started working on Win. but today i found out a workaround 🥰 and that probably imply the cause of the issue.

as you can see in the below, the ionic panel on the left is blank.
Image

and the direct cause i found is the .code-workspace file, if i delete other paths and keep only the root folder '.' , and click the Refresh button at the top right corner of the ionic panel, the content of the ionic panel shows up:

Image

and now you can add other paths to the .code-workspace file, in fact this is the same action of "add folder to workspace'. folders you added will shows up in your workspace:
Image
The important thing to notice here is, do not click the "Refresh" button on the ionic panel again, otherwise the panel will become blank again.
and now you can add your ionic project's folder as well:
Image

So this is my workaround 🥰. and i think it's caused by mismatch of project folders when it's a workspace with multiple projects. another reason is that this issue happens only on Win, which use a different filepath system then Mac.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.