Skip to content

Commit 82d101b

Browse files
author
Andrew Hall (METAL)
committed
Merged PR 476382: Merge prerelease into features/lsp_tools_host
Related work items: #1829814, #1830006
2 parents 173be18 + 0f46fe3 commit 82d101b

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Note: If working on a solution that requires versions prior to .NET 6, install a
2020
* Code Completions
2121
* Roslyn powered semantic awareness
2222

23-
## How to use Omnisharp?
24-
If you don’t want to take advantage of the great Language Server features, you can revert back to using Omnisharp in the pre-release extension by going to the Extension settings and setting `dotnet.server.useOmnisharp` to true. This will require that you restart VS Code to take effect. You can also switch back to the Switch to Release Version to revert back to the C# extension powered by OmniSharp.
23+
## How to use OmniSharp?
24+
If you don’t want to take advantage of the great Language Server features, you can revert back to using OmniSharp in the pre-release extension by going to the Extension settings and setting `dotnet.server.useOmnisharp` to true. This will require that you restart VS Code to take effect. You can also switch back to the Switch to Release Version to revert back to the C# extension powered by OmniSharp.
2525

2626

2727
## Found a Bug?
@@ -46,7 +46,7 @@ For more information see the [.NET Foundation Code of Conduct](http://www.dotnet
4646

4747
### Contribution License Agreement
4848

49-
By signing the [CLA](https://cla.dotnetfoundation.org/OmniSharp/omnisharp-roslyn), the community is free to use your contribution to [.NET Foundation](http://www.dotnetfoundation.org) projects.
49+
By signing the [CLA](https://cla.dotnetfoundation.org/), the community is free to use your contribution to [.NET Foundation](http://www.dotnetfoundation.org) projects.
5050

5151
### .NET Foundation
5252

@@ -69,4 +69,4 @@ If someone has already filed an issue that encompasses your feedback, please lea
6969
Let us know what you think of the extension by taking the quick survey.
7070

7171

72-
[csdevkitextension]: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscodeintellicode-csharp
72+
[csdevkitextension]: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,12 +1643,14 @@
16431643
{
16441644
"command": "csharp.reportIssue",
16451645
"title": "Report an issue",
1646-
"category": "CSharp"
1646+
"category": "CSharp",
1647+
"enablement": "config.dotnet.server.useOmnisharp"
16471648
},
16481649
{
16491650
"command": "csharp.showDecompilationTerms",
16501651
"title": "Show the decompiler terms agreement",
1651-
"category": "CSharp"
1652+
"category": "CSharp",
1653+
"enablement": "config.dotnet.server.useOmnisharp"
16521654
},
16531655
{
16541656
"command": "extension.showRazorCSharpWindow",

src/razor/src/Completion/RazorCompletionItemProvider.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ export class RazorCompletionItemProvider
118118
completionItem.commitCharacters = completionItem.commitCharacters.filter(
119119
commitChar => commitChar !== '{' && commitChar !== '(' && commitChar !== '*');
120120
}
121+
122+
// for intellicode items, manually set the insertText to avoid including stars in the commit
123+
if (completionItem.label.toString().includes('\u2605')){
124+
// vscode.CompletionItem does not have textEditText, which was added in 3.17
125+
let intellicodeCompletion: CompletionItem = completionItem as CompletionItem;
126+
if (intellicodeCompletion.textEditText){
127+
completionItem.insertText = intellicodeCompletion.textEditText;
128+
}
129+
}
121130
}
122131

123132
const isIncomplete = completions instanceof Array ? false

0 commit comments

Comments
 (0)