Comments (7)
The server should actually work with other clients. Have you experienced problems with it?
from vscode-lsif-extension.
I tried using the server with another client and it worked fine, apart from it only started when the extension of the file was .js
. Could this check be removed perhaps?
from vscode-lsif-extension.
@mpickering could you be a little bit more specific which check you mean.
The thing that we need to generalize is the language registration in the document selector to make this work for languages different than JS / TS
let documentSelector: DocumentSelector = [
{ scheme: 'file', language: 'typescript', exclusive: true } as any,
{ scheme: 'file', language: 'javascript', exclusive: true } as any
];
from vscode-lsif-extension.
I don't know the precise way to achieve this but it seems the server should start when there is a lsif.json
file regardless of the language? So I had to modify the two places you indicated and also the activationEvents
attribute.
from vscode-lsif-extension.
I see your point. One way to achieve this is to bundle the source code as well and use a FS provider to serve them.
from vscode-lsif-extension.
I tried a couple of changes to generalize the language registration, and it works in a proof-of-concept:
- Use
workspaceContains
activation event to look for anlsif.json
file - Register
documentSelector
for*
language
Would be great to have this as other language servers add support for LSIF, and use this extension to test their changes.
The commit is available for a review here: arjunattam@4000275
from vscode-lsif-extension.
I worked on a new extension model which basically does the following:
- the dump will contain the file content as well
- the extensions servers the file content from the dump
- will add its own file schema (lsif). This has the big advantage that the extension is full language agnositic and will work wth dumps for every language (C#, TS, ...) out of the box.
I will push the changes in the next couple of days. Still need to do some cleanup
from vscode-lsif-extension.
Related Issues (14)
- Uppercase driver letter does not work
- Document directly under projectRoot is not working
- Lazy results for declarations and definitions are not resolving HOT 1
- Publish the server as an npm package HOT 1
- Hover text is not escaped HOT 3
- getting error while opening dump.lsif HOT 19
- `Requires version 0.5.0 or higher but received: 0.5.3` when loading freshly-made lsif file
- Unable to load samples/jsonrpc.* files HOT 1
- Still unable to load samples/jsonrpc.db file HOT 5
- Error not a directory, scandir '\vscode-lsif-extension\samples\jsonrpc.lsif'
- Language server does not reload on lsif.json changing HOT 1
- Symlinks defeat the language server HOT 3
- Loading a very large LSIF file causes an internal error HOT 1
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 vscode-lsif-extension.