Skip to content

Commit

Permalink
Implement completion for top-level Import element.
Browse files Browse the repository at this point in the history
  • Loading branch information
tintoy committed Feb 11, 2018
1 parent 21635b3 commit 9fd52d1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.2.24.{build}
version: 0.2.25.{build}
image: Visual Studio 2017
build_script:
- ps: >-
Expand Down Expand Up @@ -39,8 +39,7 @@ deploy:
draft: true
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
appveyor_repo_tag: true # only publish when tagged
notifications:
- provider: Email
to:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v0.2.25

* Implement completion for top-level `<Import>` element.

## v0.2.24

* Implement default value(s) for well-known property completions (tintoy/msbuild-project-tools-vscode#31).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,21 @@ public IEnumerable<CompletionItem> GetCompletionItems(Range replaceRange)
},
InsertTextFormat = InsertTextFormat.Snippet
};

// <Import Project="ProjectFile" />
yield return new CompletionItem
{
Label = "<Import>",
Detail = "Element",
Documentation = MSBuildSchemaHelp.ForElement("Import"),
SortText = Priority + "<Import>",
TextEdit = new TextEdit
{
NewText = "<Import Project=\"${1:ProjectFile}\" />$0",
Range = completionRange
},
InsertTextFormat = InsertTextFormat.Snippet
};
}
}
}

0 comments on commit 9fd52d1

Please sign in to comment.