Skip to content

Commit

Permalink
fix(auto-complete): use auto-complete from HTML language for closing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Lieben committed May 13, 2017
1 parent 559f3c2 commit 180773e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/server/Completions/ElementCompletionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ export default class ElementCompletionFactory {
public create(parent: string): Array<CompletionItem> {

let result: Array<CompletionItem> = [];
if (parent) {
let previousElement = this.library.elements[parent];
if (previousElement) {
result.push({
documentation: MarkedString.fromPlainText(previousElement.documentation).toString(),
detail: 'HTMLElement',
insertText: '/' + parent + '>',
insertTextFormat: InsertTextFormat.PlainText,
kind: CompletionItemKind.Property,
label: `</${parent}>`,
filterText: `/${parent}>`
});
}
}

if (parent) {
let parentElementDef = <MozDocElement> this.library.elements[parent];
Expand Down

0 comments on commit 180773e

Please sign in to comment.