Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy path in JS object (.js) doesn't work #19

Open
sanjarcode opened this issue Sep 5, 2023 · 3 comments
Open

Copy path in JS object (.js) doesn't work #19

sanjarcode opened this issue Sep 5, 2023 · 3 comments
Assignees

Comments

@sanjarcode
Copy link

sanjarcode commented Sep 5, 2023

What's happening

No context option (on right click), in .js files and js code.

Some examples I tried:

const person = {
  name: "Alice",
  age: 20,
};
console.log({
  name: "Alice",
  age: 20,
});
@nidu nidu self-assigned this Mar 16, 2024
@nidu
Copy link
Owner

nidu commented Mar 16, 2024

Hey, sorry, haven't noticed that issue before. If I remember correctly it was done deliberately to not clutter JS context menu since there's already plenty of stuff. Copying with Ctrl+Shift+P should still work there.

@SimonKib
Copy link

@nidu I don't think this is working

I tried with

// alice.ts
const person: IPerson = {
  name: 'Alice',
  age: 20
}

And the toast says "Invalid JSON"

@nidu
Copy link
Owner

nidu commented Mar 21, 2024

Yeah, the extension is parsing JS under the good, so it stops on : IPerson as it's invalid JS. Need to use TS parser instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants