question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to get intelliSense for variables in petite/vue?

See original GitHub issue

Is it technically possible to get intelliSense between javascript variables and functions in the script tag and the variables used in the html?

<script type="module">
      import { createApp, reactive } from "https://unpkg.com/petite-vue?module";

      const store = reactive({
        count: 0,
        inc() {
          this.count++;
        },
      });

      // manipulate it here
      store.inc();

      createApp({
        // share it with app scopes
        store,
      }).mount();
    </script>

    <div v-scope="{ localCount: 0 }">
      <p>{{ store.count }}</p>
      <button @click="store.inc">increment</button>
    </div>

When I hover in my p tag over store is it technically possible to get some feedback when hovering over as we would in an js file or .vue file?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
johnsoncodehkcommented, Jul 10, 2022

This is a known issue, please track #1284.

1reaction
johnsoncodehkcommented, Jul 8, 2022

Thanks, I was now googeling around an was able to disable vscode.html-language-features which got rid of the error which is good now, but of course all the native autosuggestions for native attributes is now gone, is there any particular step I can take to bring them back trough Volar, or does it need to be reimplemented inside the Volar codebase?

It should be supported in 0.38.3, please let me know if anything not working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Little Taste of Petite-Vue - nystudio107
Petite-Vue is a tiny 5.8kb JavaScript library that gives you the power of Vue.js, but slimmed down & optimized for sprinkling small bits...
Read more >
Vue IntelliSense in VSCode - ITNEXT
I find stand-alone “Vue components” that have a single purpose that you can install from ... This is all possible with the VSCode...
Read more >
Entry Form in Craft CMS with GraphQL and petite-vue
First, we need to be able to successfully capture the submitted data so we can pass it into a GraphQL request and save...
Read more >
vue-tsc | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Unpopular opinion? I think Vue is heading in the wrong ...
I used to be able to point to React and make fun of it for naming things ... added a comment, now no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found