Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Podem existir falhas ou itens não declarados, causados por falha humana ou por

---

## [3.2.1] - 29/04/2026

### Corrigido
- **Templates vazios com `platform: "auto"`** — o picker de novo script mostrava lista vazia em instalações padrão; `auto` agora é tratado como neutro e exibe todos os templates
- **Watcher LSP incompleto** — `workspace/didChangeWatchedFiles` só observava `*.pwn` e `*.inc`; expandido para `*.{pwn,inc,p,pawn}` para cobrir todas as extensões registradas na linguagem

---

## [3.2.0] - 29/04/2026

### Adicionado
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pawnpro",
"displayName": "PawnPro",
"description": "%text.description%",
"version": "3.2.0",
"version": "3.2.1",
"publisher": "NullSablex",
"type": "module",
"license": "SEE LICENSE IN LICENSE.md",
Expand Down
2 changes: 1 addition & 1 deletion src/editor/lspClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function startLspClient(
const clientOptions: LanguageClientOptions = {
documentSelector: [{ scheme: 'file', language: 'pawn' }],
synchronize: {
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.{pwn,inc}'),
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.{pwn,inc,p,pawn}'),
},
initializationOptions: {
workspaceFolder: workspaceRoot ?? '',
Expand Down
2 changes: 1 addition & 1 deletion src/editor/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function registerTemplates(context: vscode.ExtensionContext): void {
context.subscriptions.push(
vscode.commands.registerCommand('pawnpro.newScript', async (kind?: TemplateKind) => {
const platform = getPlatform();
const options = TEMPLATES.filter(t => platform === 'none' || t.platform === platform);
const options = TEMPLATES.filter(t => platform === 'none' || platform === 'auto' || t.platform === platform);

let chosen: TemplateOption | undefined;

Expand Down
Loading