<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vs code intelligence in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254559#M308</link>
    <description>&lt;P&gt;Thank you for your response&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/71373"&gt;@BenElan&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;So far, all the intelligence for the vs code (js, html, python...) were installed, after I imported the extensions from the vs code listing of extensions. This time is different. I am asked to modify the settings.json by adding the "html.customData" to enable intelligence for the calcite.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that I have is the access to the node_modules.&amp;nbsp; As you said,&amp;nbsp; it works when the "&lt;SPAN&gt;package.json is in the root directory of the workspace". That's the issue. I don't have the package.json in my workspace. All my calcite projects are under a master calcite folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It does work fine for my experience builder projects since there is the node_modules and package.json folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 20:22:43 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2023-02-02T20:22:43Z</dc:date>
    <item>
      <title>vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1251742#M293</link>
      <description>&lt;P&gt;According to the calcite design website we can add intelligence&amp;nbsp; to the vs code for calcite by entering&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"html.customData"&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"./node_modules/@esri/calcite-components/dist/extras/vscode-data.json" &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in the .vscode/settings.json&lt;/P&gt;&lt;P&gt;I did just that, but it didn't work. Did I miss something?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_1-1674701905165.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61306i6777F14C1017A829/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_1-1674701905165.png" alt="LefterisKoumis_1-1674701905165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/71373"&gt;@BenElan&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/574219"&gt;@KittyHurley&lt;/a&gt;&amp;nbsp; Suggestions? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 01:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1251742#M293</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-01-28T01:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1252693#M297</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using React + Calcite + Visual Studio Code. The editor is picking up the Calcite types just fine.&lt;/P&gt;&lt;P&gt;I'm importing like this...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN&gt;CalciteBlock&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;CalciteNotice&lt;/SPAN&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;"@esri/calcite-components-react"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... Perhaps this helps you or someone else working with this setup.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coryeicher_0-1674998564926.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61551iA3E02709DB562FDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="coryeicher_0-1674998564926.png" alt="coryeicher_0-1674998564926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Cory&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 13:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1252693#M297</guid>
      <dc:creator>coryeicher</dc:creator>
      <dc:date>2023-01-29T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1252968#M300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The examples repo has VSCode IntelliSense setup, try this one:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/calcite-components-examples/tree/master/vite" target="_blank"&gt;https://github.com/Esri/calcite-components-examples/tree/master/vite&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure to run `npm install` first and then add a component to `index.html`&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 17:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1252968#M300</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2023-01-30T17:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253628#M301</link>
      <description>&lt;P&gt;THank you Ben. Does it means that I have to include the import statements for every project I work on?&lt;/P&gt;&lt;P&gt;So, I cannot get the intelligence work for all projects by setting up the vscode per ESRI instructions?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 01:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253628#M301</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-02-01T01:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253630#M302</link>
      <description>&lt;P&gt;Sorry I'm not sure what you mean. Are you referring to the &lt;A href="https://developers.arcgis.com/calcite-design-system/latest/release-notes/#visual-studio-intellisense" target="_self"&gt;instructions in the release notes&lt;/A&gt;? That's how I got it to work in the vite example -&amp;nbsp;&lt;A href="https://github.com/Esri/calcite-components-examples/blob/master/vite/.vscode/settings.json" target="_self"&gt;right here.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 01:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253630#M302</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2023-02-01T01:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253631#M303</link>
      <description>&lt;P&gt;Thank you. I want to setup the vscode the same way I did for other libraries.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 01:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253631#M303</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-02-01T01:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253633#M304</link>
      <description>&lt;P data-unlink="true"&gt;Oh I think I understand. I don't use VSCode anymore so I can't easily check right now. But if you are able to setup the customData globally it would be in your "User settings" (vs the "Workspace settings" used in the Vite example). Here is VSCode's documentation about &lt;A href="https://code.visualstudio.com/docs/getstarted/settings" target="_self"&gt;User vs Workspace settings&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;So if it is possible, you would add the snippet below to the settings.json file mentioned in &lt;A href="https://code.visualstudio.com/docs/getstarted/settings#_settingsjson" target="_self"&gt;this doc section&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"html.customData": [
    "./node_modules/@esri/calcite-components/dist/extras/vscode-data.json"
],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;VSCode would need to be smart enough to set the current directory in the relative path above to the current workspace's root directory. Otherwise the path to the vscode-data.json file won't resolve correctly. And I'm not sure what would happen if it doesn't resolve. But let me know, now I'm curious!&lt;/P&gt;&lt;P&gt;Make sure to initially open your projects to the folder containing package.json instead of a subdirectory. That should hopefully ensure the Workspace is created in the right place for the relative path.&lt;/P&gt;&lt;P&gt;Here is some additional &lt;A href="https://github.com/microsoft/vscode-custom-data#vs-code-custom-data" target="_self"&gt;documentation about customData&lt;/A&gt; if anyone is curious how it works.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1253633#M304</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2023-02-01T17:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254520#M307</link>
      <description>&lt;P&gt;I installed VSCode to test this and adding the customData to your User settings.json does work when your package.json is in the root directory of the workspace. See my comment above for more details, I added some edits.&lt;/P&gt;&lt;P data-unlink="true"&gt;To clarify, this is for&amp;nbsp;&lt;A href="https://github.com/microsoft/vscode-html-languageservice/blob/main/docs/customData.md#custom-data-for-html-language-service" target="_self"&gt;completion within HTML&lt;/A&gt;&amp;nbsp;files. It's really nice for making quick mock ups or samples, but won't work in framework files like react, vue or svelte. The types bundled with the npm package will provided completion in those cases, as Cory mentioned earlier.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 19:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254520#M307</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2023-02-02T19:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254559#M308</link>
      <description>&lt;P&gt;Thank you for your response&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/71373"&gt;@BenElan&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;So far, all the intelligence for the vs code (js, html, python...) were installed, after I imported the extensions from the vs code listing of extensions. This time is different. I am asked to modify the settings.json by adding the "html.customData" to enable intelligence for the calcite.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that I have is the access to the node_modules.&amp;nbsp; As you said,&amp;nbsp; it works when the "&lt;SPAN&gt;package.json is in the root directory of the workspace". That's the issue. I don't have the package.json in my workspace. All my calcite projects are under a master calcite folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It does work fine for my experience builder projects since there is the node_modules and package.json folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254559#M308</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-02-02T20:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: vs code intelligence</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254584#M309</link>
      <description>&lt;P&gt;If you use the same version of Calcite for all your projects, you could probably use an absolute path to the vscode-data.json file, where ever it is on your machine. You'll have to play around with it and figure out what works, since I don't know anything about your environment.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/vs-code-intelligence/m-p/1254584#M309</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2023-02-02T20:50:57Z</dc:date>
    </item>
  </channel>
</rss>

