Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
[ CHG ] activated already existing feature for custom deploy files, i…
Browse files Browse the repository at this point in the history
…n src/workspaces.ts
  • Loading branch information
advice_salani committed Nov 29, 2018
1 parent 7d95f17 commit b745a09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,7 @@ export class Workspace extends deploy_helpers.WorkspaceBase implements deploy_co

const DEFAULT_DIR = this.folder.uri.fsPath;
const DEFAULT_FILENAME = './.vscode/settings.json';
const ALTERNATIVE_FILENAME = './deploy.json';
const DEFAULT_FILE = Path.join(
DEFAULT_DIR,
DEFAULT_FILENAME,
Expand All @@ -2251,13 +2252,13 @@ export class Workspace extends deploy_helpers.WorkspaceBase implements deploy_co

const POSSIBLE_FILES: SettingsData[] = [
// deploy.json
/* TODO: implement later
/* TODO: implement later */
{
section: ALTERNATIVE_SECTION_NAME,
section: DEFAULT_SECTION_NAME,
file: Path.resolve(
Path.join(dir, ALTERNATIVE_FILENAME)
)
},*/
},

// settings.json
{
Expand Down Expand Up @@ -2309,6 +2310,8 @@ export class Workspace extends deploy_helpers.WorkspaceBase implements deploy_co
);
}

console.log( settingsData );

ME._configSource = {
section: settingsData.section,
resource: vscode.Uri.file(settingsData.file),
Expand Down

0 comments on commit b745a09

Please sign in to comment.