Flamework is an extensible game framework. It requires typescript and offers many useful features and abstractions.
In-depth documentation, and installation steps, are hosted on my website.
The vscode extension which improves the editing experience for Flamework projects.
Flamework is an extensible game framework. It requires typescript and offers many useful features and abstractions.
In-depth documentation, and installation steps, are hosted on my website.
This bug occurs when auto-importing my custom component wrapper
Here is the source code of said component wrapper:
import { BaseComponent, Component } from "@flamework/components";
import { Janitor } from "@rbxts/janitor";
import { OnStart } from "@flamework/core";
import { Trove } from "@rbxts/trove";
@Component()
export default class DisposableComponent<
A extends object = {},
I extends Instance = Instance,
U extends object | void = void,
>
extends BaseComponent<A, I>
implements OnStart
{
/** @deprecated */
protected readonly janitor = new Janitor<U>();
protected readonly trove = new Trove();
constructor() {
super();
}
onStart() {
this.maid.GiveTask(this.janitor);
this.maid.GiveTask(() => this.trove.destroy());
}
}
When injecting a dependency for a class that has no constructor, multiple constructors will sometimes be created. When adding a dependency to an existing constructor, it will be added multiple times.
I often find myself splitting up parts of services into separate files, such as:
import type { SomeService } from "SomeService";
export const getConfiguration = () => {
const someService = Dependency<SomeService>();
return {
someValue: someService.getSomeValue()
}
}
It would be pretty convenient if the extension would be able to add these as Dependency
calls, just like what happens when typing the type of a service inside another.
Note: adding the Dependency calls at the top of the file will not work, as they will not be available once the module gets required.
Type: Bug
To reproduce it, you simply just need to type out the following:
@Service({})
class Test {
public guh(tryToTypeNumberAsTheType) {}
}
It doesn't show the autocomplete for number at all.
Extension version: 0.1.2
VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Connection to 'wsl+ubuntu' could not be established
Item | Value |
---|---|
CPUs | AMD Ryzen 9 5950X 16-Core Processor (32 x 3400) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
Load (avg) | undefined |
Memory (System) | 31.92GB (6.77GB free) |
Process Argv | --crash-reporter-id bb38f29f-502a-46f7-9851-648d8742f996 |
Screen Reader | no |
VM | 0% |
Connection to 'wsl+ubuntu' could not be established
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
8082a590:30971561
edj9j583:30969295
fegfb526:30973843
ccp2r6:30958158
dsvsc020:30973508
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.