Have MSSQL extension wait for SqlToolsService ready before finishing activation (#7087)

* Have mssql activate wait for service to be ready before returning

* Change to using deferred promise

* Await on server ready

* Finish removing old code

* More cleanup

* Go back to exposed promise API

* Make property readonly

* Add missing file

* Add back in deleted stuff

* Go back to awaiting
This commit is contained in:
Charles Gagnon
2019-09-18 11:41:37 -07:00
committed by GitHub
parent 86a9a2c069
commit 373828d76f
3 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<IExten
registerBooksWidget(bookContributionProvider);
// initalize client last so we don't have features stuck behind it
// initialize client last so we don't have features stuck behind it
const server = new SqlToolsServer();
context.subscriptions.push(server);
await server.start(appContext);