🩹 don't show inline tips in output view
This commit is contained in:
parent
74c1eb5e25
commit
5aa1ec0fe6
1 changed files with 9 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ const inlineTipDecoration = vscode.window.createTextEditorDecorationType({
|
|||
function handleSelectionChange(e: vscode.TextEditorSelectionChangeEvent) {
|
||||
const selection = e.selections[0];
|
||||
const editor = e.textEditor;
|
||||
|
||||
if (editor.document.uri.toString() === "output:tasks") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
selection.isEmpty ||
|
||||
vscode.workspace
|
||||
|
|
@ -69,6 +74,10 @@ export function setupInlineTips(context: vscode.ExtensionContext) {
|
|||
context.subscriptions.push(
|
||||
vscode.window.onDidChangeActiveTextEditor((editor) => {
|
||||
if (editor?.document.getText() === "") {
|
||||
if (editor.document.uri.toString() === "output:tasks") {
|
||||
return;
|
||||
}
|
||||
|
||||
editor.setDecorations(emptyFileTooltipDecoration, [
|
||||
{
|
||||
range: new vscode.Range(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue