Open Spartan322 opened 2 years ago
Any resolution yet ?? I still have this issue with the latest VSCode , C# Dev kit, and Omnisharp on Windows 11.
Ok I found the solution for my case. Firstly , this is the default behavior ( to NOT auto-trigger intellisense inside strings). To access intellisense inside an interpolated string , the default way is to start typing and then press Ctrl+Space bar for intellisense (quick suggestions). If you want to change this behavior to auto-trigger then go to user settings (by any of the many routes -- like Ctrl+, ). Search for "quick suggestions" and then toggle "on" the "strings" setting in "Editor : Quick Suggestions" section. Then reload window to see the effect. {Note: I found the default behavior much better. Auto trigger inside strings can get annoying for long strings).
Issue Description
When I'm typing a first part of a variable name in an interpolated string expression, the intellisense will not trigger, the exception to this so far has been when I try to access an already named variable inside it will trigger the intellisense properly.
Steps to Reproduce
Inside a function put in:
Type
initial_
into the interpolated string.Expected Behavior
An intellisense completion list for
initial_
.Actual Behavior
No list spawned, just reports a syntax error.
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.68.1 C# Extension: 1.25.0
Mono Information
OmniSharp using mono :6.13.0Dotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.301 Commit: 43f9b18481 Runtime Environment: OS Name: arch OS Version: OS Platform: Linux RID: arch-x64 Base Path: /usr/share/dotnet/sdk/6.0.301/ Host (useful for support): Version: 6.0.6 Commit: 7cca709db2 .NET SDKs installed: 3.1.120 [/usr/share/dotnet/sdk] 6.0.301 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.NETCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |better-comments|aaron-bond|3.0.0| |csharp|ms-dotnettools|1.25.0| |csharp-format-usings|gaoshan0621|0.0.4| |csharpextensions|kreativ-software|1.7.0| |docomment|k--kato|0.1.31| |gdscript|jjkim|0.0.2| |githistory|donjayamanne|0.6.19| |gitignore|codezombiech|0.7.0| |godot-tools|geequlim|1.3.1| |ilspy-vscode|icsharpcode|0.13.1| |mono-debug|ms-vscode|0.16.2| |open-in-browser|techer|2.0.0| |path-intellisense|christian-kohler|2.8.0| |sln-support|logerfo|0.0.1| |todo-tree|Gruntfuggly|0.0.215| |vscode-dotnet-runtime|ms-dotnettools|1.2.0| |vscode-icons|vscode-icons-team|11.12.0| |vscode-open-in-github|ziyasal|1.4.1| |vscode-solution-explorer|fernandoescolar|0.4.7| |vscode-todo-highlight|wayou|1.0.5|;