Skip to content

Commit 5c8e351

Browse files
author
Arthur Ozga
committed
fixed logging
1 parent ae721d3 commit 5c8e351

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6759,6 +6759,7 @@ namespace ts {
67596759
function getIndentationAtPosition(fileName: string, position: number, editorOptions: EditorOptions) {
67606760
let start = new Date().getTime();
67616761
let sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
6762+
log("getIndentationAtPosition: getCurrentSourceFile: " + (new Date().getTime() - start));
67626763

67636764
start = new Date().getTime();
67646765

@@ -6813,7 +6814,6 @@ namespace ts {
68136814
function getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion {
68146815
let start = new Date().getTime();
68156816
let sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
6816-
log("getDocCommentTemplateAtPosition: getCurrentSourceFile: " + (new Date().getTime() - start));
68176817

68186818
// Check if in a context where we don't want to perform any insertion
68196819
if (isInString(sourceFile, position) || isInComment(sourceFile, position) || hasDocComment(sourceFile, position)) {

0 commit comments

Comments
 (0)