Giter Site home page Giter Site logo

Comments (5)

zxqfl avatar zxqfl commented on May 20, 2024

Would you be happy with an option to globally reduce TabNine priority in all files matching a certain glob, or is your issue limited to certain contexts such as require()?

from tabnine-vscode.

ericblade avatar ericblade commented on May 20, 2024

I don't really know how the whole system works, and it might be possible that they just aren't compatible with each other, but specifically when I do require('../../someFile'), sometimes in the middle of typing it out, the results from TabNine are mixed in with the npm-intellisense, sometimes they are the only thing in the list, and there are no results from npm-intellisense. I'd prefer that the npm modules are on top of the list, versus apparently randomly ordered, or not even there. :-D

from tabnine-vscode.

zxqfl avatar zxqfl commented on May 20, 2024

Ok, I'll add some settings tonight to address this case.

from tabnine-vscode.

ericblade avatar ericblade commented on May 20, 2024

so, i noticed it when i went to change a require('../constants') into a require('../../constants') .. after the first '..', i got mixed input, i hit the first /, and i got only suggestions from TabNine, which would be a great list, except it was a list of other requires, and not requires that are actually in the '../' directory. after the second '../', it gave me again a list mixed with TabNine and npm-intellisense results. So, in the middle, I couldn't see anything from intellisense.

from tabnine-vscode.

zxqfl avatar zxqfl commented on May 20, 2024

I don't really understand Intellisense's rules either. But I added some settings that will hopefully help. Specifically the "disable_line_regex" setting might be useful:

Disable TabNine when the current line contains a match of any of the provided regexes. For example, add "require" to disable TabNine when the current line contains the word 'require'.

from tabnine-vscode.

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.