Giter Site home page Giter Site logo

VScode JS IntelliSense about vscode_deno HOT 5 CLOSED

denoland avatar denoland commented on May 23, 2024 5
VScode JS IntelliSense

from vscode_deno.

Comments (5)

sayore avatar sayore commented on May 23, 2024 2

This should be a high priority.
It's not reasonable to have 2 Editor instances open to edit a JS file that has to be served.. (One for Deno, one for files to be served(dom based JS))
No offense, just saying.
Trying to add a child tsconfig seems to make the TS compiler crash too.

from vscode_deno.

Slugbat avatar Slugbat commented on May 23, 2024 1

I would agree that this needs to be addressed. In it's current state you must not have this extension enabled if you are writing JavaScript / Typescript code.

Even if you configure the tsconfig.json it does not use the default ECMAScript libs - nor does it use them if specified, in fact this extension disables VSCodes default ability to use ECMAScript lib's?

This extension seems to be broken at the absolute fundamental level in its current state, it disables VSCodes ability to use ECMAScript lib's. Worrying.

from vscode_deno.

 avatar commented on May 23, 2024

Yeah, also experience similar issues. Minimal reproduction:

foo.js:

export function foo(s, n) {
  return 42
}

foo.d.ts (silbing file):

export function foo(s: string, n: number): number

main.ts:

// leaving out @deno-types here, as only affects deno CLI
import { foo } from "./foo.js";

foo("bar", 1)

With deno extension disabled, foo has correct types. With enabled extension, type will be inferred function foo(s: any, n: any): number in VS Code IDE.

VS Code 1.45.1 (built-in TS), vscode-deno 1.24.0

from vscode_deno.

lucacasonato avatar lucacasonato commented on May 23, 2024

The default is now that the extension is disabled. You must manually enable it using "deno.enable" in a .vscode/settings.json file in your project folder.

from vscode_deno.

Pictor13 avatar Pictor13 commented on May 23, 2024

A not for devs passing by:
if Intellisense doesn't work, ensure you run Deno: Restart Language Server from VSCode palette.

If I do not do it manually every time I open VSCode, I get no automatic Intellisense.... 🙄

from vscode_deno.

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.