Code Monkey home page Code Monkey logo

Comments (3)

MangelMaxime avatar MangelMaxime commented on August 20, 2024

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
    }

2018-05-25 13 09 20

Is the tooltip sentence refering to module Language thing when I hover the LanguageService word ? And val parse when hovering parse ?

from ionide-fsgrammar.

Krzysztof-Cieslak avatar Krzysztof-Cieslak commented on August 20, 2024

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.

MangelMaxime avatar MangelMaxime commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.