Giter Site home page Giter Site logo

Comments (4)

MikhailArkhipov avatar MikhailArkhipov commented on May 19, 2024 1

Could you please open separate issue. This one was explicitly about moving code from TS to C# and adding additional functionality. This item was completed.

Short answer: TS side does not have AST. I guess you are talking about smart indent as in using AST vs relying on regex?

Speaking of Omni, it is not using LSP. They have regular TS extension which then runs their process manually and communicates with it via custom protocol. This is not technically a language server at all. Omni was implemented way before LSP was born.

When actual LS/LSP runs the extension TS/editor part is bypassed and requests go directly to the LS process.

from python-language-server.

MikhailArkhipov avatar MikhailArkhipov commented on May 19, 2024

Reducing cost to actual for this milestone - basically to the PR review.

from python-language-server.

jakebailey avatar jakebailey commented on May 19, 2024

Finished in #126.

from python-language-server.

DonJayamanne avatar DonJayamanne commented on May 19, 2024

Would like to discuss this once again:

  • Today indentation of code is implemented within the extension (and buggy, as we do not have the AST information, etc)
  • The C# extension supports similar features (indentation changes) when you type the character }.
  • We need the same thing, when users type the character :.

The decision was get the extension to do the formatting.
However, if C# extension (using the language server) can do this, they why can't we do the same.

https://github.com/OmniSharp/omnisharp-vscode/blob/f0a0336ced8cb44f78bdee88120bfe9d62a596c0/src/features/formattingEditProvider.ts#L44

export async function formatAfterKeystroke(server: OmniSharpServer, request: protocol.FormatAfterKeystrokeRequest, token: vscode.CancellationToken) {
https://github.com/OmniSharp/omnisharp-vscode/blob/f0a0336ced8cb44f78bdee88120bfe9d62a596c0/src/omnisharp/utils.ts#L42

Related to microsoft/vscode-python#481

from python-language-server.

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.