Code Monkey home page Code Monkey logo

vscode's Introduction

vscode's People

Contributors

fireboltofdeath avatar

Stargazers

 avatar

Watchers

 avatar

vscode's Issues

Bug when auto importing custom component class

590854c6176afa60e4be22097610de60.mp4

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());
	}
}

Dependency injection for non-classes

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.

It breaks the intellisense

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

System Info
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

A/B Experiments
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

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.