Giter Site home page Giter Site logo

aspnet-helper's Introduction

ASP.NET Helper

Development setup

  • run npm install inside the aspnet-helper folder
  • run npm install inside the aspnet-helper-server folder

Debug setup

  • there are two options so start
    • run npm run compile in the aspnet-helper-server folder or
    • run npm run vscode:prepublish in the aspnet-helper folder
  • start the extension in the aspnet-helper folder by pressing F5
  • wait for extension host to start
  • attach the server by hitting F5 in the server folder

aspnet-helper's People

Contributors

fdinardo avatar schneiderpat avatar schneiderpatrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aspnet-helper's Issues

Kentico and Umbraco CMS

Do you think you would be able to get this to work for Umbraco and Kentico 12 MVC platforms as it currently does not.

It does not autocomplete inherited models

For Instance if I have the following models when in a .cshtml I will get intellisense for properties of the Message class but not the Inherited AuditEntity.

    public abstract class AuditEntity : BaseEntity
    {
        public DateTime Created { get; set; } = DateTime.UtcNow;
        // public ApplicationUser CreateBy { get; set; }
        public DateTime Modified { get; set; } = DateTime.UtcNow;
        // public ApplicationUser ModifiedBy { get; set; }
    }
    public class Message : AuditEntity
    {
        public int MessageId { get; set; }
        public string UserId { get; set; }
        [ForeignKey("UserId")]
        public ApplicationUser User { get; set; }
        [Column(TypeName = "text")]
        public string MessageText { get; set; }
        public virtual List<Comment> Comments { get; set; } = new List<Comment>();
   }

High CPU usage - macOS

Hi !
First, thank you for your extension.

I have an issue with you extension : it use 100% of my CPU and it stay even after i close VSCode.

Someone open an issue on the vscode github

This what i return
ps ax | grep 68119 68119 ?? R 0:47.50 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/rphlmr/.vscode/extensions/schneiderpat.aspnet-helper-0.6.3/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/rphlmr/.vscode/extensions/schneiderpat.aspnet-helper-0.6.3/server/server.js --node-ipc 68252 s000 R+ 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn 68119

ps ax | grep 68511 68511 ?? R 0:15.14 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/rphlmr/.vscode/extensions/schneiderpat.aspnet-helper-0.6.3/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/rphlmr/.vscode/extensions/schneiderpat.aspnet-helper-0.6.3/server/server.js --node-ipc 68580 s000 R+ 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn 68511

capture d ecran 2017-04-16 a 12 11 16

  • VSCode Version: Code 1.11.2 (6eaebe3b9c70406d67c97779468c324a7a95db0e, 2017-04-13T07:56:42.517Z)
  • OS Version: Darwin x64 15.6.0
  • Extensions:
Extension Author Version
html-class-suggestions AndersEAndersen 1.0.7
vscode-solarized Braver 0.0.3
crane HvyIndustries 0.3.6
csharpfixformat Leopotam 0.0.20
vscode-docker PeterJausovec 0.0.13
code-settings-sync Shan 2.6.2
html-snippets abusaidm 0.1.0
vscode-css-formatter aeschli 0.0.2
vscode-javascript-snippet-pack akamud 0.1.5
npm-intellisense christian-kohler 1.3.0
path-intellisense christian-kohler 1.2.0
githistory donjayamanne 0.2.0
vscode-html-css ecmel 0.1.1
auto-rename-tag formulahendry 0.0.11
vscode-jekyll-snippets ginfuru 0.7.0
csharpextensions jchannon 1.3.0
theme-gruvbox-dark-medium jdinhlife 0.0.6
language-asciidoc justusadam 1.3.1
docomment k--kato 0.0.14
markdown-shortcuts mdickin 0.8.0
vscode-apache mrmlnc 1.1.1
csharp ms-vscode 1.8.1
vscode-paste-image mushan 0.3.0
language-liquid neilding 0.0.2
view-in-browser qinjia 0.0.5
java redhat 0.1.0
ClassyNaming reflectiondm 1.0.0
vscode-icons robertohuertasm 7.5.1
visual-gruvbox-medium-dark rphlmr 1.0.0
aspnet-helper schneiderpat 0.6.3
theme-firewatch ulthes 1.0.2

Intellisense

Hello, The Intellisense in razor views not working
Ubuntu 16.4
VS Code

Usage

Conventions over configuration.

Areas must be in Areas folder and AreaRouteAttribute must be the same name as the foldername
Controllers must be in Controllers folder and named Controller.cs
Actions must contain a HttpGet attribute
Namespaces for used models must be in a _ViewImports.cshtml -> only model names in razor page

intellisense @Model doesn't shows some properties.

Hi! Thanks for this amazing plugin.
Intellisense is able to show only some of the Model's properties. I think I get the reason, but i don't know how to fix. An example will get us on the right path:
Model:

public partial class MyModel 
{
    public int ID {get; set;}
    public virtual OtherModel MyOtherModel {get;set;}
}

In the Html document if I use @Model.ID everything is fine. If I use @Model.MyOtherModel I get an error. I think the reason for this is related to the number of words in the property declaration.
The intellisense shows me that OtherModel is the name - which actually is the type- of the property and virtual is the type -which is not the type-.
It seems that it splits the line and takes always the "second" word as the property's type and the third one as the Property's Name.

I don't think this issue is related to the plugins, os or visual studio core versions, but if they are needed let me know.
Thanks.

Intelligence not working in View

Hii,
I have followed all mentioned conventions but not able to get intelligence in View.
please find below attached screen for more info regarding issue.
issue
model
_viewimports

VS Code 1.9.1 on MacOSX

Hi The extension does not seem to work on maxosx. I have VS code 1.9.1. Are you aware of any command that need to be run after installing?

Intellisense for Model's in cshtml files not working.

I believe I have satisfied all of the requirements as you've outlined in the extension configuration instructions.I have updated _ViewImports.cshtml, added [HttpGet] to actions, my Areas folder is in the correct location, and my controllers are named in standard fashion in the Controllers folder. Yet, the intellisence is not working. Thanks!
screen shot 2017-08-23 at 10 03 29 am

cpu lockup on ubuntu

When using this extension in Visual Studio Code on Ubuntu 16.04 cpu usage jumps to 100% and stays there, even after closing VS Code.

Model from different namespace than view

I have seperate namespace for my entities, but when I try to do something like this:

@model Entities.CompanyProfile

then even though the page shows up correctly in the browser, the aspnet-helper extension still shows errors.

I am not using asp.net core so I don't have a _ViewImports.cshtml. Is it still possible to somehow import a model from a different namespace?

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.