Clean up vite build warnings (#1332)
* WIP Clean up vite build warnings Fixes #1014 * Fix lint * Fix React Hooks dependencies Clean up, use void when await not straightforward * Clean up * Fix missing deconstruction
This commit is contained in:
@ -76,10 +76,12 @@ export const TextEditor = ({
|
||||
const fromServer: FromServer = FromServer.create()
|
||||
const client = new Client(fromServer, intoServer)
|
||||
if (!TEST) {
|
||||
Server.initialize(intoServer, fromServer).then((lspServer) => {
|
||||
lspServer.start()
|
||||
setIsLSPServerReady(true)
|
||||
})
|
||||
Server.initialize(intoServer, fromServer)
|
||||
.then((lspServer) => {
|
||||
void lspServer.start()
|
||||
setIsLSPServerReady(true)
|
||||
})
|
||||
.catch((e) => console.log(e))
|
||||
}
|
||||
|
||||
const lspClient = new LanguageServerClient({ client })
|
||||
@ -151,7 +153,7 @@ export const TextEditor = ({
|
||||
key: editorShortcutMeta.convertToVariable.codeMirror,
|
||||
run: () => {
|
||||
if (convertEnabled) {
|
||||
convertCallback()
|
||||
void convertCallback()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user