Skip to content

use new readonly modifier #12732

Closed
Closed

Description

  • VSCode Version: 1.6.0-Insider
  • OS Version: Windows

Added the following code to the TS extension when a diagnostic result comes back from the tsserver

        if (window.activeTextEditor) {
            window.activeTextEditor.options.lineNumbers = 'relative';
        }

Debugged it and the code gets executed but the line numbering doesn't change for the active editor.

Activity

  1. added
    bug
    on Sep 27, 2016
  2. alexdima commented on Sep 27, 2016

    @alexdima
    Member

    Johannes Rieken (@jrieken) We should consider adopting readonly in vscode.d.ts. AFAIK activeTextEditor.selection.start.line has a similar issue

  3. added
    debt
    and removed
    bug
    on Oct 5, 2016
  4. changed the title [-]window.activeTextEditor.options.lineNumbers = 'relative' not working from extensions[/-] [+]use new readonly modifier[/+] on Oct 5, 2016
  5. jrieken commented on Oct 5, 2016

    @jrieken
    Contributor

    related to #6907

  6. jrieken commented on Oct 10, 2016

    @jrieken
    Contributor
  7. 5 remaining items

  8. alexdima commented on Dec 7, 2016

    @alexdima
    Member

    just fyi this is no longer an issue for editor.options, starting with 19291ef it is possible to use editor.options.tabSize = 3 and it'll work.

  9. jrieken commented on Dec 7, 2016

    @jrieken
    Contributor

    ok. good to know

  10. jrieken commented on Dec 27, 2016

    @jrieken
    Contributor

    will happen in #13863

  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apidebt

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions