Add document URI to configuration scope

master
Brad Cornes 2022-10-21 12:17:56 +01:00
parent ea5aff58f0
commit 2ab6ee7dff
1 changed files with 1 additions and 0 deletions

View File

@ -564,6 +564,7 @@ export async function activate(context: ExtensionContext) {
let doc = Workspace.textDocuments.find((doc) => doc.uri.toString() === scopeUri) let doc = Workspace.textDocuments.find((doc) => doc.uri.toString() === scopeUri)
if (doc) { if (doc) {
scope = { scope = {
uri: Uri.parse(scopeUri),
languageId: doc.languageId, languageId: doc.languageId,
} }
} }