-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
Extension sample
Configuration Example
VS Code version
1.96.4
What went wrong?
Comments and labels in
"description": "Resource configuration: Configure files using glob patterns to have an empty last line always", |
vscode-extension-samples/configuration-sample/src/extension.ts
Lines 63 to 67 in 3266b1a
// 1) Get the configured glob pattern value for the current file | |
const value: any = vscode.workspace.getConfiguration('', e.uri).get('conf.resource.insertEmptyLastLine'); | |
// 2) Check if the current resource matches the glob pattern | |
const matches = value ? value[e.fileName] : undefined; |
This also gave me the false impression globs were something exposed to the extension API, which it doesn't seem is the case.