diff --git a/src/vite/editor.ts b/src/vite/editor.ts index 81a2265..50816fb 100644 --- a/src/vite/editor.ts +++ b/src/vite/editor.ts @@ -26,7 +26,7 @@ export type EditorConfig = { export const DEFAULT_EDITOR_CONFIG: EditorConfig = { name: "VSCode", open: (path, lineNumber) => { - exec(`code -g "${normalizePath(path)}${lineNumber ? `:${lineNumber}` : ""}"`) + exec(`code -g "${normalizePath(path).replaceAll("$", "\\$")}${lineNumber ? `:${lineNumber}` : ""}"`) }, } diff --git a/test-apps/remix-vite/app/routes/_layout.tests.$id.edit.new.$test.$wildcard.test/route.tsx b/test-apps/remix-vite/app/routes/_layout.tests.$id.edit.new.$test.$wildcard.test/route.tsx new file mode 100644 index 0000000..7b5b9c8 --- /dev/null +++ b/test-apps/remix-vite/app/routes/_layout.tests.$id.edit.new.$test.$wildcard.test/route.tsx @@ -0,0 +1,133 @@ +import type { ActionFunctionArgs } from "@remix-run/node"; +import { json, type LoaderFunctionArgs } from "@remix-run/node"; +import type { MetaFunction } from "@remix-run/node"; +import { Link, useFetcher, useLoaderData, useSubmit } from "@remix-run/react"; + +export const meta: MetaFunction = () => { + return [ + { title: "New Remix App" }, + { name: "description", content: "Welcome to Remix!" }, + ]; +}; + +export const loader = async ({ request }: LoaderFunctionArgs) => { + await new Promise((resolve) => setTimeout(resolve, 2000)); + return json({ + should: "work", + with: { + nested: { + objects: { + really: { + deep: "inside", + array: [ + "this", + "is", + "a", + "really", + "long", + "array", + "that", + "should", + "be", + "truncated", + ], + }, + }, + }, + }, + }, { headers: { "Set-Cookie": "test=1; Path=/; HttpOnly; Secure", "Cache-Control": "max-age=20"}}); +}; + +export const action = async ({ request }: ActionFunctionArgs) => { + return new Response(JSON.stringify({ test: "died" })); +}; + +export default function IndexRoute() { + const string = useLoaderData(); + const lFetcher = useFetcher(); + const lFetcher2 = useFetcher(); + const pFetcher = useFetcher(); + const submit = useSubmit(); + const data = new FormData(); + data.append("test", "test"); + return ( +
+

Welcome to Remix 5

+ {" "} + + + + + + + Login + +
+ ); +}