Comments (1)
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)
- Visual Studio Code support? HOT 1
- wpf support HOT 1
- Support for Visual Studio 2019 HOT 9
- ArgumentNullException in Visual Studio 2019 HOT 5
- Glyphfriend does not work with .aspx, .ascx, .master, cshtml pages HOT 5
- Support for Open Iconic
- [Feature Request] Enable support for VS 2019 "Experimental Razor editor"
- Visual Studio 2022 Support HOT 2
- Update Octicons Library (to 5.0.1)
- After Install VS Still Says Missing HOT 2
- Visual Studio MPF 15.0 Dependency HOT 3
- Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\ssms.exe: Unable to find an entry point named '?' in DLL 'PkgdefMgmt.dll'. HOT 2
- Visual Studio 2017 HOT 3
- VS2015 Web Essentials 2015.3 Duplicate Context Menu Items in Code Editor HOT 1
- Add IcoMoon Support
- Add support for RPG Awesome fonts HOT 1
- Material Angular support
- Not working in Visual Studio 2017 HOT 3
- Add support for font awesome 5
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 glyphfriend.