Code Actions Lightbulb just jumps to top of code file

Problem description:
When I hover over a function in my code and the code actions lightbulb pops up and I click it, it just jumps to the top of the page.

Expected behavior:
Open a little box that lets you do code actions. (e.g. move to new file, convert to arrow function, etc.)

Actual behavior:
Instead clicking it just jumps scrolls to the top of my source file.

Steps to reproduce:

  1. Fork (or make a function in a JS file that doesn’t use arrow functions/isnt in its own file/etc.)
  2. place cursor on the function updateHighlight’s name
  3. wait for a yellow lightbulb icon to pop up and click it
  4. page jumps to top of source file

Bug appears at this link: (when in Editor, not cover page)

Windows 11 Home, Microsoft Edge version 114.0.1823.82 (Official build) (64-bit)

I don’t know many people who use that feature but the functionality shouldn’t be like that.

1 Like

Here is a video demonstration:

script.js - Crafting - Replit and 2 more pages - Personal - Microsoft_ Edge 2023-07-17 11-44-53

1 Like

Maybe it is pointing you to the code which can be better?

1 Like

What do you mean? The button is supposed to pop up a list of suggested actions (which can be viewed just fine by right-clicking the function and pressing Code Actions.

Hey @boston2029!

I’m not able to see the light bulb pop up when I put the cursor over the updateHighlight function. If you run kill 1 in the shell and refresh the page, does the light bulb still come up for that function?

Spoke too soon, I was able to repro!


I have sent this to the team and will let you know once we have an update.


Update: I just tried it again, and now it is working fine.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.