Skip to content

Move folding provider from Extension into Editor Services #793

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

Open
glennsarti opened this issue Nov 12, 2018 · 0 comments
Open

Move folding provider from Extension into Editor Services #793

glennsarti opened this issue Nov 12, 2018 · 0 comments
Labels
Area-Code Navigation Issue-Enhancement A feature request (enhancement).

Comments

@glennsarti
Copy link
Contributor

A folding provider was added to the VSCode extension initially in PowerShell/vscode-powershell#1355. This issue will track the work to move the folding provider from the extension to the PowerShell Editor Services.

Relates to #527 #377 #228

glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 12, 2018
This commit adds the skeleton for a Folding Range Provider.
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 12, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 12, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 13, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 13, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 13, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/vscode-powershell that referenced this issue Nov 13, 2018
Now that the PowerShell Editor Services has a Folding Provider, this extension
based feature is no longer required.  This commit removes the feature and tests.

The PSES Issue PowerShell#793 [1] tracks the work to add it to PSES.

[1] PowerShell/PowerShellEditorServices#793
@rjmholt rjmholt added Area-Code Navigation Issue-Enhancement A feature request (enhancement). labels Nov 13, 2018
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 14, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 14, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 14, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 14, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 16, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 16, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 16, 2018
This commit renames methods to conform to version 2.0 naming standard;

* Async method names should be suffixed with Async
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 16, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 16, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 16, 2018
This commit renames methods to conform to version 2.0 naming standard;

* Async method names should be suffixed with Async
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit adds the skeleton for a Folding Range Provider.
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit renames methods to conform to version 2.0 naming standard;

* Async method names should be suffixed with Async
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit adds the the code to return folding ranges when the server receives
a FoldingRangeRequest.  This commit;

* Uses a similar method to that implemented in the VS Code extension [1]
* Uses the PowerShell tokeniser instead of the AST.  This is due to the AST
  ignoring comment sections.  Without the comment parsing folding for #region
  etc. will not work
* Translates the tests in VS Code [1] into equivalent C# tests

[1] PowerShell/vscode-powershell#1355
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit uses the the client configuration settings to modify the behaviour
of the server. In particular the Enable and ShowLastLine setting.

* The enable setting will change the provider to return null when disabled
* The ShowLastLine setting emulates the behaviour in PowerShell/vscode-powershell#1557
  * Modifies conversion method for the internal region class to FoldingRange
    object to show/hide the last line based on the extension settings
  * Modifies the tests for the default value and adds tests for the show and hide
    scenarios
glennsarti added a commit to glennsarti/PowerShellEditorServices that referenced this issue Nov 22, 2018
This commit renames methods to conform to version 2.0 naming standard;

* Async method names should be suffixed with Async
rjmholt pushed a commit to PowerShell/vscode-powershell that referenced this issue Nov 28, 2018
Now that the PowerShell Editor Services has a Folding Provider, this extension
based feature is no longer required. See PowerShell/PowerShellEditorServices#793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Code Navigation Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

2 participants