[all-commits] [llvm/llvm-project] 0c4427: [mlir-vscode] Explicitly set the return type for d...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Jul 7 13:36:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c442776a90da8768527f74ce2403f7a4b112809
      https://github.com/llvm/llvm-project/commit/0c442776a90da8768527f74ce2403f7a4b112809
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M mlir/utils/vscode/src/mlirContext.ts

  Log Message:
  -----------
  [mlir-vscode] Explicitly set the return type for didOpen

In the newer versions of the language client, this explicitly expects a
Promise<void> return type, otherwise it errors out.

Fixes #56297

Differential Revision: https://reviews.llvm.org/D129181


  Commit: 7e088855829e9a641d7310236554a24a3c84dfa6
      https://github.com/llvm/llvm-project/commit/7e088855829e9a641d7310236554a24a3c84dfa6
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M mlir/utils/vscode/package-lock.json
    M mlir/utils/vscode/package.json

  Log Message:
  -----------
  [mlir-vscode] Bump the language client version

This includes a fix for a code completion/document update bug where
code completion results were being requested before the document actually
updated.

Differential Revision: https://reviews.llvm.org/D129182


  Commit: ed2fb1736ac1515838d136b57e5ad9a5c805001b
      https://github.com/llvm/llvm-project/commit/ed2fb1736ac1515838d136b57e5ad9a5c805001b
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    A mlir/include/mlir/Parser/CodeComplete.h
    M mlir/include/mlir/Parser/Parser.h
    M mlir/lib/Parser/AffineParser.cpp
    M mlir/lib/Parser/DialectSymbolParser.cpp
    M mlir/lib/Parser/Lexer.cpp
    M mlir/lib/Parser/Lexer.h
    M mlir/lib/Parser/Parser.cpp
    M mlir/lib/Parser/Parser.h
    M mlir/lib/Parser/ParserState.h
    M mlir/lib/Parser/Token.cpp
    M mlir/lib/Parser/Token.h
    M mlir/lib/Parser/TokenKinds.def
    M mlir/lib/Tools/lsp-server-support/Protocol.h
    M mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
    M mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
    M mlir/lib/Tools/mlir-lsp-server/MLIRServer.h
    A mlir/test/mlir-lsp-server/completion.test
    M mlir/test/mlir-lsp-server/initialize-params.test

  Log Message:
  -----------
  [mlir:LSP] Add support for MLIR code completions

This commit adds code completion results to the MLIR LSP using
a new code completion context in the MLIR parser. This commit
adds initial completion for dialect, operation, SSA value, and
block names.

Differential Revision: https://reviews.llvm.org/D129183


Compare: https://github.com/llvm/llvm-project/compare/5b32e4755959...ed2fb1736ac1


More information about the All-commits mailing list