diff options
author | Lucas Spits <[email protected]> | 2019-03-11 20:22:54 +0000 |
---|---|---|
committer | Lucas Spits <[email protected]> | 2019-03-11 20:22:54 +0000 |
commit | 9fe3b36bdae52dabecc3989161162fc6d2a3dccb (patch) | |
tree | 63300569a9ae0aa0b4fab521890be8fe376db700 /editors/code/src | |
parent | 915c079e26a8da890d03b0a4a0960b06d45e66e2 (diff) |
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 b3a874b38..f319f148a 100644 --- a/editors/code/src/server.ts +++ b/editors/code/src/server.ts | |||
@@ -12,19 +12,17 @@ export class Server { | |||
12 | public static start( | 12 | public static start( |
13 | notificationHandlers: Iterable<[string, lc.GenericNotificationHandler]> | 13 | notificationHandlers: Iterable<[string, lc.GenericNotificationHandler]> |
14 | ) { | 14 | ) { |
15 | |||
16 | // '.' Is the fallback if no folder is open | 15 | // '.' Is the fallback if no folder is open |
17 | // 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. | 16 | // 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. |
18 | let folder: string = '.'; | 17 | let folder: string = '.'; |
19 | if (workspace.workspaceFolders !== undefined) { | 18 | if (workspace.workspaceFolders !== undefined) { |
19 | folder = workspace.workspaceFolders[0].uri.fsPath.toString(); | ||
20 | 20 | ||
21 | folder = workspace | ||
22 | .workspaceFolders[0].uri.fsPath | ||
23 | .toString(); | ||
24 | |||
25 | if (workspace.workspaceFolders.length > 1) { | 21 | if (workspace.workspaceFolders.length > 1) { |
26 | // Tell the user that we do not support multi-root workspaces yet | 22 | // Tell the user that we do not support multi-root workspaces yet |
27 | window.showWarningMessage('Multi-root workspaces are not currently supported'); | 23 | window.showWarningMessage( |
24 | 'Multi-root workspaces are not currently supported' | ||
25 | ); | ||
28 | } | 26 | } |
29 | } | 27 | } |
30 | 28 | ||