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 shutdown;
|
||||
bool clearCache;
|
||||
bool symbolLocation;
|
||||
|
||||
try
|
||||
{
|
||||
getopt(args, "cursorPos|c", &cursorPos, "I", &importPaths,
|
||||
"port|p", &port, "help|h", &help, "shutdown", &shutdown,
|
||||
"clearCache", &clearCache);
|
||||
"clearCache", &clearCache, "symbolLocation", &symbolLocation);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -176,6 +177,10 @@ Options:
|
|||
--shutdown
|
||||
Instructs the server to shut down.
|
||||
|
||||
--symbolLocation
|
||||
Get the file name and position that the symbol at the cursor location
|
||||
was defined.
|
||||
|
||||
-IPATH
|
||||
Instructs the server to add PATH to its list of paths searced for
|
||||
imported modules.
|
||||
|
|
|
@ -108,7 +108,9 @@ enum RequestKind : ubyte
|
|||
/// Add import directory to server
|
||||
addImport,
|
||||
/// Shut down the server
|
||||
shutdown
|
||||
shutdown,
|
||||
/// Get declaration location of given symbol
|
||||
symbolLocation
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue