From 0dafb06e8695cad34cba3d5461d3068c72cd96fa Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 23 Feb 2025 13:52:06 +0800 Subject: [PATCH] feat(lsp): add configuration for supported language servers --- src/config/language-server.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/config/language-server.ts diff --git a/src/config/language-server.ts b/src/config/language-server.ts new file mode 100644 index 0000000..8d8caa0 --- /dev/null +++ b/src/config/language-server.ts @@ -0,0 +1,29 @@ +import { SupportedLanguage } from '@/constants/language' + +export interface LanguageServerConfig { + id: SupportedLanguage + label: string + hostname: string + protocol: string + port: number | null + path: string | null +} + +export const SUPPORTED_LANGUAGE_SERVERS: LanguageServerConfig[] = [ + { + id: "c", + label: "C", + protocol: "http", + hostname: "localhost", + port: 4594, + path: "/clangd" + }, + { + id: "cpp", + label: "C++", + protocol: "http", + hostname: "localhost", + port: 4595, + path: "/clangd" + } +]