K-Language LSP Server
K-Language(.k, .kh, .kql) 파일을 위한 VS Code Language Server Protocol 확장.
기능
| 기능 |
설명 |
단축키 |
| 구문 강조 |
K 예약어, KQL 키워드, 타입, 문자열, 숫자, 주석, 전처리기 |
- |
| 자동완성 |
예약어, KQL 키워드, 내장 함수(70+), 모듈, 메서드 |
Ctrl+Space |
| 진단 |
fault-tolerant 파서가 구문 에러를 빨간 밑줄로 표시 |
자동 |
| 호버 |
함수 시그니처, 타입 정보, 클래스 멤버, 내장 함수 문서 |
마우스 올리기 |
| 정의로 이동 |
함수/클래스/변수/typedef 정의 위치 (cross-file 지원) |
F12 |
| 포매팅 |
들여쓰기 정리 (KQL 블록은 원본 유지) |
Alt+Shift+F |
제한사항
- 진단: 기본 구문 에러만 감지 (타입 검사, 미정의 변수 경고 등은 미구현)
- 자동완성:
. 뒤 타입 추론은 심볼 테이블 기반이며, 타입 추론 실패 시 모든 내장 타입 메서드를 표시
K-Language LSP Server (English)
A VS Code Language Server Protocol extension for K-Language (.k, .kh, .kql) files.
Features
| Feature |
Description |
Shortcut |
| Syntax Highlighting |
K reserved words, KQL keywords, types, strings, numbers, comments, preprocessor |
- |
| Auto-completion |
Reserved words, KQL keywords, built-in functions (70+), modules, methods |
Ctrl+Space |
| Diagnostics |
Fault-tolerant parser underlines syntax errors in red |
Auto |
| Hover |
Function signatures, type info, class members, built-in function docs |
Mouse hover |
| Go to Definition |
Jump to function/class/variable/typedef definitions (cross-file support) |
F12 |
| Formatting |
Indent cleanup (KQL blocks preserve original formatting) |
Alt+Shift+F |
Limitations
- Diagnostics: Only basic syntax errors are detected (type checking, undefined variable warnings, etc. are not implemented)
- Auto-completion: Type inference after
. is symbol-table-based; when inference fails, all built-in type methods are shown
| |