提交 9d87288c 编写于 作者: J Johannes Rieken

remove unused overload, #29194

上级 2579db23
......@@ -133,7 +133,6 @@ export interface IFileService {
* Allows to stop a watcher on the provided resource or absolute fs path.
*/
unwatchFileChanges(resource: URI): void;
unwatchFileChanges(fsPath: string): void;
/**
* Configures the file service with the provided options.
......
......@@ -286,10 +286,8 @@ export class FileService implements IFileService {
this.raw.watchFileChanges(resource);
}
public unwatchFileChanges(resource: uri): void;
public unwatchFileChanges(path: string): void;
public unwatchFileChanges(arg1: any): void {
this.raw.unwatchFileChanges(arg1);
public unwatchFileChanges(resource: uri): void {
this.raw.unwatchFileChanges(resource);
}
public getEncoding(resource: uri, preferredEncoding?: string): string {
......
......@@ -805,11 +805,7 @@ export class FileService implements IFileService {
});
}
public unwatchFileChanges(resource: uri): void;
public unwatchFileChanges(path: string): void;
public unwatchFileChanges(arg1: any): void {
const resource = (typeof arg1 === 'string') ? uri.parse(arg1) : arg1 as uri;
public unwatchFileChanges(resource: uri): void {
const watcher = this.activeFileChangesWatchers.get(resource);
if (watcher) {
watcher.close();
......
......@@ -756,9 +756,7 @@ export class TestFileService implements IFileService {
watchFileChanges(resource: URI): void {
}
unwatchFileChanges(resource: URI): void;
unwatchFileChanges(fsPath: string): void;
unwatchFileChanges(arg1: any): void {
unwatchFileChanges(resource: URI): void {
}
updateOptions(options: any): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册