diff --git a/ui/src/components/nodes/Code.tsx b/ui/src/components/nodes/Code.tsx
index bebd8867..f25f1afc 100644
--- a/ui/src/components/nodes/Code.tsx
+++ b/ui/src/components/nodes/Code.tsx
@@ -319,9 +319,7 @@ function MyFloatingToolbar({ id, layout, setLayout }) {
// const pod = useStore(store, (state) => state.pods[id]);
const wsRun = useStore(store, (state) => state.wsRun);
const wsRunChain = useStore(store, (state) => state.wsRunChain);
- const wsRunNoRewrite = useStore(store, (state) => state.wsRunNoRewrite);
// right, bottom
- const getPod = useStore(store, (state) => state.getPod);
const isGuest = useStore(store, (state) => state.role === "GUEST");
const clonePod = useStore(store, (state) => state.clonePod);
const setPaneFocus = useStore(store, (state) => state.setPaneFocus);
@@ -390,17 +388,6 @@ function MyFloatingToolbar({ id, layout, setLayout }) {
)}
- {!isGuest && (
-
- {
- wsRunNoRewrite(id);
- }}
- >
-
-
-
- )}
{
@@ -176,16 +180,16 @@ export function analyzeCode(code: string): CodeAnalysisResult {
`);
query_var.matches(tree.rootNode).forEach((match) => {
- let node = match.captures[0].node;
- annotations.push({
- name: node.text, // the name of the function or variable
+ let node = match.captures[0].node;
+ annotations.push({
+ name: node.text, // the name of the function or variable
type: "vardef",
- startIndex: node.startIndex,
- endIndex: node.endIndex,
- startPosition: node.startPosition,
- endPosition: node.endPosition,
- });
- });
+ startIndex: node.startIndex,
+ endIndex: node.endIndex,
+ startPosition: node.startPosition,
+ endPosition: node.endPosition,
+ });
+ });
// Do the compilation: unbound variable analysis.
let { unbound, errors } = compileModule(tree.rootNode);
diff --git a/ui/src/lib/store/runtimeSlice.tsx b/ui/src/lib/store/runtimeSlice.tsx
index 3096cd06..068c8245 100644
--- a/ui/src/lib/store/runtimeSlice.tsx
+++ b/ui/src/lib/store/runtimeSlice.tsx
@@ -209,7 +209,6 @@ export interface RuntimeSlice {
wsRunScope: (id: string) => void;
wsSendRun: (id: string) => void;
wsRunNext: () => void;
- wsRunNoRewrite: (id: string) => void;
chain: string[];
wsRunChain: (id: string) => void;
wsInterruptKernel: ({ lang }) => void;
@@ -452,32 +451,6 @@ export const createRuntimeSlice: StateCreator = (
get().wsSendRun(id);
}
},
- wsRunNoRewrite: async (id) => {
- if (!get().socket) {
- get().addError({
- type: "error",
- msg: "Runtime not connected",
- });
- return;
- }
- const newcode = get().pods[id].content;
-
- // Run the code in remote kernel.
- get().setRunning(id);
- let pod = get().pods[id];
- get().socket?.send(
- JSON.stringify({
- type: "runCode",
- payload: {
- lang: pod.lang,
- code: newcode,
- raw: true,
- podId: pod.id,
- sessionId: get().sessionId,
- },
- })
- );
- },
wsInterruptKernel: ({ lang }) => {
get().socket!.send(
JSON.stringify({