Code Monkey home page Code Monkey logo

Comments (1)

rionmonster avatar rionmonster commented on September 25, 2024

After exploring the issue, it appears to be part of the Visual Studio VSIX packaging process and how it is handling these declarations on MEF components (which is what the autocompletion functionality is). I made several attempts to define the getter for the CompletionType property :

// None of these declarations were sufficient to define the getter for CompletionType
public string CompletionType { get; }
public string CompletionType => CompletionTypes.Values;
public string CompletionType { get { return CompletionTypes.Values; } }
public string CompletionType { get; } =  CompletionTypes.Values;

However, none of them were sufficient to resolve the issue. Eventually, I settled on using a base class to define the getter and inheriting from it, which somehow seemed to work, although I'm not entirely sure of the reason behind that at present :

abstract class BaseClassCompletionProvider : IHtmlCompletionListProvider
{
        public abstract string CompletionType { get; }
}

class GlyphClassCompletionListProvider : BaseClassCompletionProvider 
{
        public override string CompletionType { get { return CompletionTypes.Values; } }

        // Omitted for brevity
}

I've reached out to several members of the Visual Studio development team and opened a question on Stack Overflow to address it, but have yet to receive any explanation.

I'll be using the base-class approach to resolve the problem until then.

from glyphfriend.

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.