[mlir-vscode] Add better resolution for server file paths
authorRiver Riddle <riddleriver@gmail.com>
Thu, 31 Mar 2022 08:04:21 +0000 (01:04 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 5 Apr 2022 20:41:40 +0000 (13:41 -0700)
commitade148d936be84aa5df451de30201bc4f84e607c
tree097591a782a6cf2790d9f172ea59d3058cd7d951
parent2e51a322195694a8eac51bff4a687d06b0f50b42
[mlir-vscode] Add better resolution for server file paths

We currently require that server paths are full paths, which is
fairly inconvenient for a myriad of reasons. This commit
attempts to resolve a given server path with the current workspace.

This has a nice additional affect that we can now actually have
default server paths. This means that mlir-lsp-server and
mlir-pdll-lsp-server can be transparently picked up from
build directories (i.e. generally no need for upstream users to
configure the extension).

Fixes #54627

Differential Revision: https://reviews.llvm.org/D122792
mlir/utils/vscode/src/configWatcher.ts
mlir/utils/vscode/src/mlirContext.ts