Add ripgrep, fill native fs functions, add ping endpoint (#39)
* Add ripgrep, fill native fs functions, add ping endpoint * Make show in folder redirect to the workspace
This commit is contained in:
4
packages/vscode/src/fill/ripgrep.ts
Normal file
4
packages/vscode/src/fill/ripgrep.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import * as path from "path";
|
||||
|
||||
// tslint:disable-next-line:no-any
|
||||
module.exports.rgPath = (<any>global).RIPGREP_LOCATION || path.join(__dirname, "../bin/rg");
|
@ -308,8 +308,8 @@ class WindowsService implements IWindowsService {
|
||||
throw new Error("not implemented");
|
||||
}
|
||||
|
||||
public showItemInFolder(_path: string): Promise<void> {
|
||||
throw new Error("not implemented");
|
||||
public async showItemInFolder(_path: string): Promise<void> {
|
||||
workbench.workspace = URI.file(_path);
|
||||
}
|
||||
|
||||
public getActiveWindowId(): Promise<number | undefined> {
|
||||
|
@ -52,6 +52,7 @@ module.exports = merge(
|
||||
"vs/base/browser/browser": path.resolve(fills, "empty.ts"),
|
||||
|
||||
"electron": path.join(vsFills, "stdioElectron.ts"),
|
||||
"vscode-ripgrep": path.join(vsFills, "ripgrep.ts"),
|
||||
"native-keymap": path.join(vsFills, "native-keymap.ts"),
|
||||
"native-watchdog": path.join(vsFills, "native-watchdog.ts"),
|
||||
"vs/base/common/amd": path.resolve(vsFills, "amd.ts"),
|
||||
|
Reference in New Issue
Block a user