Skip to content

Commit 1144d65

Browse files
committed
Merge pull request #412 from hoanhtien/fixMultilineCommentTests
Fix multiline comment tests
2 parents ce96c61 + 803a7ca commit 1144d65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Nodejs/Product/Nodejs/Editor/EditorExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ internal static bool IsMultilineComment(this SnapshotPoint insertionPoint, out S
172172
var classifier = buffer.GetNodejsClassifier();
173173

174174
// Find if this is a comment and then find the starting position of the comment if so.
175-
var classificationSpans = buffer.GetNodejsClassifier().GetClassificationSpans(
175+
var classificationSpans = classifier.GetClassificationSpans(
176176
new SnapshotSpan(insertionPoint.Snapshot, new Span(insertionPoint.Position - 1, 1)));
177177

178178
foreach (var span in classificationSpans) {

Nodejs/Tests/Core/MultiLineCommentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void TestMultilineCommenting(string startingText, string expectedEndingT
142142

143143
// create the view and request a multiline comment format
144144
var view = new MockTextView(
145-
new MockTextBuffer(startingText, "C:\\app.js", NodejsConstants.Nodejs));
145+
new MockTextBuffer(content: startingText, contentType: NodejsConstants.Nodejs, filename: "C:\\app.js"));
146146
var insertionPoint = new SnapshotPoint(view.TextSnapshot, insertionPosition);
147147

148148
// Setup mock registry service and classification provider for the IsMultilineComment method.

0 commit comments

Comments
 (0)