Comments (7)
Been demoing metadoc at Scala World, missing this functionality a lot!
from metabrowse.
Yes. Are all file names in the workbench index?
from metabrowse.
from metabrowse.
A few relevant links
workspace.filenames: Seq[String]
includes all the filenames in the workspace
One idea, I'm wondering if it is possible to use DocumentSymbolProvider
to jump to different URIs than the current open buffer 🤔 The API seems to allow returning SymbolInformation
which may be able to have .location.uri
and .kind
https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.symbolinformation.html#kind Might be worth a shot.
from metabrowse.
I tried to use DocumentSymbolProvider to switch URI but it seems monaco doesn't like that. It looks very promising however since there exists a SymbolKind.file
which has a nice icon
Seems we may need to register our own command using
CommonEditorRegistry
as requested microsoft/vscode#7250
I tried
@JSGlobal("monaco.CommonEditorRegistry")
@js.native
object CommonEditorRegistry extends js.Object {
def registerEditorAction(editorAction: IEditorAction): Unit = js.native
}
but hit on Cannot read property 'registerEditorAction' of undefined
.
from metabrowse.
The objective is to reproduce the following typescript snippet https://github.com/Microsoft/vscode/blob/047b88c39ccb5875356276ae98b7429e4b279d6a/src/vs/editor/standalone/browser/quickOpen/quickOutline.ts#L113-L130 to register a custom command "Open file"
from metabrowse.
Registration of commands seems to have been changed in the latest monaco version https://github.com/Microsoft/vscode/blob/d328fec640d2f2b78faa501ecd613cb0312c8472/src/vs/workbench/parts/quickopen/browser/quickopen.contribution.ts#L37-L39 and it seems CommonEditorRegistry
no longer exists.
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.