1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

chore: 完善部分函数注释

This commit is contained in:
2025-12-05 10:01:38 +08:00
parent e4240b2c5d
commit 885f208c80
4 changed files with 25 additions and 0 deletions

View File

@@ -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)) {

View File

@@ -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)) {

View File

@@ -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> {

View File

@@ -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 切割文本