Adopt error no telemetry for filesystem providers. (#148832)

Adopt erorr no telemetry
This commit is contained in:
Logan Ramos
2022-06-07 15:53:21 -04:00
committed by GitHub
parent 070fb39a3c
commit cfecdd5461
2 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ import { CharCode } from 'vs/base/common/charCode';
import { VSBuffer } from 'vs/base/common/buffer';
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
import { checkProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions';
import { ErrorNoTelemetry } from 'vs/base/common/errors';
class FsLinkProvider {
@@ -295,7 +296,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
private _getFsProvider(handle: number): vscode.FileSystemProvider {
const provider = this._fsProvider.get(handle);
if (!provider) {
const err = new Error();
const err = new ErrorNoTelemetry();
err.name = 'ENOPRO';
err.message = `no provider`;
throw err;