chore: 完善部分函数注释
This commit is contained in:
@@ -25,6 +25,14 @@ const userSelection: UserSelection = {
|
||||
lastConvertedSelectionsText: [],
|
||||
};
|
||||
|
||||
/**
|
||||
* 选中文本改变时触发
|
||||
*
|
||||
* @param selections
|
||||
* @param textList
|
||||
* @param eol
|
||||
* @returns
|
||||
*/
|
||||
export function onUserSelectionUpdated(selections: readonly vscode.Selection[], textList: string[], eol: EOL): void {
|
||||
userSelection.currentSelections = selections;
|
||||
if (textList.length !== 0 && isStringArrayEqual(textList, userSelection.lastConvertedSelectionsText)) {
|
||||
|
||||
@@ -25,6 +25,14 @@ const userSelection: UserSelection = {
|
||||
lastConvertedSelectionsText: [],
|
||||
};
|
||||
|
||||
/**
|
||||
* 选中文本改变时触发
|
||||
*
|
||||
* @param selections
|
||||
* @param textList
|
||||
* @param eol
|
||||
* @returns
|
||||
*/
|
||||
export function onUserSelectionUpdated(selections: readonly vscode.Selection[], textList: string[], eol: EOL): void {
|
||||
userSelection.currentSelections = selections;
|
||||
if (textList.length !== 0 && isStringArrayEqual(textList, userSelection.lastConvertedSelectionsText)) {
|
||||
|
||||
@@ -19,6 +19,10 @@ interface RecommendItem {
|
||||
/**
|
||||
* 弹出的提示
|
||||
*
|
||||
* @param textList
|
||||
* @param eol
|
||||
* @param enabledQuickPickSupportCases
|
||||
* @returns
|
||||
* @since 2024-12-14
|
||||
*/
|
||||
function generateOptionsBasedOnText(textList: string[], eol: EOL, enabledQuickPickSupportCases: Array<QuickPickSupportCaseItem>): Array<QuickPickItemEx> {
|
||||
|
||||
@@ -18,6 +18,11 @@ interface RecommendItem {
|
||||
|
||||
/**
|
||||
* 弹出的提示
|
||||
*
|
||||
* @param textList
|
||||
* @param eol
|
||||
* @param enabledQuickPickSupportCases
|
||||
* @returns
|
||||
*/
|
||||
function generateOptionsBasedOnText(textList: string[], eol: EOL, enabledQuickPickSupportCases: Array<QuickPickSupportCaseItem>): Array<QuickPickItemEx> {
|
||||
// Cut text 切割文本
|
||||
|
||||
Reference in New Issue
Block a user