Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
file search (preview 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Jun 8, 2018
1 parent ae377e5 commit e098064
Show file tree
Hide file tree
Showing 13 changed files with 1,097 additions and 519 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

[![Share via Facebook](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Facebook.png)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&quote=Remote%20Workspace) [![Share via Twitter](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Twitter.png)](https://twitter.com/intent/tweet?source=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&text=Remote%20Workspace:%20https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&via=mjkloubert) [![Share via Google+](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Google+.png)](https://plus.google.com/share?url=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace) [![Share via Pinterest](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Pinterest.png)](http://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&description=Visual%20Studio%20Code%20extension%2C%20which%20receives%20and%20shows%20git%20events%20from%20webhooks.) [![Share via Reddit](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Reddit.png)](http://www.reddit.com/submit?url=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&title=Remote%20Workspace) [![Share via LinkedIn](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/LinkedIn.png)](http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&title=Remote%20Workspace&summary=Visual%20Studio%20Code%20extension%2C%20which%20receives%20and%20shows%20git%20events%20from%20webhooks.&source=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace) [![Share via Wordpress](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Wordpress.png)](http://wordpress.com/press-this.php?u=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace&quote=Remote%20Workspace&s=Visual%20Studio%20Code%20extension%2C%20which%20receives%20and%20shows%20git%20events%20from%20webhooks.) [![Share via Email](https://raw.githubusercontent.com/mkloubert/vscode-remote-workspace/master/img/share/Email.png)](mailto:?subject=Remote%20Workspace&body=Visual%20Studio%20Code%20extension%2C%20which%20receives%20and%20shows%20git%20events%20from%20webhooks.:%20https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dmkloubert.vscode-remote-workspace)

## 0.25.0 (????? ???, ????; file search)

* implemented file search ... s. [issue #8](https://github.com/mkloubert/vscode-remote-workspace/issues/8)
* code cleanups and improvements
* bugfixes
* updated the following [npm](https://www.npmjs.com/) modules:
* [@slack/client](https://www.npmjs.com/package/@slack/client) `^4.3.1`
* [aws-sdk](https://www.npmjs.com/package/aws-sdk) `^2.252.1`
* [azure-storage](https://www.npmjs.com/package/azure-storage) `^2.8.3`
* [moment](https://www.npmjs.com/package/moment) `^2.22.2`
* [vscode-helpers](https://www.npmjs.com/package/vscode-helpers) `^2.6.2`

## 0.24.1 (June 6th, 2018; FTPS connections)

* implemented support for secure `ftps` protocol ... s. [issue #6](https://github.com/mkloubert/vscode-remote-workspace/issues/6)
Expand Down
606 changes: 118 additions & 488 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "vscode-remote-workspace",
"displayName": "Remote Workspace",
"description": "Multi protocol support (like Azure, Dropbox, S3, (S)FTP or Slack) for handling remote files like local ones.",
"version": "0.24.1",
"version": "0.25.0",
"publisher": "mkloubert",
"engines": {
"vscode": "^1.23.0"
"vscode": "^1.24.0"
},
"enableProposedApi": true,
"categories": [
"Azure",
"Other"
Expand Down Expand Up @@ -92,32 +93,32 @@
"@types/mime-types": "^2.1.0",
"@types/mocha": "^2.2.42",
"@types/moment": "^2.13.0",
"@types/moment-timezone": "^0.5.4",
"@types/moment-timezone": "^0.5.6",
"@types/node": "^7.0.65",
"@types/ssh2-sftp-client": "^2.0.1",
"@types/uuid": "^3.4.3",
"tslint": "^5.8.0",
"typescript": "^2.6.1",
"vscode": "^1.1.6"
"typescript": "^2.9.1",
"vscode": "^1.1.18"
},
"dependencies": {
"@icetee/ftp": "^1.0.2",
"@slack/client": "^4.2.2",
"aws-sdk": "^2.243.1",
"azure-storage": "^2.8.2",
"dropbox": "4.0.4",
"@slack/client": "^4.3.1",
"aws-sdk": "^2.252.1",
"azure-storage": "^2.8.3",
"dropbox": "^4.0.4",
"ftp": "^0.3.10",
"isomorphic-fetch": "^2.2.1",
"jsftp": "^2.1.3",
"lodash": "^4.17.10",
"mime-types": "^2.1.18",
"moment": "^2.22.1",
"moment": "^2.22.2",
"moment-timezone": "^0.5.17",
"node-simple-socket": "^2.8.1",
"parse-listing": "^1.1.3",
"ssh2-sftp-client": "^2.2.1",
"uuid": "^3.2.1",
"vscode-helpers": "^2.2.0",
"webdav-client": "^1.4.1"
"vscode-helpers": "^2.6.2",
"webdav-client": "^1.4.2"
}
}
10 changes: 8 additions & 2 deletions src/fs/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

interface AzureBlobConnection {
account: string;
Expand Down Expand Up @@ -407,10 +408,15 @@ export class AzureBlobFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new AzureBlobFileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(AzureBlobFileSystem.scheme,
new AzureBlobFileSystem(),
{ isCaseSensitive: true })
FS_PROVIDER,
{ isCaseSensitive: true }),

vscode.workspace.registerSearchProvider(AzureBlobFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
10 changes: 8 additions & 2 deletions src/fs/dropbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

interface DropboxConnection {
client: Dropbox.Dropbox;
Expand Down Expand Up @@ -257,10 +258,15 @@ export class DropboxFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new DropboxFileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(DropboxFileSystem.scheme,
new DropboxFileSystem(),
{ isCaseSensitive: false })
FS_PROVIDER,
{ isCaseSensitive: false }),

vscode.workspace.registerSearchProvider(DropboxFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
10 changes: 6 additions & 4 deletions src/fs/ftp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

interface FTPConnection {
cache: FTPConnectionCache;
Expand Down Expand Up @@ -406,14 +407,15 @@ export class FTPFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const NEW_FS = new FTPFileSystem();
const FS_PROVIDER = new FTPFileSystem();

context.subscriptions.push(
NEW_FS,

vscode.workspace.registerFileSystemProvider(FTPFileSystem.scheme,
NEW_FS,
FS_PROVIDER,
{ isCaseSensitive: true }),

vscode.workspace.registerSearchProvider(FTPFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
10 changes: 8 additions & 2 deletions src/fs/ftps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

interface FTPsConnection {
cache: FTPsConnectionCache;
Expand Down Expand Up @@ -313,10 +314,15 @@ export class FTPsFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new FTPsFileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(FTPsFileSystem.scheme,
new FTPsFileSystem(),
{ isCaseSensitive: false })
FS_PROVIDER,
{ isCaseSensitive: true }),

vscode.workspace.registerSearchProvider(FTPsFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
10 changes: 8 additions & 2 deletions src/fs/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

interface S3Connection {
client: AWS.S3;
Expand Down Expand Up @@ -407,10 +408,15 @@ export class S3FileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new S3FileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(S3FileSystem.scheme,
new S3FileSystem(),
{ isCaseSensitive: true })
FS_PROVIDER,
{ isCaseSensitive: true }),

vscode.workspace.registerSearchProvider(S3FileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
10 changes: 8 additions & 2 deletions src/fs/sftp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

type FileModeMapper = { [mode: string]: string | string[] };

Expand Down Expand Up @@ -449,10 +450,15 @@ export class SFTPFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new SFTPFileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(SFTPFileSystem.scheme,
new SFTPFileSystem(),
{ isCaseSensitive: true })
FS_PROVIDER,
{ isCaseSensitive: true }),

vscode.workspace.registerSearchProvider(SFTPFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
10 changes: 8 additions & 2 deletions src/fs/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';

interface SlackConnection {
channel: string;
Expand Down Expand Up @@ -275,10 +276,15 @@ export class SlackFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new SlackFileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(SlackFileSystem.scheme,
new SlackFileSystem(),
{ isCaseSensitive: false })
FS_PROVIDER,
{ isCaseSensitive: false }),

vscode.workspace.registerSearchProvider(SlackFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down
11 changes: 8 additions & 3 deletions src/fs/webdav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
*/

import * as _ from 'lodash';
import * as FSExtra from 'fs-extra';
import * as Moment from 'moment';
import * as MomentTZ from 'moment-timezone'; // REQUIRED EXTENSION FOR moment MODULE!!!
import * as Path from 'path';
import * as vscode from 'vscode';
import * as vscode_helpers from 'vscode-helpers';
import * as vscrw from '../extension';
import * as vscrw_fs from '../fs';
import * as vscrw_search from '../search';
const WebDAV = require('webdav-client');

interface WebDAVConnection {
Expand Down Expand Up @@ -410,10 +410,15 @@ export class WebDAVFileSystem extends vscrw_fs.FileSystemBase {
* @param {vscode.ExtensionContext} context The extension context.
*/
public static register(context: vscode.ExtensionContext) {
const FS_PROVIDER = new WebDAVFileSystem();

context.subscriptions.push(
vscode.workspace.registerFileSystemProvider(WebDAVFileSystem.scheme,
new WebDAVFileSystem(),
{ isCaseSensitive: true })
FS_PROVIDER,
{ isCaseSensitive: true }),

vscode.workspace.registerSearchProvider(WebDAVFileSystem.scheme,
new vscrw_search.FileSystemSearchProvider(FS_PROVIDER)),
);
}

Expand Down

0 comments on commit e098064

Please sign in to comment.