GithubHelp home page GithubHelp logo

Comments (16)

xhayper avatar xhayper commented on June 3, 2024 1

i will figure it out soon

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

Doing more testing this is related to ignored workspaces when user is remote ssh into a vscode instance

#36 This prob be fixed apart of this issue

from vscord.

xhayper avatar xhayper commented on June 3, 2024

cd4fabb might hopefully fix this, i will push the update out soon

from vscord.

xhayper avatar xhayper commented on June 3, 2024

nevermind, can you please give me your settings so i can test it

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

Hey @xhayper,
Here are my settings. There also looks to be a regression. Now it only shows idle and not the ignoreWorkspacesText. When going to a new file it then shows the repo. This only happens when you are ssh'ed inot a separate machine coding also

{
	"rpc.buttonInactiveLabel": "Check Out My Github",
	"rpc.buttonInactiveUrl": "https://github.com/nick22985",
	"rpc.appName": "Visual Studio Code",
	"rpc.ignoreOrganizations": ["IgnoredOrg"],
	"rpc.ignoreWorkspaces": ["Repo1", "Repo2", "Repo3", "Repo4", "Repo5", "Repo6"],
	"rpc.ignoreWorkspacesText": "[Redacted]",
	"rpc.buttonEnabled": true,
	"rpc.enabled": true,
	"rpc.checkIdle": true,
	"rpc.resetElapsedTimeAfterIdle": true
}

from vscord.

xhayper avatar xhayper commented on June 3, 2024

ah shoot, i dont know how ssh coding work, this might be s trouble for me to debug

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

@xhayper I did some digging into this. What it appears to be is that dataClass.workspaceFolder returns undefined

if (dataClass.workspaceFolder && "uri" in dataClass.workspaceFolder) {

which checks the const uri = window?.activeTextEditor?.document.uri; which is undefined

const uri = window?.activeTextEditor?.document.uri;

Causing the check for the isExcluded to fall over and not run

if (isWorkspaceExcluded && dataClass.workspaceFolder && dataClass.workspaceFolder.name) {

from vscord.

xhayper avatar xhayper commented on June 3, 2024

this is really REALLY a problem, because that's the only way we know how to find what folder we are on

from vscord.

xhayper avatar xhayper commented on June 3, 2024

currently trying to think of a way we can work around this

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

@xhayper
Maybe this is actually an issue with the vscode npm plugin

My one thought which would be kinda quick and dirty would be to regex whatever value is the string for the workspace folder. But I assume this will cause more issues for other things so prob better finding a better soloution to this.

My next idea would be trying to use workspace.workspaceFolders as this gets back the folders. The issue here being it contanins a array of worspace folders. Unsure how you can have multiple workspace folders in vscode so I cant rlly play around with this and see if the array is in some sort of order

https://gyazo.com/77aabefb8508751f752bbfb609912dc8/draw

from vscord.

xhayper avatar xhayper commented on June 3, 2024

the problem with this is we need to use the current folder, so we have to figure out how the index affect the array before we use .workspaceFolders

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

Yea that why I was saying idk how to get multiple workspaces to see if there is some sort of index or order to it

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

So been thinking about this and poking around the vscode API docs. We can figure out if something is a remote by looking at the remoteName in the env. If it is not a remote it returns undefined. Thinking that we could encoperate a check around this to get the current file and folders a different way. Unsure atm just writing this here for now. When I get some time will see if I can figure out a good way of doing this

from vscord.

xhayper avatar xhayper commented on June 3, 2024

that sounds like a great idea, unfortunately, i am working on a rewrite of config system and it's might for me right now

i will work on it tomorrow after the config system, you can help me by writing the description of each config :P

from vscord.

nick22985 avatar nick22985 commented on June 3, 2024

Happy to help in anyway, not sure what u want me to do wtih the docs if you wanna talk about it more. Explain it here or u can add me on discord if u would like nick22985#1228

from vscord.

xhayper avatar xhayper commented on June 3, 2024

should be fixed in dd7e1b6

from vscord.

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.