Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    HenrikHolmIT
    @HenrikHolmIT
    Alright. There's apparently a property called visibleTextEditors... This will contain all editors open. The output AND the file I'm looking for. Just need to filter the bad apples out. Problem solved.
    MohameddAli
    @MohameddAli
    how u solved the problem
    HenrikHolmIT
    @HenrikHolmIT
    First I check to see if there are any workspace folders. If there are I continue to find a document being edited. I do that by first checking vscode.window.activeTextEditor if that returns undefined or if activeTextEditor.document is not a file I iterate through vscode.window.visibleTextEditors. I then compare the path of the file against the workspace folders till I find a match in the path. That is my process.
    MohameddAli
    @MohameddAli
    Thanks man this will help me a lot
    HenrikHolmIT
    @HenrikHolmIT
    Is there a common way of tracking last edited file in vscode?
    Edited/Opened?
    HenrikHolmIT
    @HenrikHolmIT
    This is the event I'm looking for vscode.window.onDidChangeActiveTextEditor
    @MohameddAli If you use this event to manage Active Project Folder then you can make it work across tab groups. You'll know which file the user had active last and calculate project folder based on the path to that file. No need to use activeTextEditor or visibleTextEditors. This is much more simple.
    HenrikHolmIT
    @HenrikHolmIT
    Is it possible to have code be activated when other extensions are activated?
    Say I have extension1 with Command1. In extension2 I'd like to be notified that command1 was activated in extension1.
    The purpose is to submit some eventlogging to our event server system on the use of 3. party extensions.
    matrixbot
    @matrixbot
    HenrikHolmIT
    @HenrikHolmIT
    @matrixbot I've looked into that one but its not what I'm looking for. That one tells VSCode when to initialize my extension. An extension is only initialized once so I'll only ever get the first activation of the command. And I've already used the wildcard "*" because I need my extension to start when VSCode is started. I present information to the user if extension has been updated at startup
    HenrikHolmIT
    @HenrikHolmIT

    How do I make a configuration available when editing settings.json files?

    I've made a configuration named extension.setting in package.json but I can only see the setting in UI. I cannot get it to popup when editing the file with intelisense.

    Adam Young
    @Asix3
    Hi -- shift+enter is not sending blocks of code to run in my python interactive window. Is there a way to see what variables in the "When" expression in keybindings is active?
    I'm not sure what's changed
    I have microsoft's python extension, and vim extension installed
    Simon Hafner
    @reactormonk
    Is there a command to format a comment block / text to a column limit?
    matrixbot
    @matrixbot
    defolos the devil in me wants to suggest to open the file in Emacs, press Ctrl+x - f, enter the column limit, mark the block and press Alt+q ;-)
    cаввидис
    @panoply
    Anyone had success with Incremental document syncing and keeping the cached AST equal with changed content passed in via the changedContent event? – Currently sending the full document on each change seems needless but at the same time keeping a parsed AST existing in cache equal even if only one character was to change in the document would require adjusting the position offset of every token in that AST...
    Simon Hafner
    @reactormonk
    defolos, that's what I did in the end ^^
    HenrikHolmIT
    @HenrikHolmIT
    Is it possible to present a quickpicker like the one presented with Ctrl-SHIFT-P ?
    I need to present a list of all AL files in project but just displaying filename and project folder in the same textual look and feel seems odd. If you delete > character of the command palette you are presented with a quick pick that shows filenames in one style and project folder path in another another style... How to achieve that effect?
    matrixbot
    @matrixbot

    defolos > <@gitter_reactormonk:matrix.org> defolos, that's what I did in the end ^^

    🤣

    pkruk2
    @pkruk2
    Hi, I need to run an external command (process) from extension, and then process results. User should have ability to cancel the run (it takes time). What are the possibilities?
    I know there is Terminal and sendText, but then waiting for process finish to process results is hard.
    There is child_process.exec() but then how to handle cancellation ?
    Hmm withProgress ?
    HenrikHolmIT
    @HenrikHolmIT
    I need to use window.createQuickPick to make a Rich QuickPick. Cool
    Iwan Aucamp
    @aucampia
    hi
    in vscode when I make a quote it adds a second quote
    how do I get it to never do that ever again?
    Oleksandr Shevtsov
    @Shelex
    @aucampia "editor.autoSurround": "never"
    HenrikHolmIT
    @HenrikHolmIT
    The 'Designing an Enum for a settings file' is still bugging me. I have other extensions that makes enums that pop up when I'm editing settings or or other json files but my own contributions do not show up... what is the magic ingredient I'm missing? I've only added the enum in my package.json
            "configuration": {
                "title": "Extension",
                "properties": {
                    "extension.permission": {
                        "enum": [
                            "User",
                            "Everyone"
                        ],
                        "default": "User",
                        "description": "Description"
                    }
                }
            }
    HenrikHolmIT
    @HenrikHolmIT
    If I open Preferences>Settings>Extension I can see the property but I cannot make it show up by editing a setting file. Its the last part I need to work
    HenrikHolmIT
    @HenrikHolmIT
    Apparently you have to use the "scope" to describe from where the configuration is available.
    Hyang-Ah Hana Kim
    @hyangah
    Hi - I am looking for a way to update the outdated thirdpartynotices.txt file in Go language extension repo. Is there already a recommended tooling/workflow I can use. Looking into the vscode repo, I saw microsoft/vscode#73175 mentioning ThirdPartyNotices.txt update with OSS tools but the link is broken or not accessible.
    无限风灵
    @WuLex
    国外.net 流行吗
    国外.net 和JAVA 哪个工作多??
    HenrikHolmIT
    @HenrikHolmIT
    @WuLex Not many people understand that language here I think...
    pkruk2
    @pkruk2
    Hi, how easy is it to create multiple extensions from one repository?
    matrixbot
    @matrixbot
    spectrum Well as many as you like if you have a branch per extension
    spectrum can you clarify?
    spectrum * Well very easy if you have a separate branch for each extension
    matrixbot
    @matrixbot
    defolos or separate directories
    lianfu
    @w-lianfu
    image.png
    Hi, that’s why ?
    pkruk2
    @pkruk2
    Hi, do you know if vscode supports several extensions in 1 vsix files? (several vsix packages in one vsix file)
    Rob C.
    @Hezkore
    I'd really appreciate if people voted for my issue - microsoft/vscode#85702
    matrixbot
    @matrixbot
    jserio42 hi
    Talha Meer 🇵🇰
    @realTalhaMeer_twitter
    Hi there, I'm a student of BS-IT from Pakistan. I'm working on my final project. the idea is to predict performance of ML algo. I want to use VS code as IDE, can you please guide me about VS Code's source code. Thanks
    mmahalea19
    @mmahalea19
    Hello, I am looking for a way to pass environment and configuration variables to a integrated terminal I create in a VsCode extension(e.g. when I use terminal.SendText("gcc ${config.my_config_parameter}") the variable is not expanded). Thank you !
    ganeshgore
    @ganeshgore
    Hello guys, I am not able to get this working on my setup microsoft/vscode-remote-release#766
    I am connecting to Linux machine through windows
    Arun Kumar
    @arunkumar413
    Hi All
    I'm using vs code for react native project and I would the props of a component to be suggested as I type. Is there an extension for this use case?
    Arun Kumar
    @arunkumar413
    The intellisense isn't working as expected. It doesn't suggest the variables from the imported files