dotnet / dotnet/vscode-csharp

namespace renaming feture doesn't work.

Open
#6,540 0 comments 0 reactions 1 assignee Claimed by @Cosifne View on GitHub
Bug Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Type: Bug

## Issue Description ##
## Steps to Reproduce ##
1. Create folder with name "Test".
2. Put C# file to this folder.
3. Current namespace should be "Something.Test"
4. Rename folder to TestTest.
5. Open any C# file in TestTest foleder
6. Click on namespace name and put F2.

## Expected Behavior ##
It shoud suggest to raname namespace to sutisfy folder structure

## Actual Behavior ##
It doesn't

## Logs ##

### OmniSharp log ###
Post the output from Output-->OmniSharp log here

### C# log ###
Post the output from Output-->C# here

## Environment information ##

**VSCode version**: 1.83.0
**C# Extension**: 2.6.24
**Using OmniSharp**: true

Dotnet Information
.NET SDK:
Version: 7.0.401
Commit: eb26aacfec

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.401\

Host:
Version: 7.0.12
Architecture: x64
Commit: 4a824ef37c

.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
6.0.201 [C:\Program Files\dotnet\sdk]
6.0.415 [C:\Program Files\dotnet\sdk]
7.0.307 [C:\Program Files\dotnet\sdk]
7.0.309 [C:\Program Files\dotnet\sdk]
7.0.401 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.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/download

Visual Studio Code Extensions

