mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-19 07:56:34 +00:00
23 lines
633 B
TypeScript
23 lines
633 B
TypeScript
|
import { EditorLanguage } from "@/types/editor-language";
|
||
|
import { EditorLanguageConfig } from "./editor-language";
|
||
|
import { LanguageServerMetadata } from "@/types/language-server";
|
||
|
|
||
|
const LanguageServerConfig: Record<EditorLanguage, LanguageServerMetadata> = {
|
||
|
[EditorLanguage.C]: {
|
||
|
protocol: "ws",
|
||
|
hostname: "localhost",
|
||
|
port: 4594,
|
||
|
path: "/clangd",
|
||
|
lang: EditorLanguageConfig[EditorLanguage.C],
|
||
|
},
|
||
|
[EditorLanguage.CPP]: {
|
||
|
protocol: "ws",
|
||
|
hostname: "localhost",
|
||
|
port: 4595,
|
||
|
path: "/clangd",
|
||
|
lang: EditorLanguageConfig[EditorLanguage.CPP],
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default LanguageServerConfig;
|