mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
chore(config, types): remove deprecated language server and editor language files
This commit is contained in:
parent
c1999bd386
commit
ff8eff5891
@ -1,22 +0,0 @@
|
|||||||
import { EditorLanguage } from "@prisma/client";
|
|
||||||
import { EditorLanguageConfig } from "./editor-language";
|
|
||||||
import { LanguageServerMetadata } from "@/types/language-server";
|
|
||||||
|
|
||||||
const LanguageServerConfig: Record<EditorLanguage, LanguageServerMetadata> = {
|
|
||||||
[EditorLanguage.c]: {
|
|
||||||
protocol: process.env.NEXT_PUBLIC_LSP_C_PROTOCOL || "ws",
|
|
||||||
hostname: process.env.NEXT_PUBLIC_LSP_C_HOSTNAME || "localhost",
|
|
||||||
port: process.env.NEXT_PUBLIC_LSP_C_PORT ? parseInt(process.env.NEXT_PUBLIC_LSP_C_PORT, 10) : 4594,
|
|
||||||
path: process.env.NEXT_PUBLIC_LSP_C_PATH || "/clangd",
|
|
||||||
lang: EditorLanguageConfig[EditorLanguage.c],
|
|
||||||
},
|
|
||||||
[EditorLanguage.cpp]: {
|
|
||||||
protocol: process.env.NEXT_PUBLIC_LSP_CPP_PROTOCOL || "ws",
|
|
||||||
hostname: process.env.NEXT_PUBLIC_LSP_CPP_HOSTNAME || "localhost",
|
|
||||||
port: process.env.NEXT_PUBLIC_LSP_CPP_PORT ? parseInt(process.env.NEXT_PUBLIC_LSP_CPP_PORT, 10) : 4595,
|
|
||||||
path: process.env.NEXT_PUBLIC_LSP_CPP_PATH || "/clangd",
|
|
||||||
lang: EditorLanguageConfig[EditorLanguage.cpp],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
export default LanguageServerConfig;
|
|
@ -1,8 +0,0 @@
|
|||||||
import { EditorLanguage } from "@prisma/client";
|
|
||||||
|
|
||||||
export type EditorLanguageMetadata = {
|
|
||||||
id: EditorLanguage,
|
|
||||||
label: string;
|
|
||||||
fileName: string;
|
|
||||||
fileExtension: string;
|
|
||||||
};
|
|
@ -1,9 +0,0 @@
|
|||||||
import { EditorLanguageMetadata } from "./editor-language";
|
|
||||||
|
|
||||||
export type LanguageServerMetadata = {
|
|
||||||
protocol: string;
|
|
||||||
hostname: string;
|
|
||||||
port: number | null;
|
|
||||||
path: string | null;
|
|
||||||
lang: EditorLanguageMetadata;
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user