Comments (7)
Is this something we can fix or are we gonna need MS support?
from vshaxe.
No idea, need to find out why it happens in the first place..
from vshaxe.
Opened an issue on the vscode repo: microsoft/vscode#12772
from vshaxe.
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.
Does it also cancel if we reject
in onCompletion
?
from vshaxe.
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.
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)
- Two completion providers duplicate code actions HOT 3
- Null safety errors stay HOT 8
- Couldn't connect on 127.0.0.1:6000 with VSCode 1.82.0 HOT 25
- Using external builder - Can I use port 6000 for cache
- Building Cache.... Forever HOT 1
- `Type not found` when using HaxeFlixel HOT 3
- Automatic build when debugging hashlink with hot reload
- Type not found : FileSystem HOT 3
- Auto-detect cache build failure after switching Haxe versions HOT 9
- Extra field generation
- Cannot generate all missing fields for interfaces or abstract classes HOT 1
- @:structInit hover does not have doc comments
- Compilation in progress feedback HOT 21
- @:structInit required fields generation
- Signature help points one parameter behind HOT 2
- Code action to convert local vars to class fields HOT 2
- Action "add missing field" adds the field after another field's documentation. HOT 2
- Terminal output looks awful when compiling through server HOT 4
- Setting breakpoint in flixel.graphics.FlxGraphic causes the program to crash. HOT 2
- [ENHANCEMENT] Implement support for logpoints and hit count breakpoints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vshaxe.