Skip to content

Commit

Permalink
Do not use FileUri from client side
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Morhun <[email protected]>
  • Loading branch information
mmorhun committed May 31, 2019
1 parent b67025d commit 436b812
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { HostedPluginServer } from '../../common/plugin-protocol';
import { DebugConfiguration as HostedDebugConfig } from '../../common';
import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
import { HostedPluginPreferences } from './hosted-plugin-preferences';
import { FileUri } from '@theia/core/lib/node/file-uri';

/**
* Commands to control Hosted plugin instances.
Expand Down Expand Up @@ -174,7 +173,13 @@ export class HostedPluginManagerClient {
this.isDebug = true;

await this.start({ debugMode: this.hostedPluginPreferences['hosted-plugin.debugMode'] });
const outFiles = this.pluginLocation && [path.join(FileUri.fsPath(this.pluginLocation), '**', '*.js')];
let outFiles: string[] | undefined = undefined;
if (this.pluginLocation) {
const fsPath = await this.fileSystem.getFsPath(this.pluginLocation.toString());
if (fsPath) {
outFiles = [path.join(fsPath, '**', '*.js')];
}
}
await this.debugSessionManager.start({
configuration: {
type: 'node',
Expand Down

0 comments on commit 436b812

Please sign in to comment.