lightrail icon indicating copy to clipboard operation
lightrail copied to clipboard

Edit VSCode will delete large parts of a file with // ...

Open shanelle627 opened this issue 1 year ago • 0 comments

OSX

Command: " Duplicate this to the left with icon={faDiscord} and redirecting to a dummy Discord link /VSCode-current-selection /VSCode-current-file"

Response:

import { faAnglesDown } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Manrope } from "next/font/google";
import Image from "next/image";

const manrope = Manrope({ subsets: ["latin"] });

export default function Home() {
  return (
    <main
      className={`bg-neutral-950 text-neutral-50 min-h-screen ${manrope.className}`}
    >
      <nav className="sticky top-0 z-10 bg-neutral-50 bg-opacity-5 backdrop-filter backdrop-blur-lg  w-full ">
        <div className="max-w-5xl mx-auto px-4">
          <div className="flex items-center justify-between h-16">
            <span className="inline-flex flex-row items-center gap-2 text-3xl">
              <Image
                width={36}
                height={36}
                src={"/logo.png"}
                alt="Lightrail Logo"
              />
              Lightrail{" "}
              <div className="text-xs px-2 py-0.5 rounded-full bg-neutral-50 text-neutral-950">
                alpha
              </div>
            </span>
            <div className="flex space-x-4">
              <a href="https://github.com/lightrail-ai/lightrail">
                <FontAwesomeIcon icon={faGithub} size={"2x"} />
              </a>
              <a href="https://discord.com">
                <FontAwesomeIcon icon={faDiscord} size={"2x"} />
              </a>
            </div>
          </div>
        </div>
      </nav>
      /* ... rest of the file... */
    </main>
  );
}

Doesn't recognize /* rest of file*/ and deletes it

image

shanelle627 avatar Sep 14 '23 17:09 shanelle627