Closed ThaDaVos closed 10 months ago
Created new issue because of: https://github.com/dotnet/vscode-csharp/issues/5916#issuecomment-1669817390
Very easy to reproduce, this is a default vscode environment with all special settings removed, environment has all the other requisites (.sln file, etc.)
https://github.com/dotnet/vscode-csharp/assets/15258962/1c0f59cd-ad91-4981-927e-15ce65fa7f5b
Also probably a dupe of #6051.
Yup closing as dupe of https://github.com/dotnet/vscode-csharp/issues/6051
Type: Bug
Issue Description
I thought it was since I installed the C# DevKit, but even disabling it doesn't restore the function -but when you type a class name, it correctly shows the namespace etc - but on autocomplete (accepting the value) it doesn't add the corresponding using directive to the code file - I have to use the yellow lightbulb's add using directive option to add it now
Steps to Reproduce
Probably, update to latest C# extension version
Expected Behavior
When accepting the auto-complete, it should add the using directive
Actual Behavior
It's not adding the using directive
Logs
extension_logs.zip
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.81.0 C# Extension: 2.0.328 Using OmniSharp: false
Dotnet Information
Host: Version: 7.0.10 Architecture: x64 Commit: a6dbb800a4 .NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.NETCore.App 7.0.10 [c:\Users\Dylan\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\7.0.10\shared\Microsoft.NETCore.App] Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation] Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |auto-close-tag|formulahendry|0.5.14|formulahendry.auto-close-tag-0.5.14| |auto-rename-tag|formulahendry|0.1.10|formulahendry.auto-rename-tag-0.1.10| |azure-account|ms-vscode|0.11.5|ms-vscode.azure-account-0.11.5| |azure-repos|ms-vscode|0.37.2023080201|ms-vscode.azure-repos-0.37.2023080201| |bash-beautify|shakram02|0.1.1|shakram02.bash-beautify-0.1.1| |batch-replacer|angelomollame|1.2.1|angelomollame.batch-replacer-1.2.1| |binary-file-viewer|maziac|1.7.3|maziac.binary-file-viewer-1.7.3| |browse-lite|antfu|0.3.2|antfu.browse-lite-0.3.2| |chatgpt-vscode|genieai|0.0.8|genieai.chatgpt-vscode-0.0.8| |Clarion|Fushnisoft|1.0.18|fushnisoft.clarion-1.0.18| |clarion-extensions|msarson|0.2.5|msarson.clarion-extensions-0.2.5| |code-spell-checker|streetsidesoftware|2.20.5|streetsidesoftware.code-spell-checker-2.20.5| |code-spell-checker-dutch|streetsidesoftware|0.4.0|streetsidesoftware.code-spell-checker-dutch-0.4.0| |codesnap-plus|huibizhang|1.4.1|huibizhang.codesnap-plus-1.4.1| |codetour|vsls-contrib|0.0.59|vsls-contrib.codetour-0.0.59| |commit-message-editor|adam-bender|0.25.0|adam-bender.commit-message-editor-0.25.0| |compare-folders|moshfeu|0.23.0|moshfeu.compare-folders-0.23.0| |composer-Intelephense|muath-ye|1.0.1|muath-ye.composer-intelephense-1.0.1| |console-ninja|WallabyJs|0.0.195|wallabyjs.console-ninja-0.0.195| |cpptools-extension-pack|ms-vscode|1.3.0|ms-vscode.cpptools-extension-pack-1.3.0| |cpptools-themes|ms-vscode|2.0.0|ms-vscode.cpptools-themes-2.0.0| |csdevkit|ms-dotnettools|0.4.2|ms-dotnettools.csdevkit-0.4.2-win32-x64| |csharp|ms-dotnettools|2.0.328|ms-dotnettools.csharp-2.0.328-win32-x64| |csharp-prettier-docs|poohcom1|1.5.1|poohcom1.csharp-prettier-docs-1.5.1| |docify|AIC|1.3.4|aic.docify-1.3.4| |dotenv|mikestead|1.0.1|mikestead.dotenv-1.0.1| |dotnet-core-essentials|KishoreIthadi|0.0.8|kishoreithadi.dotnet-core-essentials-0.0.8| |dotnet-interactive-vscode|ms-dotnettools|1.0.4403010|ms-dotnettools.dotnet-interactive-vscode-1.0.4403010| |easy-snippet|inu1255|0.6.3|inu1255.easy-snippet-0.6.3| |ecdc|mitchdenny|1.8.0|mitchdenny.ecdc-1.8.0| |editorconfig-vscode-snippet|zgudino|0.2.0|zgudino.editorconfig-vscode-snippet-0.2.0| |emojisense|bierner|0.10.0|bierner.emojisense-0.10.0| |explorer-exclude|PeterSchmalfeldt|1.3.2|peterschmalfeldt.explorer-exclude-1.3.2| |fluent-icons|miguelsolorio|0.0.18|miguelsolorio.fluent-icons-0.0.18| |git-semantic-commit|nitayneeman|2.0.0|nitayneeman.git-semantic-commit-2.0.0| |gitlens|eamodio|14.2.0|eamodio.gitlens-14.2.0| |gremlins|nhoizey|0.26.0|nhoizey.gremlins-0.26.0| |i18n-ally|lokalise|2.10.0|lokalise.i18n-ally-2.10.0| |iconify|antfu|0.6.1|antfu.iconify-0.6.1| |insertnumbers|Asuka|0.9.1|asuka.insertnumbers-0.9.1| |JavaScriptSnippets|xabikos|1.8.0|xabikos.javascriptsnippets-1.8.0| |json-helper|praneshpsg239|1.0.1|praneshpsg239.json-helper-1.0.1| |jsonpath-extract|davidmarek|1.2.3|davidmarek.jsonpath-extract-1.2.3| |jupyter|ms-toolsai|2023.7.1002162226|ms-toolsai.jupyter-2023.7.1002162226-win32-x64| |jupyter-keymap|ms-toolsai|1.1.2|ms-toolsai.jupyter-keymap-1.1.2| |jupyter-renderers|ms-toolsai|1.0.17|ms-toolsai.jupyter-renderers-1.0.17| |laravel-blade|cjhowe7|1.1.2|cjhowe7.laravel-blade-1.1.2| |laravel-blade|onecentlin|1.34.0|onecentlin.laravel-blade-1.34.0| |laravel-model-snippets|ahinkle|2.0.0|ahinkle.laravel-model-snippets-2.0.0| |laravel5-snippets|onecentlin|1.17.0|onecentlin.laravel5-snippets-1.17.0| |latte|Kasik96|0.18.0|kasik96.latte-0.18.0| |LiveServer|ritwickdey|5.7.9|ritwickdey.liveserver-5.7.9| |lnav|lnav|0.1.0|lnav.lnav-0.1.0| |LogFileHighlighter|emilast|2.16.0|emilast.logfilehighlighter-2.16.0| |lorem-whatever|jobe451|1.0.2|jobe451.lorem-whatever-1.0.2| |markdown-checkbox|bierner|0.4.0|bierner.markdown-checkbox-0.4.0| |material-icon-theme|PKief|4.29.0|pkief.material-icon-theme-4.29.0| |material-product-icons|PKief|1.5.0|pkief.material-product-icons-1.5.0| |night-owl|sdras|2.0.1|sdras.night-owl-2.0.1| |nuget-extensions-vscode|randymarsh77|0.1.2|randymarsh77.nuget-extensions-vscode-0.1.2| |open-in-external-app|YuTengjing|0.9.12|yutengjing.open-in-external-app-0.9.12| |openscad-language-support|Leathong|1.2.5|leathong.openscad-language-support-1.2.5| |output-colorizer|IBM|0.1.2|ibm.output-colorizer-0.1.2| |partial-diff|ryu1kn|1.4.3|ryu1kn.partial-diff-1.4.3| |password-generator|ftonato|0.0.5|ftonato.password-generator-0.0.5| |pdf|tomoki1207|1.2.2|tomoki1207.pdf-1.2.2| |php-awesome-snippets|hakcorp|1.1.3|hakcorp.php-awesome-snippets-1.1.3| |php-debug|xdebug|1.33.0|xdebug.php-debug-1.33.0| |plantuml|jebbs|2.17.5|jebbs.plantuml-2.17.5| |playwright-snippets|nitayneeman|1.0.1|nitayneeman.playwright-snippets-1.0.1| |powershell|ms-vscode|2023.6.0|ms-vscode.powershell-2023.6.0| |prettier-vscode|esbenp|10.1.0|esbenp.prettier-vscode-10.1.0| |pwa-studio|PWABuilder|1.3.4|pwabuilder.pwa-studio-1.3.4| |rainbow-csv|mechatroner|3.7.0|mechatroner.rainbow-csv-3.7.0| |regionfolder|maptz|1.0.22|maptz.regionfolder-1.0.22| |remote-containers|ms-vscode-remote|0.304.0|ms-vscode-remote.remote-containers-0.304.0| |remote-explorer|ms-vscode|0.4.1|ms-vscode.remote-explorer-0.4.1| |remote-repositories|ms-vscode|0.39.2023080201|ms-vscode.remote-repositories-0.39.2023080201| |remote-server|ms-vscode|1.4.0|ms-vscode.remote-server-1.4.0| |remote-ssh|ms-vscode-remote|0.102.0|ms-vscode-remote.remote-ssh-0.102.0| |remote-ssh-edit|ms-vscode-remote|0.86.0|ms-vscode-remote.remote-ssh-edit-0.86.0| |remote-wsl|ms-vscode-remote|0.81.0|ms-vscode-remote.remote-wsl-0.81.0| |remotehub|GitHub|0.61.2023080201|github.remotehub-0.61.2023080201| |rewrap|stkb|1.16.3|stkb.rewrap-1.16.3| |semanticdiff|semanticdiff|0.8.4|semanticdiff.semanticdiff-0.8.4-win32-x64| |sftp|Natizyskunk|1.16.3|natizyskunk.sftp-1.16.3| |shell-format|foxundermoon|7.2.5|foxundermoon.shell-format-7.2.5| |sln-support|logerfo|0.0.1|logerfo.sln-support-0.0.1| |sqlite-viewer|qwtel|0.3.13|qwtel.sqlite-viewer-0.3.13| |sqltools|mtxr|0.28.0|mtxr.sqltools-0.28.0| |svg|jock|1.5.3|jock.svg-1.5.3| |swap|fausto95|0.0.5|fausto95.swap-0.0.5| |tasks|actboy168|0.16.0|actboy168.tasks-0.16.0| |test-adapter-converter|ms-vscode|0.1.8|ms-vscode.test-adapter-converter-0.1.8| |typescript-snippets|designbyajay|0.1.10|designbyajay.typescript-snippets-0.1.10| |unique-window-colors|stuart|1.0.51|stuart.unique-window-colors-1.0.51| |visual-nuget|fullstackspider|0.2.1|fullstackspider.visual-nuget-0.2.1| |vite|antfu|0.2.5|antfu.vite-0.2.5| |vitest-explorer|ZixuanChen|0.2.42|zixuanchen.vitest-explorer-0.2.42| |volar|Vue|1.8.8|vue.volar-1.8.8| |vs-color-picker|lihui|1.0.0|lihui.vs-color-picker-1.0.0| |vsc-community-material-theme|Equinusocio|1.4.6|equinusocio.vsc-community-material-theme-1.4.6| |vsc-material-theme-icons|equinusocio|2.8.0|equinusocio.vsc-material-theme-icons-2.8.0| |vscode-apache|mrmlnc|1.2.0|mrmlnc.vscode-apache-1.2.0| |vscode-azureappservice|ms-azuretools|0.25.0|ms-azuretools.vscode-azureappservice-0.25.0| |vscode-azureresourcegroups|ms-azuretools|0.7.5|ms-azuretools.vscode-azureresourcegroups-0.7.5| |vscode-azurevirtualmachines|ms-azuretools|0.6.5|ms-azuretools.vscode-azurevirtualmachines-0.6.5| |vscode-colormate|KevinGhadyani|3.2.2|kevinghadyani.vscode-colormate-3.2.2| |vscode-data-preview|RandomFractalsInc|2.3.0|randomfractalsinc.vscode-data-preview-2.3.0| |vscode-docker|ms-azuretools|1.26.0|ms-azuretools.vscode-docker-1.26.0| |vscode-dotnet-pack|ms-dotnettools|1.0.12|ms-dotnettools.vscode-dotnet-pack-1.0.12| |vscode-dotnet-runtime|ms-dotnettools|1.6.0|ms-dotnettools.vscode-dotnet-runtime-1.6.0| |vscode-duplicate|mrmlnc|1.2.1|mrmlnc.vscode-duplicate-1.2.1| |vscode-firefox-debug|firefox-devtools|2.9.8|firefox-devtools.vscode-firefox-debug-2.9.8| |vscode-google-translate|funkyremi|1.4.13|funkyremi.vscode-google-translate-1.4.13| |vscode-graphql-syntax|GraphQL|1.2.2|graphql.vscode-graphql-syntax-1.2.2| |vscode-intelephense-client|bmewburn|1.9.5|bmewburn.vscode-intelephense-client-1.9.5| |vscode-jupyter-cell-tags|ms-toolsai|0.1.8|ms-toolsai.vscode-jupyter-cell-tags-0.1.8| |vscode-jupyter-slideshow|ms-toolsai|0.1.5|ms-toolsai.vscode-jupyter-slideshow-0.1.5| |vscode-nginx|william-voyek|0.7.2|william-voyek.vscode-nginx-0.7.2| |vscode-open-in-code|fabiospampinato|1.1.6|fabiospampinato.vscode-open-in-code-1.1.6| |vscode-openapi|42Crunch|4.18.6|42crunch.vscode-openapi-4.18.6| |vscode-opennewinstance|chrisdias|0.0.12|chrisdias.vscode-opennewinstance-0.0.12| |vscode-peacock|johnpapa|4.2.2|johnpapa.vscode-peacock-4.2.2| |vscode-phpunit|recca0120|3.1.3|recca0120.vscode-phpunit-3.1.3| |vscode-random|jrebocho|1.11.0|jrebocho.vscode-random-1.11.0| |vscode-remote-extensionpack|ms-vscode-remote|0.24.0|ms-vscode-remote.vscode-remote-extensionpack-0.24.0| |vscode-taskexplorer|spmeesseman|2.13.2|spmeesseman.vscode-taskexplorer-2.13.2| |vscode-test-explorer|hbenl|2.21.1|hbenl.vscode-test-explorer-2.21.1| |vscode-thunder-client|rangav|2.10.2|rangav.vscode-thunder-client-2.10.2| |vscode-versionlens|pflannery|1.5.0|pflannery.vscode-versionlens-1.5.0| |vscode-xml|redhat|0.26.1|redhat.vscode-xml-0.26.1-win32-x64| |vscode-yaml|redhat|1.14.0|redhat.vscode-yaml-1.14.0| |vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-win32-x64| |vue-designer|ktsn|0.7.1|ktsn.vue-designer-0.7.1| |vue-vscode-snippets|sdras|3.1.1|sdras.vue-vscode-snippets-3.1.1| |vuetify-vscode|vuetifyjs|0.2.0|vuetifyjs.vuetify-vscode-0.2.0| |WebTemplateStudio-dev-nightly|WASTeamAccount|0.7.2117301|wasteamaccount.webtemplatestudio-dev-nightly-0.7.2117301| |xlf-editor|aar|1.1.42|aar.xlf-editor-1.1.42| |xml|DotJoshJohnson|2.5.1|dotjoshjohnson.xml-2.5.1| |yaclock|jameslan|1.0.1|jameslan.yaclock-1.0.1|;Extension version: 2.0.328 VS Code version: Code 1.81.0 (6445d93c81ebe42c4cbd7a60712e0b17d9463e97, 2023-08-02T12:37:13.485Z) OS version: Windows_NT x64 10.0.25921 Modes:
System Info
|Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i9-12900H (20 x 2918)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.70GB (17.64GB free)| |Process Argv|--folder-uri file:///p%3A/Projects/DotNet/Libraries/EFinanceConnections --crash-reporter-id f209e508-01f3-4617-9f4e-024e30d9a197| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30792227 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30803844 2e4cg342:30602488 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30748421 03d35959:30757346 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofa:30804715 pythonnosmt12:30797651 pythonidxptcf:30805731 pythonnoceb:30805159 e537b577:30795824 dsvsc013:30795093 dsvsc014:30804076 ```