Giter VIP home page Giter VIP logo

Comments (6)

mishkinf avatar mishkinf commented on June 14, 2024 1

@kkorus Will need to investigate vscode.executeDocumentSymbolProvider to see what symbols typescript returns. I could set the ability to choose what type of symbols to navigate to.. that was a planned feature but I have been busy working on other things. Your desired functionality would be to navigate the cursor to right before the "b" in "buildConnectionString"?

from vscode-goto-next-previous-member.

xinaesthete avatar xinaesthete commented on June 14, 2024 1

I find that in my (JS) code, it seems to jump to wherever a member is declared, even if it's something like a trivial local variable in a folded function... which then means that it unfolds the function, which is somewhat limiting usefulness for me just now. I imagine this isn't the intended behaviour - looking at the screenshot above, I find it hard to believe it wouldn't unfold buildConnectionString and jump somewhere inside... it may of course be that the API deals better with well structured TypeScript than my rat's nest of JS ;)

I was going to file a separate issue, but this seems somewhat related.

from vscode-goto-next-previous-member.

kkorus avatar kkorus commented on June 14, 2024

@mishkinf Yes, right before b.

from vscode-goto-next-previous-member.

mishkinf avatar mishkinf commented on June 14, 2024

@xinaesthete I believe it should be relatively simple to provide a way to customize what somebody would like it to stop at. I agree with your sentiment. Ive been ultra busy the past week or so but I will try get to it! If you want to submit a PR I am open to that too!

from vscode-goto-next-previous-member.

xinaesthete avatar xinaesthete commented on June 14, 2024

Could be a way to dip my toes into VSCode extension dev... I might take a look, but no promises.

Cheers!

from vscode-goto-next-previous-member.

kamenminkov avatar kamenminkov commented on June 14, 2024

Kind of related - I think there should be a way to skip access modifiers in TypeScript and go to the beginning of an actual identifier. Example:

class Foo {
	private bar(): void {

	}

	public baz(): void {

	}
}

As it is now, it would place the cursor in front of private and public whereas it would be (IMO) more useful to have it in front of bar() and baz() respectively.

Should I submit this as a separate issue?

from vscode-goto-next-previous-member.

Related Issues (18)

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.