Coder Social home page Coder Social logo

nrefactory-completion-sample's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nrefactory-completion-sample's Issues

Improper Type name

When initializing a variable with Type using fully qualified type name (and the using statement is not mentioned), code completion suggests improper type.
For example, opening the sample and typing the following line -
System.Net.WebClient wc = new
on say 11th line will trigger completion window that has the item 'WebClient' as Completion text which should be completed as 'System.Net.WebClient' instead.

Can't really use as a library as too tightly bound to AvalonEdit / WPF

You state that:

The project is structured so that the code completion part could be used directly as a library.

Yet the ICSharpCode.CodeCompletion project heavily relies on AvalonEdit and therefore WPF.

There should be no references to these if this was the case, and the code completion etc should be functions like:

GetIntellisenceItemsFromPosition(...
etc

There should be another project that links the code completion to the AvalonEdit control.

Kris

Referencing Assemblies

I'm guessing the "ScriptProvider" in "ICSharpCode.CodeCompletion.Sample" is supposed to allow the addition of assemblies however I can't seem to get this to work. Is this something anyone else has problems with or is it just me?

How to implement your solution in to WF

Please how to make your solution work on a textblock without using the Sample.cs files. I would like to use it on WF (Windows workflow fondation) project.

How do you Change Between AvalonEdit TextDocument and NRefactory TextDocument

Hi Luke,

In OverrideCompletionData.cs you use var syntaxTree = new CSharpParser().Parse(document); (as one of a handful of examples) where document here is of type ICSharpCode.AvalonEdit.Document.TextDocument. The Parse(...) method expects a type of ICSharpCode.NRefactory.Editor.ITextSource and it is getting ICSharpCode.AvalonEdit.Document.ITextSource. So I am getting a compiler fail, but in your solution you do not. My question is what am I missing here?

Thanks for your time.

not compile

The project does not compile. Here is such an error:

Error CS0006 The metadata file "C: \ Users \ Admin \ Downloads \ NRefactory-Completion-Sample-master \ NRefactory-Completion-Sample-master \ Bin \ ICSharpCode.CodeCompletion.dll" could not be found.
ICSharpCode.CodeCompletion.Sample C: \ Users \ Admin \ Downloads \ NRefactory-Completion-Sample-master \ NRefactory-Completion-Sample-master \ Src \ ICSharpCode.CodeCompletion.Sample \ CSC 1 Active

GPL code included

The following files have comments indicating they are GPL:

CodeCompletionResult.cs
CSharpCompletionContext.cs

The following files have comments indicating both GPL and LGPL:

CodeCompletionDataFactory.cs
CSharpInsightItem.cs
CSharpOverloadProvider.cs
SegmentTrackingOutputFormatter.cs

Any chance you'd be willing to re-license these as MIT or similar, or at least LGPL for the top two?

Either way, thanks for this sample.

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.