Use the doc filename rather than using editor property, occasionally the editor can be null
Remove the unnecessary parsed document check and rely on GetLanguageItem which doesn't use the parsed document either
Added initial debug resolver provider tests and TestViewContent and TestWorkbenchWindow
Clean open namespaces