ionic-team / ionic-team/vscode-ionic
the extension can't find the ionic project folder on Win and my workaround
- Vorherrschende Sprache
- TypeScript
- Sterne
- 15
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
> 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.
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:
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:
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:
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.