Skip to content

Commit

Permalink
Update yaml urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mengqi92 committed Jan 25, 2024
1 parent 6b1bd33 commit 8479182
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/schema/rime-default-yaml-schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://rimebow.azureedge.net/schema/rime-default-yaml-schema.json",
"$id": "https://d3gyfrtg0yt6hg.cloudfront.net/schema/rime-default-yaml-schema.json",
"title": "Rime Default Configuration",
"description": "A JSON Schema for RIME default.yaml configurations.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/schema/rime-schema-yaml-schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://rimebow.azureedge.net/schema/rime-schema-yaml-schema.json",
"$id": "https://d3gyfrtg0yt6hg.cloudfront.net/schema/rime-schema-yaml-schema.json",
"title": "Rime Schema Configuration",
"description": "A JSON Schema for RIME schema configurations.",
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions server/src/RimeLanguageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export class RimeLanguageService {
constructor(clientSettings: ClientSettings) {
this._connection = createConnection();

const schemaUri = "https://rimebow.azureedge.net/schema/rime-schema-yaml-schema.json";
const schemaUri = "https://d3gyfrtg0yt6hg.cloudfront.net/schema/rime-schema-yaml-schema.json";
let yamlSchemaService = new YAMLSchemaService(this._schemaRequestService, this._workspaceContext);
yamlSchemaService.registerExternalSchema(schemaUri, ["/*.schema.yaml"]);
const defaultSchemaUri = "https://rimebow.azureedge.net/schema/rime-default-yaml-schema.json";
const defaultSchemaUri = "https://d3gyfrtg0yt6hg.cloudfront.net/schema/rime-default-yaml-schema.json";
yamlSchemaService.registerExternalSchema(defaultSchemaUri, ["default.yaml"]);
// if (settings.schemas) {
// settings.schemas.forEach(settings => {
Expand Down

0 comments on commit 8479182

Please sign in to comment.