Initial work on #26
This commit is contained in:
parent
2635ec5c60
commit
7fd5fca74d
7
client.d
7
client.d
|
@ -40,12 +40,13 @@ int main(string[] args)
|
||||||
bool help;
|
bool help;
|
||||||
bool shutdown;
|
bool shutdown;
|
||||||
bool clearCache;
|
bool clearCache;
|
||||||
|
bool symbolLocation;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
getopt(args, "cursorPos|c", &cursorPos, "I", &importPaths,
|
getopt(args, "cursorPos|c", &cursorPos, "I", &importPaths,
|
||||||
"port|p", &port, "help|h", &help, "shutdown", &shutdown,
|
"port|p", &port, "help|h", &help, "shutdown", &shutdown,
|
||||||
"clearCache", &clearCache);
|
"clearCache", &clearCache, "symbolLocation", &symbolLocation);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -176,6 +177,10 @@ Options:
|
||||||
--shutdown
|
--shutdown
|
||||||
Instructs the server to shut down.
|
Instructs the server to shut down.
|
||||||
|
|
||||||
|
--symbolLocation
|
||||||
|
Get the file name and position that the symbol at the cursor location
|
||||||
|
was defined.
|
||||||
|
|
||||||
-IPATH
|
-IPATH
|
||||||
Instructs the server to add PATH to its list of paths searced for
|
Instructs the server to add PATH to its list of paths searced for
|
||||||
imported modules.
|
imported modules.
|
||||||
|
|
|
@ -108,7 +108,9 @@ enum RequestKind : ubyte
|
||||||
/// Add import directory to server
|
/// Add import directory to server
|
||||||
addImport,
|
addImport,
|
||||||
/// Shut down the server
|
/// Shut down the server
|
||||||
shutdown
|
shutdown,
|
||||||
|
/// Get declaration location of given symbol
|
||||||
|
symbolLocation
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue