You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled upon this issue when attempting to debug why region imports were not working.
Turns out because the #endregion didn't have the region name it wasn't matching.
I don't think this is an issue per se but the docs should highlight and give a working example if its not going to be resolved as I spent about an hour debugging the issue and would not want someone else to have the same experience. Regardless I wanted to raise so its discoverable.
Minimal reproduction
Create a new presentation, add a js file, i.e. index.js
Add the following codeblock
// #region exampleconsole.log("Should only see me")// #endregionconsole.log("Should not see me")
Add a new presentation with import
# Example
<<< @/index.js#example
Observe that the whole file is imported, adding example to the #endregion fixes the issue but the vscode docs don't mention anything about needing the name on the endregion and the sli.dev docs don't hint at a working example
Describe the bug
I stumbled upon this issue when attempting to debug why region imports were not working.
Turns out because the #endregion didn't have the region name it wasn't matching.
I don't think this is an issue per se but the docs should highlight and give a working example if its not going to be resolved as I spent about an hour debugging the issue and would not want someone else to have the same experience. Regardless I wanted to raise so its discoverable.
Minimal reproduction
Create a new presentation, add a js file, i.e. index.js
Add the following codeblock
Add a new presentation with import
# Example <<< @/index.js#example
Observe that the whole file is imported, adding example to the #endregion fixes the issue but the vscode docs don't mention anything about needing the name on the endregion and the sli.dev docs don't hint at a working example
Environment
The text was updated successfully, but these errors were encountered: