Skip to content

Commit

Permalink
🐛 fix hover lsp (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
AucaCoyan authored Feb 25, 2024
1 parent 290cb50 commit 6cb893d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export function activate(context: vscode.ExtensionContext) {
// Notify the server about file changes to '.clientrc files contained in the workspace
fileEvents: vscode.workspace.createFileSystemWatcher("**/.clientrc"),
},
markdown: {
isTrusted: true
}
};

// Create the language client and start the client.
Expand Down
2 changes: 1 addition & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ connection.onHover(async (request: HoverParams) => {
// getting runtime import errors to remove this deprecation warning.
const contents = {
value: obj.hover,
language: "nushell",
kind: "markdown"
};

if (obj.hover != "") {
Expand Down

0 comments on commit 6cb893d

Please sign in to comment.