Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
x1unix committed Dec 14, 2024
1 parent 72db620 commit 6427d59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const attachCustomCommands = (editorInstance: monaco.editor.IStandaloneCo
}

const debounced = <TArg>(fn: (arg: TArg) => void, delay: number) => {
let tid: ReturnType<typeof setTimeout> | undefined = undefined
let tid: ReturnType<typeof setTimeout> | undefined

return (arg: TArg) => {
if (tid) {
Expand Down Expand Up @@ -85,7 +85,7 @@ export const registerEditorActions = (editor: monaco.editor.IStandaloneCodeEdito
id: 'share',
label: 'Share Snippet',
contextMenuGroupId: 'navigation',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS ],
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS],
run: () => {
dispatchDebounce(dispatchShareSnippet())
},
Expand Down
6 changes: 3 additions & 3 deletions web/src/store/workspace/dispatchers/snippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,16 @@ export const dispatchShareSnippet = () => async (dispatch: DispatchFn, getState:
type: NotificationType.Info,
canDismiss: true,
title: 'Share snippet',
description: 'You haven\'t made any changes to a snippet. Please edit any file before sharing.',
description: "You haven't made any changes to a snippet. Please edit any file before sharing.",
actions: [
{
label: 'OK',
key: 'ok',
primary: true,
onClick: () => newRemoveNotificationAction(workspaceNotChangedNotificationID),
},
]
})
],
}),
)
return
}
Expand Down

0 comments on commit 6427d59

Please sign in to comment.