chore(config, types): remove deprecated language server and editor language files

This commit is contained in:
cfngc4594 2025-03-16 15:39:07 +08:00
parent c1999bd386
commit ff8eff5891
3 changed files with 0 additions and 39 deletions

View File

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

View File

@ -1,8 +0,0 @@
import { EditorLanguage } from "@prisma/client";
export type EditorLanguageMetadata = {
id: EditorLanguage,
label: string;
fileName: string;
fileExtension: string;
};

View File

@ -1,9 +0,0 @@
import { EditorLanguageMetadata } from "./editor-language";
export type LanguageServerMetadata = {
protocol: string;
hostname: string;
port: number | null;
path: string | null;
lang: EditorLanguageMetadata;
};