]> git.lizzy.rs Git - rust.git/commitdiff
Applied code style of ``npm run fix``
authorLucas Spits <spits.lucas@gmail.com>
Mon, 11 Mar 2019 20:22:54 +0000 (21:22 +0100)
committerLucas Spits <spits.lucas@gmail.com>
Mon, 11 Mar 2019 20:22:54 +0000 (21:22 +0100)
editors/code/src/server.ts

index b3a874b381518e8dfcf9abf8ed4c585c74e0d4ec..f319f148a341fe624327dd28859709e74e0df2ad 100644 (file)
@@ -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'
+                );
             }
         }