|
@@ -6,6 +6,7 @@ import { EOL } from "os"
|
|
|
|
|
|
|
|
export const LSPCommand = cmd({
|
|
export const LSPCommand = cmd({
|
|
|
command: "lsp",
|
|
command: "lsp",
|
|
|
|
|
+ describe: "LSP debugging utilities",
|
|
|
builder: (yargs) =>
|
|
builder: (yargs) =>
|
|
|
yargs.command(DiagnosticsCommand).command(SymbolsCommand).command(DocumentSymbolsCommand).demandCommand(),
|
|
yargs.command(DiagnosticsCommand).command(SymbolsCommand).command(DocumentSymbolsCommand).demandCommand(),
|
|
|
async handler() {},
|
|
async handler() {},
|
|
@@ -13,6 +14,7 @@ export const LSPCommand = cmd({
|
|
|
|
|
|
|
|
const DiagnosticsCommand = cmd({
|
|
const DiagnosticsCommand = cmd({
|
|
|
command: "diagnostics <file>",
|
|
command: "diagnostics <file>",
|
|
|
|
|
+ describe: "get diagnostics for a file",
|
|
|
builder: (yargs) => yargs.positional("file", { type: "string", demandOption: true }),
|
|
builder: (yargs) => yargs.positional("file", { type: "string", demandOption: true }),
|
|
|
async handler(args) {
|
|
async handler(args) {
|
|
|
await bootstrap(process.cwd(), async () => {
|
|
await bootstrap(process.cwd(), async () => {
|
|
@@ -25,6 +27,7 @@ const DiagnosticsCommand = cmd({
|
|
|
|
|
|
|
|
export const SymbolsCommand = cmd({
|
|
export const SymbolsCommand = cmd({
|
|
|
command: "symbols <query>",
|
|
command: "symbols <query>",
|
|
|
|
|
+ describe: "search workspace symbols",
|
|
|
builder: (yargs) => yargs.positional("query", { type: "string", demandOption: true }),
|
|
builder: (yargs) => yargs.positional("query", { type: "string", demandOption: true }),
|
|
|
async handler(args) {
|
|
async handler(args) {
|
|
|
await bootstrap(process.cwd(), async () => {
|
|
await bootstrap(process.cwd(), async () => {
|
|
@@ -37,6 +40,7 @@ export const SymbolsCommand = cmd({
|
|
|
|
|
|
|
|
export const DocumentSymbolsCommand = cmd({
|
|
export const DocumentSymbolsCommand = cmd({
|
|
|
command: "document-symbols <uri>",
|
|
command: "document-symbols <uri>",
|
|
|
|
|
+ describe: "get symbols from a document",
|
|
|
builder: (yargs) => yargs.positional("uri", { type: "string", demandOption: true }),
|
|
builder: (yargs) => yargs.positional("uri", { type: "string", demandOption: true }),
|
|
|
async handler(args) {
|
|
async handler(args) {
|
|
|
await bootstrap(process.cwd(), async () => {
|
|
await bootstrap(process.cwd(), async () => {
|