lsp
Use when implementing Language Server Protocol features - diagnostics, completions, hover, go-to-definition, and editor integration
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when implementing Language Server Protocol features - diagnostics, completions, hover, go-to-definition, and editor integration
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when writing or editing .omg.md files - the human-first DSL for API specification that compiles to OpenAPI 3.1
Use when building CLI tools with Commander.js - commands, options, arguments, and help text for Node.js command-line applications
Use when parsing or generating Markdown following the CommonMark specification - AST structure, block/inline elements, and extensions
Use when creating GitHub Actions workflows for CI/CD - testing, building, publishing npm packages, and automating repository tasks
Use when working with JSON Schema for validation, OpenAPI schemas, type definitions, and data structure specification
Use when managing npm workspaces monorepos - package dependencies, build ordering, cross-package development, and publishing workflows
| name | lsp |
| description | Use when implementing Language Server Protocol features - diagnostics, completions, hover, go-to-definition, and editor integration |
import { createConnection, TextDocuments, ProposedFeatures } from 'vscode-languageserver/node';
import { TextDocument } from 'vscode-languageserver-textdocument';
const connection = createConnection(ProposedFeatures.all);
const documents = new TextDocuments(TextDocument);
connection.onInitialize((params) => ({
capabilities: {
textDocumentSync: TextDocumentSyncKind.Incremental,
completionProvider: { resolveProvider: true },
hoverProvider: true,
definitionProvider: true,
diagnosticProvider: { interFileDependencies: false, workspaceDiagnostics: false }
}
}));
documents.onDidChangeContent((change) => {
validateDocument(change.document);
});
documents.listen(connection);
connection.listen();
onInitialize responseconnection.sendDiagnostics()| Provider | Purpose | Key Method |
|---|---|---|
completionProvider | Autocomplete suggestions | onCompletion |
hoverProvider | Tooltip on hover | onHover |
definitionProvider | Go-to-definition | onDefinition |
referencesProvider | Find all references | onReferences |
documentSymbolProvider | Outline/symbols | onDocumentSymbol |
codeActionProvider | Quick fixes | onCodeAction |
TextDocument.positionAt(offset) and offsetAt(position) for conversionsnull from handlers when no result availableDiagnosticSeverity.Error | Warning | Information | HintLocation for definitions, LocationLink for richer go-to-definition