Code Monkey home page Code Monkey logo

Comments (11)

lgrammel avatar lgrammel commented on July 20, 2024

Thanks for the bug report!

Can you try the following example?

let a = "123";
f(a);

It should show up as follows:
image

The 3 dots under let are the suggestion indicator. Does it show for you?

Btw, in v1.86.0 the default suggestion level was changed from info (blue squiggly underline) to hint (3 dots) to make the suggestions look less distractive and indicate that they are not problems (many users perceived the squiggly line as such). You can set individual suggestions to different levels in the Visual Studio Code settings.

from js-assistant.

pru-brennaveen avatar pru-brennaveen commented on July 20, 2024

No joy :(

image

The red squiggle on f is just eslint complaining that f is not defined.

from js-assistant.

lgrammel avatar lgrammel commented on July 20, 2024

Do you have a p42.toml in the root folder of your workspace? If so, please check if the refactoring is deactivated there (see https://p42.ai/documentation/p42-for-vscode/configuration#configuration-file for details, specific paths and/or refactorings could be disabled).

If not, can you set "p42.logging.error.enabled": true in your VS Code settings, restart VS Code, open the file that should show suggestions, and then check if any errors are logged in the 'Output' panel (select P42)?

from js-assistant.

pru-brennaveen avatar pru-brennaveen commented on July 20, 2024

I don't have a p42.toml file so no worries there.

I added the setting (although vscode greys it out saying "Unknown Configuration Setting") and restarted vscode. There was nothing logged to the output panel.

The extension appears to be working because vscode shows that it had a 153ms activation time.

from js-assistant.

lgrammel avatar lgrammel commented on July 20, 2024

Thanks for checking! The "unknown configuration setting" is expected (the options are not exposed in the UI).

Just to make sure I'm not missing anything, what is the extension of the JavaScript file that you are working on?

P42 only works with certain extensions such as .js, .ts or .mjs (see https://p42.ai/documentation/p42-for-vscode/faq for all extensions).

from js-assistant.

pru-brennaveen avatar pru-brennaveen commented on July 20, 2024

It is a .js file, but I think I've narrowed down the problem. It appears that the issue is related to multiple folders in the workspace. I created a test.js file with your code and saved it to a folder called p42-tests then ran the following tests:

Test 1

  1. Open folder with vscode
  2. P42 suggestions visible
  3. Save workspace
  4. Close and re-open workspace
  5. Suggestions still visible

Test 2

  1. Open folder with vscode
  2. P42 suggestions visible
  3. Add another folder to workspace
  4. Suggestions disappear
  5. Save workspace
  6. Close and reopen workspace
  7. Suggestions still not visible

from js-assistant.

lgrammel avatar lgrammel commented on July 20, 2024

Thanks for the investigation! I'll take a look at the multiple folders issue today and see if I can confirm & fix it.

from js-assistant.

lgrammel avatar lgrammel commented on July 20, 2024

Update: I have reproduced the issue, now working on a fix.

from js-assistant.

lgrammel avatar lgrammel commented on July 20, 2024

@pru-brennaveen I have just released version 1.86.1, which adds support for multiple workspace folders. Please re-open this issue if you still encounter the bug in 1.86.1 or higher. Thanks again for the bug report!

from js-assistant.

pru-brennaveen avatar pru-brennaveen commented on July 20, 2024

Works! You are awesome, thanks for the super quick response and a great addon!

from js-assistant.

lgrammel avatar lgrammel commented on July 20, 2024

Thanks! I hope you find the extension helpful!

from js-assistant.

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.