Skip to content

Bundle fileName with CodeActionCommand #19881

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

Merged
7 commits merged into from
Nov 17, 2017
Merged

Conversation

ghost
Copy link

@ghost ghost commented Nov 9, 2017

Fixes #19845

There is also a method in services.ts that still takes a fileName: string as the first argument; it would be backwards-incompatible to change this so not sure if we should do that? We could leave it as a deprecated overload though.

@mhegazy
Copy link
Contributor

mhegazy commented Nov 9, 2017

release 2.6 as well.

@ghost
Copy link
Author

ghost commented Nov 9, 2017

@mhegazy Should we change the services.ts API as well?

@mhegazy
Copy link
Contributor

mhegazy commented Nov 9, 2017

We have not released since we bumped it to 0.7

@mhegazy
Copy link
Contributor

mhegazy commented Nov 9, 2017

//cc @mjbvz

export interface InstallPackageAction {
/* @internal */
export interface CodeActionCommandBase {
file: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might the project name be required as well if the same file appears in multiple projects?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it will be required if we are going to call updateTypingsForProject (which calls delayUpdateProjectGraphAndInferredProjectsRefresh).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an opaque object so we can change this if we turn out to need that.
I think we should update all projects that include that file, since they all might be affected by a new directory in node_modules. They should already be watching that directory though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have thought PackageInstalledResponse would behave more or less the same as SetTypings, which is a ProjectResponse.

@ghost ghost force-pushed the applyCodeActionCommand_fileName branch from bd1594f to 4e59232 Compare November 14, 2017 15:30
@mhegazy
Copy link
Contributor

mhegazy commented Nov 14, 2017

@Andy-MS please port this to release-2.6

@ghost
Copy link
Author

ghost commented Nov 16, 2017

@amcasey @mhegazy Need quick review of last commit

@amcasey
Copy link
Member

amcasey commented Nov 17, 2017

@Andy-MS Is this ready to merge? I'd like to code against it on the VS side.

@ghost ghost merged commit e7adb1c into master Nov 17, 2017
@ghost ghost deleted the applyCodeActionCommand_fileName branch November 17, 2017 22:16
ghost pushed a commit that referenced this pull request Nov 17, 2017
* Bundle fileName with CodeActionCommand

* Update test

* Fix API tests

* Add new overloads in services

* Fix overload

* Update API baselines
ghost pushed a commit that referenced this pull request Nov 18, 2017
* Bundle fileName with CodeActionCommand

* Update test

* Fix API tests

* Add new overloads in services

* Fix overload

* Update API baselines
errendir added a commit to errendir/TypeScript that referenced this pull request Nov 20, 2017
* origin/master: (140 commits)
  test overriding Session.event
  Update editorServices.ts
  Fix semantic merge conflict (microsoft#20119)
  LEGO: check in for master to temporary branch.
  Moved minified file exclusion
  Fixed internal safelist
  For import completion, if multiple re-exports exist, choose the one with the shortest path (microsoft#20049)
  Bundle fileName with CodeActionCommand (microsoft#19881)
  Simplify documentHighlights (microsoft#20091)
  LEGO: check in for master to temporary branch.
  Support semantic classification of alias (microsoft#20012)
  In `getContextualTypeForBinaryOperand`, only need to look for `=` assignment operator, not e.g. `+=` (microsoft#20037)
  lineAction: Use an enum instead of true | false | undefined (microsoft#20086)
  LEGO: check in for master to temporary branch.
  cleanup NodeTypingsInstaller
  remove comments
  type `event` callback correctly
  update baselines
  defer callback and remove handler object
  Support arbitrary prototype property assignments in navigation bar (microsoft#19923)
  ...
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants