Comments (5)
Maybe the workspace folders(s) could be used? https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#workspace_workspaceFolders
from unified-language-server.
Isn’t it set to process.cwd()
by default? Typically the client determines the cwd
.
Also does it make sense if unified-engine
detects this? I imagine a good cwd
to set would be the directory containing the configuration file.
from unified-language-server.
Yes, but the value provided by process.cwd
does not always make sense.
Atom sets it to /
(which is why remark-parse
can’t be resolved and why linter-remark
doesn’t work with the PR)
I’m also guessing the Node.js language server runs in a cwd
that is different from the “workspace”, as they‘re separate processed?
unified-engine
has an option for it: options.cwd
, which can be given the CWD. This can (should?) be set too.
I imagine a good cwd to set would be the directory containing the configuration file.
Files are found first, configuration files are found from them. That means that there can be a) multiple configuration files, b) none, c) one in say, /Users/
from unified-language-server.
Nice that LSP also has that. For Atom, the earlier linked lines (https://github.com/unifiedjs/unified-engine-atom/blob/605326d08a6d04b66aa8abf3143313f24c507699/index.js#L44-L53) uses something like that too.
from unified-language-server.
Yes, I think using rootUri
of the InitializeParams
should be used.
from unified-language-server.
Related Issues (20)
- Automated Testing HOT 3
- Implement unified-engine HOT 2
- Add unified-language-server to vim-lsp-settings HOT 4
- Add documentation for more editors HOT 2
- Add test for broken config HOT 10
- Smarter file processing HOT 7
- Support vfile message `note` HOT 4
- The language server cwd is not a good fallback for `unified-engine` cwd HOT 7
- Incremental processing HOT 3
- Don’t perform actions when no configuration is found. HOT 21
- Fallback to global or bundled remark version HOT 4
- Make sure input URIs don’t change HOT 2
- Rewrite global console to output to the language server connection console HOT 6
- Allows defaults to `CWD` should support passing `additionalPaths` HOT 16
- Mark single expected suggestion as preferred HOT 2
- Clean stack traces HOT 5
- Support node ancesters via a configuration option HOT 3
- jsonrpc error thrown HOT 2
- Ability to specify configuration file as command-line argument HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unified-language-server.