Giter Club home page Giter Club logo

Comments (4)

johnsoncodehk avatar johnsoncodehk commented on April 27, 2024 1

Thank you very much for your survey! I'll forward this to Svelte language tools maintainers.

from typescript.

sheetalkamat avatar sheetalkamat commented on April 27, 2024

I dont see any issues. I am using typescript nightly. Did i miss something.

inferredProject.mp4

from typescript.

johnsoncodehk avatar johnsoncodehk commented on April 27, 2024

I found that you may also need to install https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode to reproduce the issue.

The triggering method for typescript nightly is slightly different. After reopening HelloWorld.vue, you need to execute the Restart TS Server command.

tsserver.log.zip

2024-03-05.10.50.38.mov

System info:

Version: 1.87.0
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Date: 2024-02-27T23:42:51.279Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.1.0

from typescript.

sheetalkamat avatar sheetalkamat commented on April 27, 2024

@johnsoncodehk after investigating this it seems the issue with the plugin https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode

This is what i did to repro the issue:

  1. Open App.vue
  2. Open Main.ts
  3. And this is where things go off rail because the request goes to ts LS instead of the plugin.

After 2, when editor invokes the getErr request it fails as there is some issue with the d.ts added by that plugin but its script info is not present.
After that tsserver receives request:

    {
      "seq": 41,
      "type": "request",
      "command": "configurePlugin",
      "arguments": {
        "pluginName": "typescript-svelte-plugin",
        "configuration": {
          "enable": false
        }
      }
    }

This is where i think plugin reverts the LS to original ts LS and not just making itself pass through. That results in the vue plugin to be not in picture any more for the error requests.

from typescript.

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.