raizcode-ofc 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compilador.js CHANGED
@@ -26,32 +26,29 @@ if (arquivoOuCmd === '--setup') {
26
26
  }
27
27
  });
28
28
 
29
- // Gera o package.json da extensão VSCode corretamente
29
+ // Gera o package.json da extensão VSCode com suporte a Temas de Ícones
30
30
  const pkgExtensao = {
31
31
  name: "raizcode-extension",
32
32
  displayName: "Raizcode",
33
- version: "1.8.0",
34
- publisher: "raizcode",
33
+ version: "1.9.0",
34
+ publisher: "riquefla",
35
35
  engines: { vscode: "^1.60.0" },
36
36
  contributes: {
37
37
  languages: [
38
38
  {
39
39
  id: "raizcode",
40
40
  aliases: ["Raizcode", "rc"],
41
- extensions: [".rc"],
42
- icon: { dark: "./icons/rc.png", light: "./icons/rc.png" }
41
+ extensions: [".rc"]
43
42
  },
44
43
  {
45
44
  id: "raizcode-estrutura",
46
45
  aliases: ["Raizcode Estrutura", "rcx"],
47
- extensions: [".rcx"],
48
- icon: { dark: "./icons/rcx.png", light: "./icons/rcx.png" }
46
+ extensions: [".rcx"]
49
47
  },
50
48
  {
51
49
  id: "raizcode-estilo",
52
50
  aliases: ["Raizcode Estilo", "rcc"],
53
- extensions: [".rcc"],
54
- icon: { dark: "./icons/rcc.png", light: "./icons/rcc.png" }
51
+ extensions: [".rcc"]
55
52
  }
56
53
  ],
57
54
  grammars: [
@@ -60,6 +57,14 @@ if (arquivoOuCmd === '--setup') {
60
57
  scopeName: "source.rc",
61
58
  path: "./syntaxes/raizcode.tmLanguage.json"
62
59
  }
60
+ ],
61
+ // Ativa o suporte oficial aos seus ícones no VS Code
62
+ iconThemes: [
63
+ {
64
+ id: "raizcode-icons",
65
+ label: "Raizcode Icons",
66
+ path: "./icons/raizcode-icon-theme.json"
67
+ }
63
68
  ]
64
69
  }
65
70
  };
@@ -70,7 +75,7 @@ if (arquivoOuCmd === '--setup') {
70
75
  );
71
76
 
72
77
  console.log("✅ Extensão Raizcode instalada! Reinicie o VS Code.");
73
- console.log(`📁 Local: ${extDir}`);
78
+ console.log("💡 Lembre-se de selecionar 'Raizcode Icons' em: Arquivo > Preferências > Tema de Ícone de Arquivo");
74
79
  } catch (e) {
75
80
  console.error("❌ Erro no setup:", e.message);
76
81
  }
@@ -136,7 +141,7 @@ function traduzirEstrutura(conteudo) {
136
141
  if (t.startsWith('caixa ')) return `<div class="${pegarTexto('caixa')}">`;
137
142
  if (t === 'fim') return `</div>`;
138
143
 
139
- return `<!-- linha ${idx + 1} não reconhecida: ${t} -->`;
144
+ return ``;
140
145
  }).join('\n');
141
146
  }
142
147
 
@@ -244,7 +249,7 @@ function validarBlocos(linhas) {
244
249
  // PONTO DE ENTRADA
245
250
  // ─────────────────────────────────────────
246
251
  if (!arquivoOuCmd) {
247
- console.log("🌱 Raizcode v1.8 — A linguagem brasileira");
252
+ console.log("🌱 Raizcode v1.9 — A linguagem brasileira");
248
253
  console.log(" Uso: raizcode <arquivo.rc>");
249
254
  console.log(" Setup VSCode: raizcode --setup");
250
255
  process.exit();
@@ -0,0 +1,17 @@
1
+ {
2
+ "iconDefinitions": {
3
+ "_rc": { "iconPath": "./rc.png" },
4
+ "_rcx": { "iconPath": "./rcx.png" },
5
+ "_rcc": { "iconPath": "./rcc.png" }
6
+ },
7
+ "fileExtensions": {
8
+ "rc": "_rc",
9
+ "rcx": "_rcx",
10
+ "rcc": "_rcc"
11
+ },
12
+ "fileNames": {
13
+ "index.rc": "_rc",
14
+ "index.rcx": "_rcx",
15
+ "index.rcc": "_rcc"
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raizcode-ofc",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Linguagem de programação brasileira — escreva código em português.",
5
5
  "main": "compilador.js",
6
6
  "bin": {