File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
lsp/src/Language/LSP/Server Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,6 @@ initializeRequestHandler ServerDefinition{..} vfs sendFunc req = do
87
87
rootDir = getFirst $ foldMap First [ params ^. LSP. rootUri >>= uriToFilePath
88
88
, params ^. LSP. rootPath <&> T. unpack ]
89
89
90
- liftIO $ case rootDir of
91
- Nothing -> return ()
92
- Just dir -> do
93
- debugM " lsp.initializeRequestHandler" $ " Setting current dir to project root:" ++ dir
94
- unless (null dir) $ setCurrentDirectory dir
95
-
96
90
let initialWfs = case params ^. LSP. workspaceFolders of
97
91
Just (List xs) -> xs
98
92
Nothing -> []
@@ -128,7 +122,7 @@ initializeRequestHandler ServerDefinition{..} vfs sendFunc req = do
128
122
where
129
123
makeResponseMessage rid result = ResponseMessage " 2.0" (Just rid) (Right result)
130
124
makeResponseError origId err = ResponseMessage " 2.0" (Just origId) (Left err)
131
-
125
+
132
126
initializeErrorHandler :: (ResponseError -> IO () ) -> E. SomeException -> IO (Maybe a )
133
127
initializeErrorHandler sendResp e = do
134
128
sendResp $ ResponseError InternalError msg Nothing
You can’t perform that action at this time.
0 commit comments