Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting of copied code is not correct #141984

Closed
Frank-Merfort opened this issue Feb 2, 2022 · 2 comments
Closed

Formatting of copied code is not correct #141984

Frank-Merfort opened this issue Feb 2, 2022 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@Frank-Merfort
Copy link

Issue Type: Bug

Copy a javascript function with documentation from one file to another, for example

    /**
     * Füllt die Tabelle mit den vorhandenen Daten. Der Inhalt der Tabelle ist vorher gelöscht worden.
     * @param {jquery}  $tableBody  jQuery-Objekt des tbody-Elementes
     * @param {array}   data        Array mit den Daten, die angezeigt werden sollen
     */
    fillTable($tableBody, data) {
        for (var i = 0; i < data.length; i++) {
            $tableBody.append(this.getTableRowHTML(data[i]));
        }
    }

The copied code has an extra space before fillTable (5 and not 4):

    /**
     * Füllt die Tabelle mit den vorhandenen Daten. Der Inhalt der Tabelle ist vorher gelöscht worden.
     * @param {jquery}  $tableBody  jQuery-Objekt des tbody-Elementes
     * @param {array}   data        Array mit den Daten, die angezeigt werden sollen
     */
     fillTable($tableBody, data) {
        for (var i = 0; i < data.length; i++) {
            $tableBody.append(this.getTableRowHTML(data[i]));
        }
    }

VS Code version: Code 1.63.2 (899d46d, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 x 3192)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.88GB (2.69GB free)
Process Argv --crash-reporter-id 55d9546a-7bc8-45d7-b6d3-9f505a422325
Screen Reader no
VM 0%
Extensions (8)
Extension Author (truncated) Version
Bookmarks ale 13.2.2
vscode-intelephense-client bme 1.8.0
vscode-mysql-client2 cwe 4.5.6
vscode-eslint dba 2.2.2
todo-tree Gru 0.0.215
vscode-edit-csv jan 0.6.4
php-cs-fixer jun 0.2.10
php-debug xde 1.23.0
@gjsjohnmurray
Copy link
Contributor

/duplicate

The open PR #136579 is supposed to fix this.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@gjsjohnmurray @mjbvz @Frank-Merfort and others