Skip to content

Implementation for issue #98 - shorting file path completion list. #122

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

Conversation

rkeithhill
Copy link
Contributor

This commit not only addresses issue #98 but also improves completion list support overall for commands (shows resolved command or path to exe), parameters (shows parameter type) as well as .NET properties and methods (shows signature).

…n list.

This commit not only addresses issue PowerShell#98 but also improves completion list support overall for commands (shows resolved command or path to exe), parameters (shows parameter type) as well as .NET properties and methods (shows signature).
var matches = Regex.Matches(completionDetails.ToolTipText, @"^\[(.+)\]");
if ((matches.Count > 0) && (matches[0].Groups.Count > 1))
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be simplified by moving the parentheses outside of the square brackets in the regex so that the contents of match group 1 include the brackets. Not worth making the change if you're already done with the work though :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I can make that change and push it and it should show up on the PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool! I'll merge it as soon as you're done with that. Nice work!

@daviwil
Copy link
Contributor

daviwil commented Feb 2, 2016

Sweet! Merged.

daviwil added a commit that referenced this pull request Feb 2, 2016
…completion-path

Implementation for issue #98 - shorting file path completion list.
@daviwil daviwil merged commit 15ce25f into PowerShell:master Feb 2, 2016
@rkeithhill rkeithhill deleted the rkeithhill/is98-shorten-file-completion-path branch February 2, 2016 22:01
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Feb 26, 2019
This adds a scriptAnalysis.settingsPath setting but uncovers some issues about how to be an absolute path back to the language host from the client.  Depending on where the user "set" this setting a relative path has a different meaning.  If set in .vscode\settings.json then relative probably should be relative to the workspaceRoot.  In the global settings file, it should probably be the extensionInstallDir.  If in the user's settings file, then what ... their home dir?

If we treated this like the other HostPaths then relative would *always* be relative to the extensionInstallDir.  If we could get VSCode to expand ${workspaceRoot} that would allow the user to specify a path in the current workspace folder.
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Feb 26, 2019
Use empty string now to get the default (built-in) settings for script analysis.  Tweaked the build script to fix some problems and to exclude the script analysis settings file. Also changed encoding the SampleModule.psd1 file to UTF8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants