diff --git a/client.d b/client.d index 38b4233..05fa0b1 100644 --- a/client.d +++ b/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. diff --git a/messages.d b/messages.d index 121adaa..8fc6638 100644 --- a/messages.d +++ b/messages.d @@ -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 } /**