Skip to content

Commit

Permalink
add internal default tooltip text
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Nov 1, 2024
1 parent b6949b7 commit 64ba895
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Editor/Rstudio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ declare namespace rstudio.tooltip {
};
function contentHtml(word: string): string;
const imports_keyword: string;
const return_keyword: string;
const keywords: {
imports: string;
return: string;
};
}
4 changes: 3 additions & 1 deletion Editor/Rstudio.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Editor/Rstudio.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion Editor/rstudio/rstudio/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ module rstudio.tooltip {
'Loading/attaching of the .NET clr package module',
'similar to the <code>library</code> and <code>require</code> load and attach add-on .NET clr package modules.');

export const return_keyword = tooltip(
'Returns the function value to caller',
`If value is missing, NULL is returned. If it is a single expression, the value of the evaluated expression is returned.
(The expression is evaluated as soon as return is called, in the evaluation frame of the function and before any on.exit expression is evaluated.)
If the end of a function is reached without calling return, the value of the last evaluated expression is returned.`);

export const keywords = {
"imports": imports_keyword
"imports": imports_keyword,
'return': return_keyword
};
}

0 comments on commit 64ba895

Please sign in to comment.