Skip to content

Commit

Permalink
Merge pull request #84 from neild3r/fully-qualify-types
Browse files Browse the repository at this point in the history
Limit head fetching to first 150 characters
  • Loading branch information
neild3r committed Mar 25, 2018
2 parents 2987442 + 47df53c commit 67b91cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export abstract class Block
public getClassHead():string
{
if (this.classHead === undefined) {
let text = this.editor.document.getText();
let text = this.editor.document.getText(new Range(new Position(0, 0), new Position(150,0)));
let regex = /\s*(abstract|final)?\s*(class|trait|interface)/gm;
let match = regex.exec(text);
let end = this.editor.document.positionAt(match.index);
Expand Down

0 comments on commit 67b91cb

Please sign in to comment.