Code Monkey home page Code Monkey logo

Comments (4)

trusktr avatar trusktr commented on June 25, 2024

For now, I can set language mode to HTML to get some color (but no type checking, etc). Once I open other files (f.e. none-astro files such as .ts files) the intellisense works fine, so another workaround is to move as much code as I can into components instead of in the Astro files.

from language-tools.

trusktr avatar trusktr commented on June 25, 2024

It looks like the Astro plugin also gets in the way of TypeScript working normally with non-astro files. For example here TypeScript does not find type definitions for a package that ships with type defs built in:

Screenshot 2024-04-22 at 1 55 57 AM

If I uninstall the Astro plugin and restart TS server, the problem goes away (going to definition on the module name will take me to @lume/element's code in node_modules).

from language-tools.

Princesseuh avatar Princesseuh commented on June 25, 2024

On the first screenshot you shared, the extension looks disabled (it's grayed out)

Everything looks fine to me:
image
When following your steps.

For your second problem, I cannot help without a reproduction.

from language-tools.

Princesseuh avatar Princesseuh commented on June 25, 2024

Closing due to inactivity.

from language-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.