Skip to content

Commit

Permalink
Make sure to actually execute async code
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Jun 7, 2024
1 parent 39816d4 commit c5b1f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/codeMirror/useTabbedCodeMirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function useTabbedCodeMirror({
setFilesHaveChanged(true);

// eslint-disable-next-line @typescript-eslint/no-floating-promises
async () => {
(async () => {
if (inferFiletype(oldFileName) === "python") {
await lspClient.deleteFile(lspPathPrefix + oldFileName);
}
Expand All @@ -195,7 +195,7 @@ export function useTabbedCodeMirror({
updatedFiles[fileIndex].ref.editorState.doc.toString(),
);
}
};
})();
}

function selectFile(fileName: string) {
Expand Down

0 comments on commit c5b1f62

Please sign in to comment.