#30856: Register schema for workspace configuration file

- Both saved & unsaved
- which supports intellisense in the files
This commit is contained in:
Sandeep Somavarapu
2017-07-17 18:22:49 +05:30
parent ee2de18277
commit 7c7ae7a66f
4 changed files with 50 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ function getSchemaAssociation(context: ExtensionContext): ISchemaAssociations {
}
if (fileMatch[0] === '%') {
fileMatch = fileMatch.replace(/%APP_SETTINGS_HOME%/, '/User');
fileMatch = fileMatch.replace(/%APP_WORKSPACES_HOME%/, '/Workspaces');
} else if (fileMatch.charAt(0) !== '/' && !fileMatch.match(/\w+:\/\//)) {
fileMatch = '/' + fileMatch;
}