nit lsp
This commit is contained in:
@@ -803,7 +803,7 @@
|
||||
connectToLanguageServer(
|
||||
`${wsProtocol}://${window.location.host}/ws/ruff`,
|
||||
'ruff',
|
||||
{},
|
||||
{ 'ruff.lint.select': ['E', 'F'], extendSelect: ['I'], 'ruff.logLevel': 'debug' },
|
||||
undefined
|
||||
)
|
||||
} else if (lang === 'go') {
|
||||
|
||||
@@ -81,7 +81,7 @@ class DiagnosticLS(LanguageServerWebSocketHandler):
|
||||
|
||||
|
||||
class RuffLS(LanguageServerWebSocketHandler):
|
||||
procargs = ["ruff"]
|
||||
procargs = ["ruff", "server", "--preview"]
|
||||
|
||||
|
||||
class DenoLS(LanguageServerWebSocketHandler):
|
||||
@@ -105,7 +105,7 @@ if __name__ == "__main__":
|
||||
go_mod_path = os.path.join(monaco_path, "go.mod")
|
||||
if not os.path.exists(go_mod_path):
|
||||
f = open(go_mod_path, "w")
|
||||
f.write("module mymod\ngo 1.19")
|
||||
f.write("module mymod\ngo 1.22")
|
||||
f.close()
|
||||
port = int(os.environ.get("PORT", "3001"))
|
||||
app = web.Application(
|
||||
|
||||
Reference in New Issue
Block a user