mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
feat(lsp): add configuration for supported language servers
This commit is contained in:
parent
14330323af
commit
0dafb06e86
29
src/config/language-server.ts
Normal file
29
src/config/language-server.ts
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user