Fixes #175: Mark rootPath as optional

This commit is contained in:
Dirk Baeumer 2017-02-08 12:03:33 +01:00
parent 1bcd448c87
commit 8d83f270cf

View file

@ -593,11 +593,12 @@ interface InitializeParams {
*
* @deprecated in favour of rootUri.
*/
rootPath: string | null;
rootPath?: string | null;
/**
* The rootUri of the workspace. Is null if no
* folder is open.
* folder is open. If both `rootPath` and `rootUri` are set
* `rootUri` wins.
*/
rootUri: DocumentUri | null;