|Extension|Author|Version|Folder Name|
|---|---|---|---|
|add-reference|adrianwilczynski|1.0.2|adrianwilczynski.add-reference-1.0.2|
|armview|bencoleman|0.4.6|bencoleman.armview-0.4.6|
|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|
|auto-using|Fudge|0.7.15|fudge.auto-using-0.7.15|
|azure-account|ms-vscode|0.11.6|ms-vscode.azure-account-0.11.6|
|azure-pipelines|ms-azure-devops|1.228.0|ms-azure-devops.azure-pipelines-1.228.0|
|azure-repos|ms-vscode|0.38.0|ms-vscode.azure-repos-0.38.0|
|azurecli|ms-vscode|0.5.0|ms-vscode.azurecli-0.5.0|
|bash-beautify|shakram02|0.1.1|shakram02.bash-beautify-0.1.1|
|code-spell-checker|streetsidesoftware|3.0.1|streetsidesoftware.code-spell-checker-3.0.1|
|code-spell-checker-russian|streetsidesoftware|2.1.0|streetsidesoftware.code-spell-checker-russian-2.1.0|
|codesnap|adpyke|1.3.4|adpyke.codesnap-1.3.4|
|cpptools|ms-vscode|1.17.5|ms-vscode.cpptools-1.17.5-win32-x64|
|csharp|ms-dotnettools|2.6.24|ms-dotnettools.csharp-2.6.24-win32-x64|
|csharpextensions|kreativ-software|1.7.3|kreativ-software.csharpextensions-1.7.3|
|csharpsortusings|jongrant|0.0.6|jongrant.csharpsortusings-0.0.6|
|cshtml|fireside21|0.1.3|fireside21.cshtml-0.1.3|
|docomment|k--kato|1.0.0|k--kato.docomment-1.0.0|
|dotnet-test-explorer|formulahendry|0.7.8|formulahendry.dotnet-test-explorer-0.7.8|
|EditorConfig|EditorConfig|0.16.4|editorconfig.editorconfig-0.16.4|
|electron|kuscamara|0.2.6|kuscamara.electron-0.2.6|
|errorlens|usernamehw|3.14.0|usernamehw.errorlens-3.14.0|
|git-graph|mhutchie|1.30.0|mhutchie.git-graph-1.30.0|
|gitdoc|vsls-contrib|0.1.0|vsls-contrib.gitdoc-0.1.0|
|gitlens|eamodio|14.3.0|eamodio.gitlens-14.3.0|
|graphql-for-vscode|kumar-harsh|1.15.3|kumar-harsh.graphql-for-vscode-1.15.3|
|intellicode-api-usage-examples|VisualStudioExptTeam|0.2.8|visualstudioexptteam.intellicode-api-usage-examples-0.2.8|
|json|ZainChen|2.0.2|zainchen.json-2.0.2|
|jwt-decoder|jflbr|1.2.0|jflbr.jwt-decoder-1.2.0|
|kubernetes-snippets|ipedrazas|0.1.9|ipedrazas.kubernetes-snippets-0.1.9|
|live-server|ms-vscode|0.4.11|ms-vscode.live-server-0.4.11|
|LiveServer|ritwickdey|5.7.9|ritwickdey.liveserver-5.7.9|
|markdown-all-in-one|yzhang|3.5.1|yzhang.markdown-all-in-one-3.5.1|
|markdown-checkbox|bierner|0.4.0|bierner.markdown-checkbox-0.4.0|
|markdown-mermaid|bierner|1.20.0|bierner.markdown-mermaid-1.20.0|
|markdown-preview-github-styles|bierner|2.0.3|bierner.markdown-preview-github-styles-2.0.3|
|material-icon-theme|PKief|4.31.0|pkief.material-icon-theme-4.31.0|
|material-palenight-theme|whizkydee|2.0.3|whizkydee.material-palenight-theme-2.0.3|
|material-theme|zhuangtongfa|3.16.0|zhuangtongfa.material-theme-3.16.0|
|md-theme|MohamedHasan|2.0.1|mohamedhasan.md-theme-2.0.1|
|msbuild-project-tools|tintoy|0.4.9|tintoy.msbuild-project-tools-0.4.9|
|namespace|adrianwilczynski|1.1.2|adrianwilczynski.namespace-1.1.2|
|path-intellisense|christian-kohler|2.8.5|christian-kohler.path-intellisense-2.8.5|
|pester-test|pspester|2023.7.1|pspester.pester-test-2023.7.1|
|plantuml|jebbs|2.17.5|jebbs.plantuml-2.17.5|
|powershell-extension-pack|justin-grote|0.0.7|justin-grote.powershell-extension-pack-0.0.7|
|prettier-vscode|esbenp|10.1.0|esbenp.prettier-vscode-10.1.0|
|regexp-preview|LouisWT|0.1.5|louiswt.regexp-preview-0.1.5|
|remote-containers|ms-vscode-remote|0.315.1|ms-vscode-remote.remote-containers-0.315.1|
|remote-explorer|ms-vscode|0.4.1|ms-vscode.remote-explorer-0.4.1|
|remote-repositories|ms-vscode|0.40.0|ms-vscode.remote-repositories-0.40.0|
|remote-server|ms-vscode|1.4.3|ms-vscode.remote-server-1.4.3|
|remote-ssh|ms-vscode-remote|0.106.5|ms-vscode-remote.remote-ssh-0.106.5|
|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.8|ms-vscode-remote.remote-wsl-0.81.8|
|remotehub|GitHub|0.62.0|github.remotehub-0.62.0|
|shades-of-purple|ahmadawais|7.2.0|ahmadawais.shades-of-purple-7.2.0|
|swagger-viewer|Arjun|3.1.2|arjun.swagger-viewer-3.1.2|
|TabOut|albert|0.2.2|albert.tabout-0.2.2|
|todo-tree|Gruntfuggly|0.0.226|gruntfuggly.todo-tree-0.0.226|
|user-secrets|adrianwilczynski|2.0.1|adrianwilczynski.user-secrets-2.0.1|
|vs-code-xml-format|fabianlauer|0.1.5|fabianlauer.vs-code-xml-format-0.1.5|
|vsc-community-material-theme|Equinusocio|1.4.6|equinusocio.vsc-community-material-theme-1.4.6|
|vsc-material-theme|Equinusocio|33.10.5|equinusocio.vsc-material-theme-33.10.5|
|vsc-material-theme-icons|equinusocio|3.1.4|equinusocio.vsc-material-theme-icons-3.1.4|
|vscode-azureappservice|ms-azuretools|0.25.1|ms-azuretools.vscode-azureappservice-0.25.1|
|vscode-azurecontainerapps|ms-azuretools|0.5.1|ms-azuretools.vscode-azurecontainerapps-0.5.1|
|vscode-azurefunctions|ms-azuretools|1.13.1|ms-azuretools.vscode-azurefunctions-1.13.1|
|vscode-azureresourcegroups|ms-azuretools|0.7.5|ms-azuretools.vscode-azureresourcegroups-0.7.5|
|vscode-azurestaticwebapps|ms-azuretools|0.12.2|ms-azuretools.vscode-azurestaticwebapps-0.12.2|
|vscode-azurestorage|ms-azuretools|0.15.3|ms-azuretools.vscode-azurestorage-0.15.3|
|vscode-azurevirtualmachines|ms-azuretools|0.6.5|ms-azuretools.vscode-azurevirtualmachines-0.6.5|
|vscode-better-align|chouzz|1.4.2|chouzz.vscode-better-align-1.4.2|
|vscode-bicep|ms-azuretools|0.22.6|ms-azuretools.vscode-bicep-0.22.6|
|vscode-coding-tracker|hangxingliu|0.6.0|hangxingliu.vscode-coding-tracker-0.6.0|
|vscode-cosmosdb|ms-azuretools|0.19.4|ms-azuretools.vscode-cosmosdb-0.19.4|
|vscode-coverage-gutters|ryanluker|2.11.0|ryanluker.vscode-coverage-gutters-2.11.0|
|vscode-csharp-snippets|jorgeserrano|1.1.0|jorgeserrano.vscode-csharp-snippets-1.1.0|
|vscode-docker|ms-azuretools|1.26.1|ms-azuretools.vscode-docker-1.26.1|
|vscode-dotnet-runtime|ms-dotnettools|1.8.1|ms-dotnettools.vscode-dotnet-runtime-1.8.1|
|vscode-drawio|hediet|1.6.6|hediet.vscode-drawio-1.6.6|
|vscode-github-actions|github|0.26.2|github.vscode-github-actions-0.26.2|
|vscode-github-projects|Pod212|1.0.0|pod212.vscode-github-projects-1.0.0|
|vscode-graphql|GraphQL|0.8.19|graphql.vscode-graphql-0.8.19|
|vscode-graphql-syntax|GraphQL|1.2.2|graphql.vscode-graphql-syntax-1.2.2|
|vscode-hasher-extended|espresso3389|1.1.2|espresso3389.vscode-hasher-extended-1.1.2|
|vscode-icons|vscode-icons-team|12.5.0|vscode-icons-team.vscode-icons-12.5.0|
|vscode-inline-values-powershell|TylerLeonhardt|0.0.7|tylerleonhardt.vscode-inline-values-powershell-0.0.7|
|vscode-kubernetes-tools|ms-kubernetes-tools|1.3.15|ms-kubernetes-tools.vscode-kubernetes-tools-1.3.15|
|vscode-markdownlint|DavidAnson|0.52.0|davidanson.vscode-markdownlint-0.52.0|
|vscode-node-azure-pack|ms-vscode|1.2.0|ms-vscode.vscode-node-azure-pack-1.2.0|
|vscode-nuget-gallery|patcx|0.0.24|patcx.vscode-nuget-gallery-0.0.24|
|vscode-nupkg|eridem|1.0.1|eridem.vscode-nupkg-1.0.1|
|vscode-openapi|42Crunch|4.18.6|42crunch.vscode-openapi-4.18.6|
|vscode-peacock|johnpapa|4.2.2|johnpapa.vscode-peacock-4.2.2|
|vscode-pets|tonybaloney|1.25.0|tonybaloney.vscode-pets-1.25.0|
|vscode-proto3|zxh404|0.5.5|zxh404.vscode-proto3-0.5.5|
|vscode-protolint|plex|0.8.0|plex.vscode-protolint-0.8.0|
|vscode-pull-request-github|GitHub|0.74.0|github.vscode-pull-request-github-0.74.0|
|vscode-remote-extensionpack|ms-vscode-remote|0.24.0|ms-vscode-remote.vscode-remote-extensionpack-0.24.0|
|vscode-sort-json|richie5um2|1.20.0|richie5um2.vscode-sort-json-1.20.0|
|vscode-sql-formatter|adpyke|1.4.4|adpyke.vscode-sql-formatter-1.4.4|
|vscode-thunder-client|rangav|2.13.3|rangav.vscode-thunder-client-2.13.3|
|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|VisualStudioExptTeam|1.2.30|visualstudioexptteam.vscodeintellicode-1.2.30|;

Extension version: 2.6.24
VS Code version: Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c, 2023-10-03T16:12:16.321Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)|
|GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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.71GB (1.41GB free)|
|Process Argv|--crash-reporter-id 50ab0095-7877-4f9a-8d72-3c9fbdd37c10|
|Screen Reader|no|
|VM|0%|

A/B Experiments

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30856252
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
vscrpc:30673769
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
copilotsettingc:30839828
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015:30845448
pyreplss1:30858575

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.