Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat brackets completion in quotestring #43

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style(lint): fix tslint
  • Loading branch information
NewFuture committed Jun 23, 2019
commit 4a86642c32cda6bbbd30566f4504471e498d11f6
6 changes: 3 additions & 3 deletions src/plugin/AutoCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default abstract class AutoCompletion {
/**
* 闭合标签自动完成
* @param doc
* @param pos
* @param pos
*/
async createCloseTagCompletionItem(doc: TextDocument, pos: Position): Promise<CompletionItem[]> {
const text = doc.getText(new Range(new Position(0, 0), pos))
Expand Down Expand Up @@ -368,7 +368,7 @@ export default abstract class AutoCompletion {
* 排序显示规则
* 1. 正常函数 如 `onTap`
* 2. 下划线函数 `_save`
* 3. 生命周期函数 `_onShow`
* 3. 生命周期函数 `onShow`
*/
if (priotity > 0) {
c.detail += '(生命周期函数)'
Expand All @@ -389,7 +389,7 @@ export default abstract class AutoCompletion {
* @param text
*/
function getMethodKind(text: string) {
return /^\s*[\w_$][\w_$\d]*\s*:/.test(text) ? CompletionItemKind.Property : CompletionItemKind.Method;
return /^\s*[\w_$][\w_$\d]*\s*:/.test(text) ? CompletionItemKind.Property : CompletionItemKind.Method
}

function autoSuggestCommand() {
Expand Down