microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
220 stars 9 forks source link

[BUG] MAUI XAML parsers ignoring "editor.wordWrapColumn" #1305

Open Leonardo-Ferreira opened 1 month ago

Leonardo-Ferreira commented 1 month ago

Describe the Issue

When I set the

"[xaml]":{
        "editor.wordWrap": "on",
        "editor.wordWrapColumn": 999
    }

setting in my settings file, when I hit OPT+SHIT+F the word break still happens at the default column

Steps To Reproduce

my complete settings file:

{
    "security.workspace.trust.untrustedFiles": "open",
    "explorer.confirmDragAndDrop": false,
    "git.autofetch": true,
    "vs-kubernetes": {
        "vscode-kubernetes.minikube-path.mac": "/Users/****/.vs-kubernetes/tools/minikube/darwin-amd64/minikube",
        "vscode-kubernetes.helm-path.mac": "/Users/****/.vs-kubernetes/tools/helm/darwin-amd64/helm",
        "vscode-kubernetes.minikube-path-mac": "/Users/****/.vs-kubernetes/tools/minikube/darwin-arm64/minikube",
        "vscode-kubernetes.helm-path-mac": "/Users/****/.vs-kubernetes/tools/helm/darwin-arm64/helm",
        "vs-kubernetes.kubeconfig": "/Users/****/Untitled",
        "vs-kubernetes.knownKubeconfigs": [
            "/Users/leonardoferreira/Untitled"
        ]
    },
    "diffEditor.ignoreTrimWhitespace": false,
    "azure.resourceFilter": [
        "****",
        "****"
    ],
    "[python]": {
        "editor.formatOnType": true
    },
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "terminal.integrated.scrollback": 9999,
    "dotnet-test-explorer.testArguments": "\"/p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info\"",
    "dotnet-test-explorer.testProjectPath": "\"**/*.Test*.csproj\"",
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": "off"
    },
    "go.toolsManagement.autoUpdate": true,
    "dart.openDevTools": "flutter",
    "dart.debugExternalPackageLibraries": true,
    "dart.debugSdkLibraries": false,
    "git.replaceTagsWhenPull": true,
    "github.copilot.editor.enableAutoCompletions": true,
    "workbench.colorTheme": "Visual Studio 2019 Dark",
    "[xaml]":{
        "editor.wordWrap": "on",
        "editor.wordWrapColumn": 140
    }    
}

Expected Behavior

that the words would wrap according to the "editor.wordWrapColumn": value

Environment Information

VSCode Version: Version: 1.91.1 (Universal) Extension Version: v1.1.16

emaf commented 1 month ago

cc @mgoertz-msft

mgoertz-msft commented 1 month ago

@Leonardo-Ferreira, the XAML Language Service formatting feature is currently limited to tabs vs. spaces and tab size. Formatting enhancements, such as this one, is on the backlog but not planned for the near future.