diff options
| author | Lucas Spits <spits.lucas@gmail.com> | 2019-03-11 21:22:54 +0100 |
|---|---|---|
| committer | Lucas Spits <spits.lucas@gmail.com> | 2019-03-11 21:22:54 +0100 |
| commit | 9fe3b36bdae52dabecc3989161162fc6d2a3dccb (patch) | |
| tree | 63300569a9ae0aa0b4fab521890be8fe376db700 /editors/code/src | |
| parent | 915c079e26a8da890d03b0a4a0960b06d45e66e2 (diff) | |
| download | rust-9fe3b36bdae52dabecc3989161162fc6d2a3dccb.tar.gz rust-9fe3b36bdae52dabecc3989161162fc6d2a3dccb.zip | |
Applied code style of ``npm run fix``
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/server.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts index b3a874b3815..f319f148a34 100644 --- a/editors/code/src/server.ts +++ b/editors/code/src/server.ts @@ -12,19 +12,17 @@ export class Server { public static start( notificationHandlers: Iterable<[string, lc.GenericNotificationHandler]> ) { - // '.' Is the fallback if no folder is open // TODO?: Workspace folders support Uri's (eg: file://test.txt). It might be a good idea to test if the uri points to a file. let folder: string = '.'; if (workspace.workspaceFolders !== undefined) { + folder = workspace.workspaceFolders[0].uri.fsPath.toString(); - folder = workspace - .workspaceFolders[0].uri.fsPath - .toString(); - if (workspace.workspaceFolders.length > 1) { // Tell the user that we do not support multi-root workspaces yet - window.showWarningMessage('Multi-root workspaces are not currently supported'); + window.showWarningMessage( + 'Multi-root workspaces are not currently supported' + ); } } |
