GithubHelp home page GithubHelp logo

hintly's Introduction

Hi ๐Ÿ‘‹, I'm Tom Smykowski

tomaszs

tomaszs

tomaszs2

Blogs posts

Connect with me:

tomaszs2 tomaszs2 tomaszsmykowski2 tomasz-smykowski tomsmyk tomaszs2 @tomaszs2 ucnjcag4hjhnwkuvgwubqalw

Languages and Tools:

angular angularjs aws azure bash bootstrap csharp css3 cypress dotnet ember git html5 jasmine javascript jest karma mocha mssql mysql nginx php postgresql react redux sass selenium sqlite svelte tailwind typescript vuejs

tomaszs

ย tomaszs

tomaszs

hintly's People

Contributors

dependabot[bot] avatar tomaszs avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

zolovey

hintly's Issues

Hinty for VSCode stopped working

Now when the regex rule is improperly formatted, the whole extension stops to work.

Workaround

To see what happens you have to go to CTRL+SHIFT+P -> Show Log -> Extension Host, fix the rule and restart VSCode to enable Assistant again

Minimal plan

  • catch errors on a rule level, so that whole Hinty won't crash

Maximum plan

  • show the error as a hint above the rule in settings.json or defaultSettings.json or workspace settings.

A way to read configuration from file

Sometimes it may be better to store configuration in a separate file, not in workspace or user profile settings. So there might be a need to store it in a separate file

Writing rules made easier

Currently rules can be written with RegEx. But sometimes all you need is a simple rules, and don't want to worry to escape all special characters used by RegEx.

So there should be away to add simple rules as text as it is, and also with asterix sign.

A way to automatically fix errors

It may be fully automated or semi automated feature (executed from CTRL+.). But there might be this feature available for users who dare to use automatic way of code handling ;)

Prepend the message with "Assistant"

Currently it is confusing what extension shows messages inside Visual Studio Code. So the idea is to prepend the message from Assistant with "Assistant: ", so that the user will know what extension shows him the hint

code review

src/CodelensProvider.ts

line 33, 40 : Why create a regex from an already created regex (line 23)

line 34: how likely is it that the text of the document changes while processing the regexes

line 37,38,39: document.positionAt() already gives you a complete Position

let position = document.positionAt(matches.index);

How do I enter a regex with the flag i

It is possible in package.json to specify the allowed format of the configuration, allowed field names and types.

code review

src/CodelensProvider.ts

see my comments to 7e340d5

If multiple files relate to the same issue commit them together, source files, package,json, README.md, ...

Integration with ESLint (etc.?)

There are two possible ways of integration:

  1. Assistant gets ESLint messages and shows them to the user as lenses in the place where they occur

Maybe it should be a separate extension?

  1. Assistant generates ESLint rules based on his rules. So that rules can be integrated into CI\CD

Or maybe we could go with a method to execute Assistant rules side by side with ESLint, something like ng run assistant ?

A way to read configurations from node modules

Every node module could come with Assistant rules. So there could be a way to read rules from node modules installed. If a node module contains such rules, it may be helpful to show it to the project developer

Updates of Readme

A small update of README.md

Each rule should contain:
* regex - a string with a regex rule
* message - text that should be displayed when the rule is triggered

Example workspace configuration:

```
{
    .....
    "settings": {
        "assistant": {
            "rules": [
                {
                    "regex": "@Input\\\\(\\\\) .*: false;",
                    "message": "Define property value with =, not with:"
                }
            ]
        }
    },
    .....
}
```

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.