This commit is contained in:
Ruben Fiszel
2024-08-22 17:28:09 +02:00
parent 7b1ea57924
commit cbc548ed00
2 changed files with 3 additions and 3 deletions

View File

@@ -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') {

View File

@@ -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(