mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +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();
|
const prisma = new PrismaClient();
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ const editorLanguageConfigData: Prisma.EditorLanguageConfigCreateInput[] = [
|
|||||||
fileExtension: ".c",
|
fileExtension: ".c",
|
||||||
languageServerConfig: {
|
languageServerConfig: {
|
||||||
create: {
|
create: {
|
||||||
protocol: "ws",
|
protocol: LanguageServerProtocol.ws,
|
||||||
hostname: "localhost",
|
hostname: "localhost",
|
||||||
port: 4594,
|
port: 4594,
|
||||||
path: "/clangd",
|
path: "/clangd",
|
||||||
@ -35,7 +35,7 @@ const editorLanguageConfigData: Prisma.EditorLanguageConfigCreateInput[] = [
|
|||||||
fileExtension: ".cpp",
|
fileExtension: ".cpp",
|
||||||
languageServerConfig: {
|
languageServerConfig: {
|
||||||
create: {
|
create: {
|
||||||
protocol: "ws",
|
protocol: LanguageServerProtocol.ws,
|
||||||
hostname: "localhost",
|
hostname: "localhost",
|
||||||
port: 4595,
|
port: 4595,
|
||||||
path: "/clangd",
|
path: "/clangd",
|
||||||
|
Loading…
Reference in New Issue
Block a user