Comments (9)
That could work, I'll have to look at how they do it. I mainly want to avoid this extension starting up every time you open a readme, but I think naming a file .lidr.md
would be solve that.
I've made a release with the .lidr improvements I've done so far — I didn't want to wait any longer to get the 0.4.0 fix out. But I'll work on the other files types for the next one.
from idris-vscode.
Hi,
at the moment, the extension does almost nothing for .lidr files, just some syntax-highlighting. I can look at activating the type-checking and hovering for .lidr files too though.
from idris-vscode.
that'd be really great
from idris-vscode.
I've got a fix for the hover done. I'll try and make a new release soon, I'm going to see if I can squeeze it in with the 0.4.0 support.
For .lidr files, I've only specifically added code to get the hover to work. Auto complete seems to be working, error highlighting isn't. The commands that insert text are probably all broken — I may just disable those for .lidr files for now rather than have them do weird things.
I don't know how much work it'll be to get all of the commands working, but are there any functions besides hovering that you would really like implemented for the next release?
from idris-vscode.
what you've done is really helpful already, thanks. Just whenever you have time. In terms of what would be most helpful, error highlighting would be great. I'm also exploring the alternative formats: .md, .tex and there's one other I can't remember the name of. If they're easy to add & maintain, they'd also be great.
from idris-vscode.
I've got most of the commands working now, and error highlighting.
I don't think it's going to be possible to get any of the extension features for markdown, latex or org mode, because the extension is activated per file, so .lidr
works ok, because no other extension is trying to handle them. I might be able to provide syntax highlighting, at least for the built-in markdown plugin, but nothing like hover, or error handling.
An aside: is it weird that the normal text in the .lidr file is syntax-highlighted as comments? I borrowed the syntax grammar, indirectly, from the original Atom plugin and didn't really think about it, but now I'm concerned that the normal text isn't readable. With my colour theme at least, the comment colour is grey on grey. I'd imagine that a literate Idris file is going to be more text than code, otherwise one would just use actual comments.
from idris-vscode.
That's great.
Re .md files, I take it that's a vscode limitation, not being able to enable extensions for parts of files?
Makes sense to me to syntax-highlight the normal text as comments. It's green in my editor, and perfectly readable. I guess no highlighting is another option but I don't think there's any need to change it.
from idris-vscode.
looks like agda uses
.agda
.lagda
.lagda.md
.lagda.tex
.lagda.rst
would that work for idris e.g. .lidr.md?
from idris-vscode.
The markdown support is released now, in 0.0.11.
I can leave this issue open a bit longer for latex or org mode support, which I haven't implemented. I don't use either of those, but if anyone wants support for them and can provide an example file, I'll have a go at it.
from idris-vscode.
Related Issues (20)
- open-vsx support HOT 3
- Explain how to install this HOT 4
- ERR_STREAM_DESTROYED when trying to run command `idris.addClause` HOT 8
- Syntax highlighting sometimes fails HOT 3
- Support v0.4.0 HOT 2
- Hovering over contents of a new takes about one minute HOT 8
- Version 0.5.0 HOT 1
- file path is wrong within workspace with multiple folders HOT 4
- Is it possible to get hole type with just keyboard, not with mouse hover? HOT 2
- What do you think of idris2-lsp-vscode? HOT 4
- Feature request: Jump to definition, Ctrl-Click. HOT 4
- "Idris 2 mode" checkbox is missing HOT 1
- Failed to load file. HOT 2
- Error display in wrong line: always 1 line upper HOT 8
- How to configure packages? HOT 10
- Publish 0.0.14 to Open VSX HOT 1
- Having issue with extension HOT 4
- Activate extension on language 'idris2' too HOT 6
- Add Missing is not working
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 idris-vscode.