Giter Site home page Giter Site logo

Comments (7)

Simn avatar Simn commented on June 5, 2024

Is this something we can fix or are we gonna need MS support?

from vshaxe.

Gama11 avatar Gama11 commented on June 5, 2024

No idea, need to find out why it happens in the first place..

from vshaxe.

Gama11 avatar Gama11 commented on June 5, 2024

Opened an issue on the vscode repo: microsoft/vscode#12772

from vshaxe.

Gama11 avatar Gama11 commented on June 5, 2024

Ok, got an answer. This works:

var defaultWordPattern = "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)";
var wordPattern = defaultWordPattern + "|(@:\\w*)"; // metadata
languages.setLanguageConfiguration("haxe", {wordPattern: new js.RegExp(wordPattern)});

...except that completion is still canceled on : because we have that as a trigger character (type hints) - not sure if we can do anything about that. :/

To me, the triggerCharacters docs suggest that there might be a way to trigger completion manually (as they explicitly say "automatically"):

The characters that trigger completion automatically.

from vshaxe.

Simn avatar Simn commented on June 5, 2024

Does it also cancel if we reject in onCompletion?

from vshaxe.

Gama11 avatar Gama11 commented on June 5, 2024

Looks like it. Also, even if that worked, it'd seem a bit hacky, since you have to reject it with some error message which is then printed to the output.

from vshaxe.

Gama11 avatar Gama11 commented on June 5, 2024

The flickering when the completion list is closed and reopened is frankly a bit annoying, but I guess we can (have to?) live with that.

from vshaxe.

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.