Comments (3)
I am not sure to understand what we want to archieve here.
I made a quick gif to have a common code/example to work from
Source:
module LanguageService =
let parse (fileName : string) = ""
let declarations (index : int) = ""
type CodeLensProvider =
abstract provideCodeLenses: document: string * token: int -> obj
let codeLensProvider =
{ new CodeLensProvider with
member __.provideCodeLenses (doc, token) =
let parseResult = LanguageService.parse ""
let declarations = LanguageService.declarations 10
null
}
Is the tooltip sentence refering to module Language
thing when I hover the LanguageService
word ? And val parse
when hovering parse
?
from ionide-fsgrammar.
I think suggestion is to have LanguageService
colored blue (like in module definition). I doubt it's possible to do it accurately with just regexes
from ionide-fsgrammar.
Using regexes it will not be possible indeed.
Taking the previous code, we can't handle this case:
// Type.member
codeLensProvider.provideCodeLenses
// Module.function
LanguageService.parse
The case isn't enough to take this decision, because we could have named CodeLensProvider
.
from ionide-fsgrammar.
Related Issues (20)
- XXX.set and XXX.get are breaking the coloration HOT 1
- Method Call Coloring HOT 6
- Ability to specify highlighting color for symbols HOT 15
- There are syntax highlighting problems with value names that contain keywords.
- Multiple `` in one line are not highlighted correctly
- // inside a block comment gets line comment scope
- Similar lines highlighted differently HOT 3
- let f = (*) 2 is highlighted as a comment HOT 3
- Ionide hangs when trying to load `.fsproj`s or `.sln` HOT 1
- Multiline comments captures too greedily HOT 4
- Space after a closing *) literate comment breaks ionide highlighting
- Some bindings are missing? HOT 1
- Unexpected grammar tokenization HOT 3
- Conflict between custom operator and line comment
- Syntax highlighting breaks when returning a binding that begins with "use" HOT 1
- Bug: Slice parameters are tokenized as part of the function itself HOT 2
- Having `*` in the member definition makes everything after coloured incorrectly. HOT 1
- Syntax highlighting missing for `let struct` HOT 2
- Missing colorisation or broken colorisation on some syntax for `abstract` definition with a generic
- Rogue `"begin/endCaptures"` HOT 2
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 ionide-fsgrammar.