Skip to content

Commit

Permalink
V 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSchuldenfrei committed Jan 8, 2019
1 parent a829bcc commit 16a9f42
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Change Log
All notable changes to the "gtest-adapter" extension will be documented in this file.

### [1.8.0]
### [1.8.1]

* Feature: Better search in tree. Similar to VsCode file search
* More key bindings

### [1.7.0]

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ In addition to these specific extensions settings, this extension creates adds t

## Release Notes

### 1.8.1

* Added Key bindings, which are valid when the Google Test tree has focus

### 1.8.0

* Feature: Better search in tree. Similar to VsCode file search
Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gtest-adapter",
"displayName": "GoogleTest Adapter",
"description": "Easily run GoogleTests from VsCode",
"version": "1.8.0",
"version": "1.8.1",
"publisher": "DavidSchuldenfrei",
"engines": {
"vscode": "^1.24.1"
Expand Down Expand Up @@ -119,6 +119,26 @@
{
"command": "gtestExplorer.runAll",
"key": "alt+ctrl+r alt+ctrl+a"
},
{
"command": "gtestExplorer.runAll",
"key": "ctrl+u ctrl+l",
"when": "sideBarFocus && activeViewlet == 'workbench.view.extension.test'"
},
{
"command": "gtestExplorer.search",
"key": "ctrl+f",
"when": "sideBarFocus && activeViewlet == 'workbench.view.extension.test'"
},
{
"command": "gtestExplorer.run",
"key": "ctrl+u ctrl+r",
"when": "sideBarFocus && activeViewlet == 'workbench.view.extension.test'"
},
{
"command": "gtestExplorer.debug",
"key": "ctrl+u ctrl+d",
"when": "sideBarFocus && activeViewlet == 'workbench.view.extension.test'"
}
],
"menus": {
Expand Down
6 changes: 3 additions & 3 deletions src/Controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GTestWrapper } from "./GTestWrapper";
import { TestTreeDataProvider } from "./TestTreeDataProvider";
import { ExtensionContext, window, commands, TreeView, Uri, Position, Selection, Range, languages, workspace, ConfigurationChangeEvent, tasks, TaskEndEvent, TaskGroup } from "vscode";
import { ExtensionContext, window, commands, TreeView, Uri, Position, Selection, Range, languages, workspace, ConfigurationChangeEvent, tasks, TaskEndEvent, TaskGroup, TextEditorRevealType } from "vscode";
import { Status, TestNode, LineInfo } from "./TestNode";
import { StatusBar } from "./StatusBar";
import { RunStatus } from "./RunStatus";
Expand Down Expand Up @@ -93,7 +93,7 @@ export class Controller {
window.showTextDocument(Uri.file(currentNode.location.file)).then(editor => {
var position = new Position(location.line - 1, 0);
editor.selections = [new Selection(position, position)];
editor.revealRange(new Range(position, position));
editor.revealRange(new Range(position, position), TextEditorRevealType.InCenter);
});
}
}
Expand Down Expand Up @@ -304,7 +304,7 @@ export class Controller {
}

private async search() {
var search = await window.showQuickPick(this._tree.getQuickPickItems());
var search = await window.showQuickPick(this._tree.getQuickPickItems(), {placeHolder:'Find test in the Google Tests tree'});
if (search) {
this._treeView.reveal(search.node);
}
Expand Down

0 comments on commit 16a9f42

Please sign in to comment.