mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 02:58:31 -05:00
* Merge from vscode a5cf1da01d5db3d2557132be8d30f89c38019f6c * remove files we don't want * fix hygiene * update distro * update distro * fix hygiene * fix strict nulls * distro * distro * fix tests * fix tests * add another edit * fix viewlet icon * fix azure dialog * fix some padding * fix more padding issues
21 lines
1002 B
TypeScript
21 lines
1002 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { toCanonicalName } from 'vs/base/node/encoding';
|
|
import * as pfs from 'vs/base/node/pfs';
|
|
import { ITextQuery } from 'vs/workbench/services/search/common/search';
|
|
import { TextSearchProvider } from 'vs/workbench/services/search/common/searchExtTypes';
|
|
import { TextSearchManager } from 'vs/workbench/services/search/common/textSearchManager';
|
|
|
|
export class NativeTextSearchManager extends TextSearchManager {
|
|
|
|
constructor(query: ITextQuery, provider: TextSearchProvider, _pfs: typeof pfs = pfs) {
|
|
super(query, provider, {
|
|
readdir: resource => _pfs.readdir(resource.fsPath),
|
|
toCanonicalName: name => toCanonicalName(name)
|
|
});
|
|
}
|
|
}
|