mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
refactor(prisma): update language server protocol to use LanguageServerProtocol enum
This commit is contained in:
parent
827fb26966
commit
10a648feb3
@ -1,4 +1,4 @@
|
||||
import { PrismaClient, Prisma, EditorLanguage } from "@prisma/client";
|
||||
import { PrismaClient, Prisma, EditorLanguage, LanguageServerProtocol } from "@prisma/client";
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
@ -10,7 +10,7 @@ const editorLanguageConfigData: Prisma.EditorLanguageConfigCreateInput[] = [
|
||||
fileExtension: ".c",
|
||||
languageServerConfig: {
|
||||
create: {
|
||||
protocol: "ws",
|
||||
protocol: LanguageServerProtocol.ws,
|
||||
hostname: "localhost",
|
||||
port: 4594,
|
||||
path: "/clangd",
|
||||
@ -35,7 +35,7 @@ const editorLanguageConfigData: Prisma.EditorLanguageConfigCreateInput[] = [
|
||||
fileExtension: ".cpp",
|
||||
languageServerConfig: {
|
||||
create: {
|
||||
protocol: "ws",
|
||||
protocol: LanguageServerProtocol.ws,
|
||||
hostname: "localhost",
|
||||
port: 4595,
|
||||
path: "/clangd",
|
||||
|
Loading…
Reference in New Issue
Block a user