Comments (8)
For inspiration of how this could be implemented using the internal EditorService
service see the example given here: microsoft/monaco-editor#291 (comment)
from metabrowse.
After some digging in the vscode codebase here are some more inspiration if we go the route of providing our own override services.
- In standalone mode it looks like the service implementations are used can be found in src/vs/editor/standalone/browser/simpleServices.ts, especially the
IEditorService
andITextModelService
implementations seem of interest. - Interface for
IEditorService
- Interface for
ITextModelService
from metabrowse.
Thanks for the links @jonas. I will try to take a stab at this.
from metabrowse.
I'm struggling with this one, my progress so far is here https://github.com/scalameta/metadoc/compare/filenames?expand=1
It seems ITextModelService is what we really want, but I can't figure out how we call registerTextModelContentProvider
with a custom ITextModelContentProvider. Once we nail that, I suspect implementing the provideTextContent
will be quite simple.
Any ideas?
from metabrowse.
I think you are close. ITextModelService was recently renamed from ITextModelResolverService so using the name textModelResolverService
might be the missing piece.
BTW I suggest you create a PR as it makes it easier to comment.
from metabrowse.
Also I don't think we necessarily need to care about registerTextModelContentProvider
if we control the resolver service ourselves.
from metabrowse.
textModelResolverService
is what I was missing! I got something working now in #33 😄
from metabrowse.
Fixed in #33
from metabrowse.
Related Issues (20)
- Chunk large package indexes
- broken link to demo page in readme HOT 1
- Find References of a method that overrides from Trait HOT 1
- Start using fullOptsJS instead of fastOptJS again HOT 2
- Re-enable JsonSuite
- Release job of 0.2.4 failed HOT 6
- Problems generating a metadoc site for the community build HOT 2
- Update Monaco to version 0.10.0
- Prefer npm local installation HOT 4
- Cannot find module webpack-dev-server HOT 2
- Better testing infrastructure for metadoc cli
- Symbols not created for Json case classes in example HOT 5
- Consider adding a metabrowseForceCompile task to sbt-metabrowse HOT 1
- Package webpack assets for CLI consumption HOT 1
- Add LICENSE file
- Move contribution docs to separate file
- Unclear --help on how to run cli
- Running metadoc-site twice causes FileAlreadyExistsException HOT 4
- Go to definition does not work for symbol.multi HOT 1
- Print method signatures for method symbols
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 metabrowse.